YuhangYang (Talk | contribs) (Created page with "→Follow the height of the window size: $(function(){ var winHeight=$(window).height(); if(winHeight>=465){ $(".SSTi-SZGD").css("height",winHeight); $(".topic").css...") |
YuhangYang (Talk | contribs) |
||
Line 1: | Line 1: | ||
+ | /*custom Team Effect*/ | ||
+ | $(function(){ | ||
+ | |||
+ | $(".header .nav .mainnav").eq(3).hover(function(){ | ||
+ | $(".header .nav .Human_Practices span").css("color","#FAEE0D"); | ||
+ | },function(){ | ||
+ | $(".header .nav .Human_Practices span").css("color","#FAEE0D"); | ||
+ | }); | ||
+ | |||
+ | }); | ||
+ | |||
/*Follow the height of the window size*/ | /*Follow the height of the window size*/ | ||
$(function(){ | $(function(){ | ||
− | var winHeight=$(window). | + | var winHeight=$(window).outerHeight(); |
− | + | if(winHeight>=489){ | |
− | if(winHeight>= | + | |
$(".SSTi-SZGD").css("height",winHeight); | $(".SSTi-SZGD").css("height",winHeight); | ||
− | |||
} | } | ||
else{ | else{ | ||
− | + | $(".SSTi-SZGD").css("height","489px"); | |
− | $(".SSTi-SZGD").css("height", | + | |
− | + | ||
} | } | ||
$(window).resize(function(){ | $(window).resize(function(){ | ||
− | winHeight=$(window). | + | winHeight=$(window).outerHeight(); |
− | + | if(winHeight>=489){ | |
− | if(winHeight>= | + | |
$(".SSTi-SZGD").css("height",winHeight); | $(".SSTi-SZGD").css("height",winHeight); | ||
− | |||
}else{ | }else{ | ||
− | + | $(".SSTi-SZGD").css("height","489px"); | |
− | $(".SSTi-SZGD").css("height", | + | |
− | + | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}); | }); | ||
}); | }); |
Latest revision as of 23:15, 25 October 2017
/*custom Team Effect*/ $(function(){
$(".header .nav .mainnav").eq(3).hover(function(){ $(".header .nav .Human_Practices span").css("color","#FAEE0D"); },function(){ $(".header .nav .Human_Practices 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"); }
});
});