Created
September 15, 2015 04:37
-
-
Save williamd1k0/68f03ea59c5342fe99f2 to your computer and use it in GitHub Desktop.
Google Super Mario easter egg score and coins counter.
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
| var points = document.querySelector(".kno-ecr-pt.kno-fb-ctx"), | |
| mario = document.getElementById("kno-mcbeeq"), | |
| coins = document.querySelector("span.kno-fb-ctx"), | |
| score = 0, | |
| inc = 1; | |
| mario.onclick = function(){ | |
| score += 200; | |
| points.innerHTML = score; | |
| coins.innerHTML = inc++; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment