Update semag/star/index.html

This commit is contained in:
LEGALISE_PIRACY 2024-04-27 16:18:58 +00:00
parent be2e2eb529
commit 56856de652

View File

@ -183,14 +183,19 @@ font-family: 'Press Start 2P', sans-serif;
<script>
$(document).ready(function(){
var isClicked = false;
var timeout;
$(".star").mousedown(function(){
isClicked = true;
$(this).animate({width: '+=10%', height: '+=20%'}, 200);
}).mouseup(function(){
if (isClicked) {
isClicked = false;
$(this).animate({width: '-=10%', height: '-=20%'}, 200);
clearTimeout(timeout);
var self = this;
timeout = setTimeout(function() {
isClicked = false;
$(self).animate({width: '-=10%', height: '-=20%'}, 200);
}, 300);
}
});
});