DmitrMakeev
commited on
Commit
•
ef1d0b7
1
Parent(s):
943b892
Update koleso.html
Browse files- koleso.html +3 -2
koleso.html
CHANGED
@@ -155,10 +155,11 @@ function init() {
|
|
155 |
rotate() // Initial rotation
|
156 |
engine() // Start engine
|
157 |
spinEl.addEventListener('click', () => {
|
158 |
-
if (!
|
|
|
159 |
angVel = rand(0.25, 0.45)
|
160 |
spinWheel()
|
161 |
-
} else
|
162 |
console.log('You have already spun the wheel.')
|
163 |
}
|
164 |
})
|
|
|
155 |
rotate() // Initial rotation
|
156 |
engine() // Start engine
|
157 |
spinEl.addEventListener('click', () => {
|
158 |
+
if (!hasSpun) {
|
159 |
+
hasSpun = true
|
160 |
angVel = rand(0.25, 0.45)
|
161 |
spinWheel()
|
162 |
+
} else {
|
163 |
console.log('You have already spun the wheel.')
|
164 |
}
|
165 |
})
|