Difference between revisions of "Team:SSTi-SZGD/js/Applied Design"

(Created page with "custom Team Effect: $(function(){ $(".header .nav .mainnav").eq(1).hover(function(){ $(".header .nav .Project span").css("color","#FAEE0D"); },function(){ $(".heade...")
 
 
Line 31: Line 31:
 
 
 
});
 
});
 
/*Anchor link jump slip*/
 
$('.href a').click(function(){ 
 
    $('html, body').animate({ 
 
        scrollTop: $( $.attr(this, 'href') ).offset().top 
 
    }, 500); 
 
    return false; 
 
});
 
 
 
 
});
 
});

Latest revision as of 15:11, 26 October 2017

/*custom Team Effect*/ $(function(){

$(".header .nav .mainnav").eq(1).hover(function(){ $(".header .nav .Project span").css("color","#FAEE0D"); },function(){ $(".header .nav .Project span").css("color","#FAEE0D"); });

});

/*Follow the height of the window size*/ $(function(){

var winHeight=$(window).outerHeight(); if(winHeight>=489){ $(".SSTi-SZGD").css("height",winHeight); } else{ $(".SSTi-SZGD").css("height","489px"); }

$(window).resize(function(){

winHeight=$(window).outerHeight(); if(winHeight>=489){ $(".SSTi-SZGD").css("height",winHeight); }else{ $(".SSTi-SZGD").css("height","489px"); }

});

});