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
e8dff156b5
commit
be2e2eb529
@ -180,10 +180,18 @@ font-family: 'Press Start 2P', sans-serif;
|
||||
}, false);
|
||||
})();
|
||||
</script>
|
||||
<script>
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$(".star").click(function(){
|
||||
$(this).animate({width: '+=10%', height: '+=20%'}, 200).animate({width: '-=10%', height: '-=20%'}, 200);
|
||||
var isClicked = false;
|
||||
|
||||
$(".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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user