3 ms·
I think it's a glitch / unintentional. First, hover over the buttons. Then try widening your browser window from 800px to 1600px in chrome. Then back down t
by pcurve 5y ago
I think it's a glitch / unintentional. First, hover over the buttons. Then try widening your browser window from 800px to 1600px in chrome. Then back down to 800px. Do it slowly. You'll see that button position swap regardless whether you hover or not.
Also, it doesn't happen in smaller viewport.
- GlitchMr 5y agoIt is intentional. It's caused by `funnyButton` function which after beautifying looks like this. funnyButton() { document.addEventListener("mouseover", e => { if (e.target.closest(".chefcookie__button--settings")) { if (window.innerWidth < 1e3 || r.default.isTouch() || r.default.isMobile()) return; if (!0 === this.funnyButtonStop || !0 === this.funnyButtonAnimation) return; this.funnyButtonAnimation = !0; let e = document.querySelector(".chefcookie__button--settings"), t = parseInt(e.getAttribute("data-mode") || 1); e.setAttribute("data-mode", t % 2 + 1), setTimeout(() => { this.funnyButtonAnimation = !1 }, 550) } }), document.addEventListener("click", e => { e.target.closest(".chefcookie__button--settings") && (this.funnyButtonStop = !0) }) }