Skip to content

Instantly share code, notes, and snippets.

@eighteyes
Last active May 9, 2018 22:40
Show Gist options
  • Save eighteyes/5120124 to your computer and use it in GitHub Desktop.
Save eighteyes/5120124 to your computer and use it in GitHub Desktop.
Hash Haduken - Execute in browser.
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);
@ondertrn
Copy link

ondertrn commented Aug 9, 2013

illegal usage of keyword int :)

@eighteyes
Copy link
Author

thanks for the feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment