Skip to content

Instantly share code, notes, and snippets.

@xnuk
Last active August 29, 2015 13:57
Show Gist options
  • Save xnuk/9908756 to your computer and use it in GitHub Desktop.
Save xnuk/9908756 to your computer and use it in GitHub Desktop.
(function(){var i=1000;while(i --> 0)document.write("그래요 안 그래요 "+(function(){var s="";var i=Math.floor(Math.random()*100);while(i --> 0)s+=" ";return s})());})()
window.onscroll=function (e){
var scrollTop = document.documentElement.scrollTop||document.body.scrollTop;
var body = document.body,
html = document.documentElement;
var height = Math.max( body.scrollHeight, body.offsetHeight,
html.clientHeight, html.scrollHeight, html.offsetHeight );
if(scrollTop+screen.height>=height-30)var i=1000;while(i --> 0)document.write("그래요 안 그래요 "+(function(){var s="";var i=Math.floor(Math.random()*100);while(i --> 0)s+=" ";return s})());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment