CharisKomos (Talk | contribs) |
CharisKomos (Talk | contribs) |
||
Line 61: | Line 61: | ||
scrollTillBottom(); | scrollTillBottom(); | ||
} | } | ||
− | + | ||
function scrollTillBottom(){ | function scrollTillBottom(){ | ||
− | + | var i = 10; | |
− | + | var int = setInterval(function(){ | |
− | } | + | window.scrollTo(i, 0); |
+ | i += 10; | ||
+ | console.log(i); | ||
+ | if (i == 300) clearInterval(int); | ||
+ | },20); | ||
} | } | ||
Revision as of 10:47, 12 August 2017