Last active
August 29, 2015 13:57
-
-
Save xnuk/9908756 to your computer and use it in GitHub Desktop.
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
(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