Difference between revisions of "Team:Greece/human practices"

Line 77: Line 77:
 
     $('#ct1').goTo();
 
     $('#ct1').goTo();
  
}
+
    }
 
     </script>
 
     </script>
  
    <!-- Smooth Scrolling (Top to Bottom and vice versa) -->
 
    <script>
 
 
var myVar;
 
function scrollTillBottom() {
 
    var i=0;
 
    myVar = setInterval(function(){ i += 1; scrollBy(0,10); console.log(i); if(i == 95) myStopFunction(); }, 2);
 
}
 
 
function scrollTillTop(){
 
    var j=0;
 
    myVar = setInterval(function(){ j += 1; scrollBy(0,-10); console.log(j); if(j == 95) myStopFunction(); }, 2);
 
}
 
 
function myStopFunction() {
 
    clearInterval(myVar);
 
}
 
 
$('#toTop').click( function(e) {
 
  e.preventDefault();
 
  scrollTillTop();
 
});
 
 
</script>
 
 
</head>
 
</head>
 
<body>
 
<body>

Revision as of 11:00, 1 September 2017

Loading...