EstebanDLPT (Talk | contribs) m |
EstebanDLPT (Talk | contribs) m |
||
Line 52: | Line 52: | ||
$("#linkContainer_Project").hover( | $("#linkContainer_Project").hover( | ||
function () { | function () { | ||
− | $('#navbar').css('background','# | + | $('#navbar').css('background','#2A8481'); |
$("#linkContainer_Project").addClass("active"); | $("#linkContainer_Project").addClass("active"); | ||
$("#linkContainer_ProjectChild").addClass("activeChild"); | $("#linkContainer_ProjectChild").addClass("activeChild"); | ||
Line 64: | Line 64: | ||
$('#collapseProject').mouseenter(function(){ | $('#collapseProject').mouseenter(function(){ | ||
− | $('#navbar').css('background','# | + | $('#navbar').css('background','#2A8481'); |
$("#linkContainer_Project").addClass("active"); | $("#linkContainer_Project").addClass("active"); | ||
$("#linkContainer_ProjectChild").addClass("activeChild"); | $("#linkContainer_ProjectChild").addClass("activeChild"); | ||
Line 83: | Line 83: | ||
$("#linkContainer_Parts").addClass("active"); | $("#linkContainer_Parts").addClass("active"); | ||
$("#linkContainer_PartsChild").addClass("activeChild"); | $("#linkContainer_PartsChild").addClass("activeChild"); | ||
− | openMenu('#collapseParts', '# | + | openMenu('#collapseParts', '#40706e'); |
}, function () { | }, function () { | ||
colorNavbar(); | colorNavbar(); | ||
Line 94: | Line 94: | ||
$("#linkContainer_Parts").addClass("active"); | $("#linkContainer_Parts").addClass("active"); | ||
$("#linkContainer_PartsChild").addClass("activeChild"); | $("#linkContainer_PartsChild").addClass("activeChild"); | ||
− | openMenu('#collapseParts', '# | + | openMenu('#collapseParts', '#40706e'); |
}); | }); | ||
$('#collapseParts').mouseleave(function(){ | $('#collapseParts').mouseleave(function(){ | ||
Line 110: | Line 110: | ||
$("#linkContainer_People").addClass("active"); | $("#linkContainer_People").addClass("active"); | ||
$("#linkContainer_PeopleChild").addClass("activeChild"); | $("#linkContainer_PeopleChild").addClass("activeChild"); | ||
− | openMenu('#collapsePeople', '# | + | openMenu('#collapsePeople', '#729594'); |
}, function () { | }, function () { | ||
colorNavbar(); | colorNavbar(); | ||
Line 121: | Line 121: | ||
$("#linkContainer_People").addClass("active"); | $("#linkContainer_People").addClass("active"); | ||
$("#linkContainer_PeopleChild").addClass("activeChild"); | $("#linkContainer_PeopleChild").addClass("activeChild"); | ||
− | openMenu('#collapsePeople', '# | + | openMenu('#collapsePeople', '#729594'); |
}); | }); | ||
$('#collapsePeople').mouseleave(function(){ | $('#collapsePeople').mouseleave(function(){ | ||
Line 203: | Line 203: | ||
function colorNavbar(){ | function colorNavbar(){ | ||
if($(".topBar").offset().top > 300){ | if($(".topBar").offset().top > 300){ | ||
− | $('#navbar').css('background','# | + | $('#navbar').css('background','#2A8481'); |
}else{ | }else{ | ||
$('#navbar').css('background','linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(255,255,255,0) 100%)'); | $('#navbar').css('background','linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(255,255,255,0) 100%)'); |
Revision as of 01:42, 11 August 2018