Created
November 21, 2013 08:32
-
-
Save nyango/7577915 to your computer and use it in GitHub Desktop.
やられたら!○倍返しだ!!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ネタ | |
クリックするとふえます | |
http://jsdo.it/jag/zcWo/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
} | |
body { | |
background: #ddf; | |
font: 30px sans-serif; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id='num'> | |
</div> | |
<img id='hanzawa' src='http://jsrun.it/assets/y/y/N/R/yyNRZ.jpg'> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
num = 1; | |
$("#hanzawa").click(function(){ | |
if(num % 10 == 0){ | |
num=num*1.5; | |
}else{ | |
num=num+1; | |
} | |
$("#num").html(" <h1>\ "+num+"</h1>"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment