Difference between revisions of "Team:SSTi-SZGD/js/HP Silver"

(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...")
 
 
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).height();
+
var winHeight=$(window).outerHeight();
+
if(winHeight>=489){
if(winHeight>=465){
+
 
$(".SSTi-SZGD").css("height",winHeight);
 
$(".SSTi-SZGD").css("height",winHeight);
$(".topic").css("top",winHeight*0.35);
 
 
}
 
}
 
else{
 
else{
winHeight=465;
+
$(".SSTi-SZGD").css("height","489px");
$(".SSTi-SZGD").css("height",winHeight);
+
$(".topic").css("top",winHeight*0.35);
+
 
}
 
}
 
 
 
$(window).resize(function(){
 
$(window).resize(function(){
 
 
winHeight=$(window).height();
+
winHeight=$(window).outerHeight();
+
if(winHeight>=489){
if(winHeight>=465){
+
 
$(".SSTi-SZGD").css("height",winHeight);
 
$(".SSTi-SZGD").css("height",winHeight);
$(".topic").css("top",winHeight*0.35);
 
 
}else{
 
}else{
winHeight=465;
+
$(".SSTi-SZGD").css("height","489px");
$(".SSTi-SZGD").css("height",winHeight);
+
$(".topic").css("top",winHeight*0.35);
+
 
}
 
}
 
 
});
 
/*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 .Human_Practices span").css("color","#FAEE0D");
 
},function(){
 
$(".header .nav .Human_Practices span").css("color","#FAEE0D");
 
 
});
 
});
 
 
 
});
 
});

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"); }

});

});