Update semag/star/index.html

This commit is contained in:
LEGALISE_PIRACY 2024-04-27 16:17:28 +00:00
parent e8dff156b5
commit be2e2eb529

View File

@ -182,8 +182,16 @@ font-family: 'Press Start 2P', sans-serif;
</script> </script>
<script> <script>
$(document).ready(function(){ $(document).ready(function(){
$(".star").click(function(){ var isClicked = false;
$(this).animate({width: '+=10%', height: '+=20%'}, 200).animate({width: '-=10%', height: '-=20%'}, 200);
$(".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);
}
}); });
}); });
</script> </script>