Skip to content

Instantly share code, notes, and snippets.

@chrisgannon
Created December 6, 2017 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisgannon/ac99d84871fd5f25221f215e6635823f to your computer and use it in GitHub Desktop.
Save chrisgannon/ac99d84871fd5f25221f215e6635823f to your computer and use it in GitHub Desktop.
{
"colorArray":[ "#364C62","#364C62","#364C62","#364C62","#364C62","#364C62","#364C62","#ED506A"],
"segmentValuesArray" : [
{"probability":0, "type": "string", "value": "", "win": false, "resultText": "5% OFF", "userData": {"score":1000000}},
{"probability":0, "type": "string", "value": "", "win": false, "resultText": "10% OFF", "userData": {"score":0}},
{"probability":0, "type": "string", "value": "", "win": false, "resultText": "5% OFF", "userData": {"score":0}},
{"probability":100, "type": "string", "value": "10% OFF", "win": false, "resultText": "10% OFF", "userData": {"score":40}},
{"probability":0, "type": "string", "value": "", "win": false, "resultText": "5% OFF", "userData": {"score":0}},
{"probability":0, "type": "string", "value": "", "win": false, "resultText": "15% OFF", "userData": {"score":0}},
{"probability":0, "type": "string", "value": "", "win": false, "resultText": "5% OFF", "userData": {"score":0}},
{"probability":1, "type": "string", "value": "90% OFF", "win": true, "resultText": "10% OFF", "userData": {"score":2}}
],
"svgWidth": 1024,
"svgHeight": 768,
"wheelStrokeColor": "#2D3C4A",
"wheelStrokeWidth": 8,
"wheelSize": 700,
"wheelTextOffsetY": 80,
"wheelTextColor": "#EDEDED",
"wheelTextSize": "2.3em",
"wheelImageOffsetY": 40,
"wheelImageSize": 50,
"centerCircleSize": 0,
"centerCircleStrokeColor": "#F1DC15",
"centerCircleStrokeWidth": 0,
"centerCircleFillColor": "#EDEDED",
"segmentStrokeColor": "#364C62",
"segmentStrokeWidth": 2,
"centerX": 512,
"centerY": 384,
"hasShadows": false,
"numSpins": 1 ,
"spinDestinationArray":[],
"minSpinDuration":6,
"gameOverText":"I HOPE YOU ENJOYED SPIN2WIN WHEEL.<br>NOW GO AND <a href='https://codecanyon.net/item/spin2win-wheel-spin-it-2-win-it/16337656?ref=chrisgannon'>BUY IT!</a> :)",
"invalidSpinText":"INVALID SPIN. PLEASE SPIN AGAIN.",
"introText":"YOU HAVE TO<br>SPIN IT <span style='color:#F282A9;'>2</span> WIN IT!",
"hasSound":true,
"gameId":"9a0232ec06bc431114e2a7f3aea03bbe2164f1aa",
"clickToSpin":true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment