()
| 257 | timer = setInterval(tick, 1600); |
| 258 | } |
| 259 | function restart() { |
| 260 | if (timer) clearInterval(timer); |
| 261 | timer = setInterval(tick, 1600); |
| 262 | } |
| 263 | |
| 264 | // Click any card to jump to it (and restart the rotation from there). |
| 265 | cards.forEach((card, idx) => { |