CharisKomos (Talk | contribs) |
CharisKomos (Talk | contribs) |
||
Line 69: | Line 69: | ||
function scrollTillBottom() { | function scrollTillBottom() { | ||
var i=0; | var i=0; | ||
− | myVar = setInterval(function(){ i += 1; scrollBy(0,10); console.log(i); if(i == | + | myVar = setInterval(function(){ i += 1; scrollBy(0,10); console.log(i); if(i == 95) myStopFunction(); }, 2); |
} | } | ||
function scrollTillTop(){ | function scrollTillTop(){ | ||
var j=0; | var j=0; | ||
− | myVar = setInterval(function(){ j += 1; scrollBy(0,-10); console.log(j); if(j == | + | myVar = setInterval(function(){ j += 1; scrollBy(0,-10); console.log(j); if(j == 95) myStopFunction(); }, 2); |
} | } | ||
Revision as of 23:46, 30 August 2017