Difference between revisions of "Template:Team:UofC Calgary/Test1"

Line 9: Line 9:
 
//``````````````````````````````````````````FUNCTION TO SHRINK NAV BAR WHILE SCROLLING``````````````````````````````````````````
 
//``````````````````````````````````````````FUNCTION TO SHRINK NAV BAR WHILE SCROLLING``````````````````````````````````````````
 
$(document).ready(function () {
 
$(document).ready(function () {
 
    $('#logo')
 
        .mouseover(function () {
 
        $(this).attr("src", "https://static.igem.org/mediawiki/2015/3/35/UCSF_Logo_Wiki_Grey.gif");
 
    })
 
        .mouseout(function () {
 
        $(this).attr("src", "https://static.igem.org/mediawiki/2015/a/ae/UCSF_Logo_Wiki.png");
 
    });
 
 
    $( "#backToTop" ).hover(
 
      function() {
 
        $('#backToTopArrow').css('margin', '5px 0 0px 55px');
 
      },
 
      function() {
 
        $('#backToTopArrow').css('margin','30px 0 0px 55px');
 
      }
 
    );
 
 
    $('a[href^="#"]').bind('click.smoothscroll',function (e) {
 
        e.preventDefault();
 
 
        var target = this.hash,
 
        $target = $(target);
 
 
        $('html, body').stop().animate({
 
            'scrollTop': $target.offset().top-60
 
        }, 900, 'swing', function () {
 
            window.location.hash = target;
 
        });
 
    });
 
 
    $("#Top").click(function(){
 
      scroll(0,0);
 
    });
 
  
 
     $('.yeastiesEA').click(function () {
 
     $('.yeastiesEA').click(function () {

Revision as of 20:19, 17 August 2016