Difference between revisions of "Template:ECUST/Header"

Line 61: Line 61:
 
             </nav>
 
             </nav>
 
         </header>
 
         </header>
 +
<script>
 +
 
 +
$('a[href^="#textblock1"]').on('click',function (e) {
 +
    e.preventDefault();
 +
 +
    var target = this.hash;
 +
    var $target = $(target);
 +
        var scroll = $target.offset().top-200;
 +
    $('html').stop().animate({
 +
        'scrollTop': scroll
 +
    }, 1000, 'swing')
 +
});
 +
 +
$( document ).ready( function() {
 +
  $('link[rel="shortcut icon"]').attr('href','https://static.igem.org/mediawiki/2018/f/f1/T--ECUST--favicon.png');
 +
});
 +
 +
</script>
 
</html>
 
</html>

Revision as of 03:40, 23 August 2018