1 parent 6ad2a21 commit 2a0d805Copy full SHA for 2a0d805
1 file changed
xmas.html
@@ -362,7 +362,9 @@ <h3 style="margin-top:15px">Interaction</h3>
362
canvas.addEventListener('wheel', handleZoom);
363
364
initPresetsUI();
365
- document.getElementById('controls').classList.add('hidden');
+ if (window.innerWidth < 600) {
366
+ document.getElementById('controls').classList.add('hidden');
367
+ }
368
const randomStyle = Object.keys(STYLES)[Math.floor(Math.random() * Object.keys(STYLES).length)];
369
loadStyle(randomStyle);
370
loop();
0 commit comments