Difference between revisions of "Team:Greece/Model"

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 == 150) myStopFunction(); }, 2);
+
     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 == 150) myStopFunction(); }, 2);
+
     myVar = setInterval(function(){ j += 1; scrollBy(0,-10); console.log(j); if(j == 95) myStopFunction(); }, 2);
 
}
 
}
  

Revision as of 23:46, 30 August 2017

Loading...