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

Line 178: Line 178:
  
 
<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>
  
 
<div id="holder">
 
<div id="holder">

Revision as of 14:24, 24 May 2018

D E S C R I P T I O N