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