Compare commits

...

2 Commits

Author SHA1 Message Date
Aevann 2927e1cddf stop confetti from triggering inside textboxes 2024-04-28 15:37:51 +03:00
Aevann 70cf319041 fix double click to select word 2024-04-28 15:35:44 +03:00
2 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,7 @@
.click-confetti {
position: fixed;
animation: bang 700ms ease-out forwards;
pointer-events: none;
}
.click-confetti > i {

View File

@ -1,4 +1,8 @@
document.addEventListener('click', function(e) {
if (e.target instanceof HTMLTextAreaElement || e.target instanceof HTMLInputElement)
return;
function random(max){
return Math.random() * (max - 0) + 0;
}