Created
November 5, 2014 12:27
-
-
Save olund/2cba800a229a5a3de4a7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* Half size | |
*/ | |
t3.onclick = (function() { | |
this.className = (this.swap++ % 2) ? 'baddie half-size' : 'baddie'; | |
}); | |
/** | |
* Double size | |
*/ | |
t4.onclick = function() { | |
this.className = (this.swap++ % 2) ? 'baddie double-size' : 'baddie'; | |
console.log(this.swap); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment