Created
September 14, 2011 11:34
-
-
Save falms/1216360 to your computer and use it in GitHub Desktop.
(1) Web Game
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
var m = eval(document.head.innerHTML.match(/\[.*\]/)+";"); | |
for(i=0;i<m.length;i++){ | |
if(m[i]==null){continue;} | |
document.getElementById('card'+i).click(); | |
for(j=i+1;j<m.length;j++){ | |
if(m[i]==m[j]){ | |
document.getElementById('card'+j).click(); | |
m[j]=null; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment