File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
examples/wheel_of_fortune Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Winwheel.js Features Include:
1919
2020## Example
2121``` javascript
22- var theWheel = new Winwheel ({
22+ let theWheel = new Winwheel ({
2323 ' numSegments' : 4 ,
2424 ' segments' :
2525 [
Original file line number Diff line number Diff line change @@ -122,17 +122,17 @@ <h1>Winwheel.js example wheel - wheel of fortune</h1>
122122 'soundTrigger' : 'pin' // Specify pins are to trigger the sound, the other option is 'segment'.
123123 } ,
124124 'pins' : // Turn pins on.
125- {
126- 'number' : 24 ,
127- 'fillStyle' : 'silver' ,
128- 'outerRadius' : 4 ,
129- }
125+ {
126+ 'number' : 24 ,
127+ 'fillStyle' : 'silver' ,
128+ 'outerRadius' : 4 ,
129+ }
130130 } ) ;
131131
132132 // Loads the tick audio sound in to an audio object.
133- let audio = new Audio ( 'tick.mp3' ) ;
133+ let audio = new Audio ( 'tick.mp3' ) ;
134134
135- // This function is called when the sound is to be played.
135+ // This function is called when the sound is to be played.
136136 function playSound ( )
137137 {
138138 // Stop and rewind the sound if it already happens to be playing.
You can’t perform that action at this time.
0 commit comments