mirror of
https://gitlab.com/skysthelimit.dev/selenite.git
synced 2025-06-16 02:22:07 -05:00
Update semag/star/index.html
This commit is contained in:
parent
56856de652
commit
f34144a5b7
@ -180,26 +180,7 @@ font-family: 'Press Start 2P', sans-serif;
|
|||||||
}, false);
|
}, false);
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
<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) {
|
|
||||||
clearTimeout(timeout);
|
|
||||||
var self = this;
|
|
||||||
timeout = setTimeout(function() {
|
|
||||||
isClicked = false;
|
|
||||||
$(self).animate({width: '-=10%', height: '-=20%'}, 200);
|
|
||||||
}, 300);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<center>
|
<center>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user