Last active
May 3, 2016 15:45
-
-
Save mikekavouras/ce1afdc874c5d084569189bb8f0397d2 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
| function bindClick(index) { | |
| jQuery('.lock' + index).click(function() { | |
| jQuery('.lock' + index).addClass('unlocked'); | |
| jQuery('.door' + index).addClass('open'); | |
| }); | |
| } | |
| for (var i = 1; i <= X; i++) { | |
| bindClick(i); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment