mirror of
https://gitlab.com/skysthelimit.dev/selenite.git
synced 2025-06-16 10:32:08 -05:00
Update semag/star/index.html
This commit is contained in:
parent
e8dff156b5
commit
be2e2eb529
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user