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
be2e2eb529
commit
56856de652
@ -183,14 +183,19 @@ font-family: 'Press Start 2P', sans-serif;
|
|||||||
<script>
|
<script>
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
var isClicked = false;
|
var isClicked = false;
|
||||||
|
var timeout;
|
||||||
|
|
||||||
$(".star").mousedown(function(){
|
$(".star").mousedown(function(){
|
||||||
isClicked = true;
|
isClicked = true;
|
||||||
$(this).animate({width: '+=10%', height: '+=20%'}, 200);
|
$(this).animate({width: '+=10%', height: '+=20%'}, 200);
|
||||||
}).mouseup(function(){
|
}).mouseup(function(){
|
||||||
if (isClicked) {
|
if (isClicked) {
|
||||||
isClicked = false;
|
clearTimeout(timeout);
|
||||||
$(this).animate({width: '-=10%', height: '-=20%'}, 200);
|
var self = this;
|
||||||
|
timeout = setTimeout(function() {
|
||||||
|
isClicked = false;
|
||||||
|
$(self).animate({width: '-=10%', height: '-=20%'}, 200);
|
||||||
|
}, 300);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user