Friday, March 27, 2015

On the high seas - more stupid browser tricks

Put this into the web console/javascript console:

You may want to get your dramamine first.

var rotcounter=0;rotpos=0;var stopit=0;function quickfunc(){rotcounter+=3;rotpos=Math.sin((rotcounter)/360)*20;document.body.style.transform="rotateZ("+rotpos+"deg)";if(stopit==0)window.setTimeout(quickfunc,10);document.title=rotpos;}quickfunc();

stopit=1


When you want it to stop, just type stopit=1

No comments:

Post a Comment