Skip to content

Instantly share code, notes, and snippets.

@nyango
Created November 21, 2013 08:32
Show Gist options
  • Save nyango/7577915 to your computer and use it in GitHub Desktop.
Save nyango/7577915 to your computer and use it in GitHub Desktop.
やられたら!○倍返しだ!!
ネタ
クリックするとふえます
http://jsdo.it/jag/zcWo/
* {
margin: 0;
padding: 0;
border: 0;
}
body {
background: #ddf;
font: 30px sans-serif;
}
<div id='num'>
</div>
<img id='hanzawa' src='http://jsrun.it/assets/y/y/N/R/yyNRZ.jpg'>
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