Last active
May 9, 2018 22:40
-
-
Save eighteyes/5120124 to your computer and use it in GitHub Desktop.
Hash Haduken - Execute in browser.
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
document.addEventListener("hashchange", function(e) { e.preventDefault(); }); | |
var str = "|/-\\"; | |
var i = 0; | |
var interval = setInterval( function() { add = ""; | |
for ( j=0; j<i; j++) { add += " "; } | |
window.location.hash = add + str[i % 4]; | |
i++; | |
if (i > 100) { clearInterval(interval); } | |
} , 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
illegal usage of keyword int :)