Team:SSTi-SZGD/js/Medal

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

var winHeight=$(window).height();

if(winHeight>=465){ $(".SSTi-SZGD").css("height",winHeight); $(".topic").css("top",winHeight*0.35); } else{ winHeight=465; $(".SSTi-SZGD").css("height",winHeight); $(".topic").css("top",winHeight*0.35); }

$(window).resize(function(){

winHeight=$(window).height();

if(winHeight>=465){ $(".SSTi-SZGD").css("height",winHeight); $(".topic").css("top",winHeight*0.35); }else{ winHeight=465; $(".SSTi-SZGD").css("height",winHeight); $(".topic").css("top",winHeight*0.35); }

var AbstractHeight=$(".Abstract").outerHeight(); $(".Content").css("height",AbstractHeight);

}); /*Anchor link jump slip*/ $('.SubNav a').click(function(){ $('html, body').animate({ scrollTop: $( $.attr(this, 'href') ).offset().top }, 500); return false; });

});

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

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

});