Difference between revisions of "Team:Lambert GA/Description"

Line 216: Line 216:
 
</body>
 
</body>
  
 +
<script type="text/javascript">
 +
$('a[href^="#"]').on('click', function(event) {
  
 +
    var target = $(this.getAttribute('href'));
 +
 +
    if( target.length ) {
 +
        event.preventDefault();
 +
        $('html, body').stop().animate({
 +
            scrollTop: target.offset().top
 +
        }, 1000);
 +
    }
 +
 +
});
 +
</script>
 
</html>
 
</html>

Revision as of 14:21, 24 May 2018

D E S C R I P T I O N