YuhangYang (Talk | contribs) |
|||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | /* | + | /*custom Project Effect*/ |
$(function(){ | $(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). | + | |
− | + | $(window).resize(function(){ | |
− | + | ||
− | + | winHeight=$(window).outerHeight(); | |
− | if( | + | if(winHeight>=489){ |
− | + | $(".SSTi-SZGD").css("height",winHeight); | |
− | + | }else{ | |
− | + | $(".SSTi-SZGD").css("height","489px"); | |
− | + | ||
} | } | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
}); | }); | ||
+ | |||
}); | }); |
Latest revision as of 08:09, 23 October 2017
/*custom Project 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"); }
});
});