Difference between revisions of "Template:Pitt"
Line 40: | Line 40: | ||
.css('top', ''); | .css('top', ''); | ||
s.stickyElement.parent().removeClass(s.className); | s.stickyElement.parent().removeClass(s.className); | ||
− | $("#top_menu_14").removeClass("opaque | + | $("#top_menu_14").removeClass("opaque"); |
− | $("#top_menu_14").stop().fadeTo(250, 0.2); | + | $("#top_menu_14").not(".mouseOver").stop().fadeTo(250, 0.2); |
s.currentTop = null; | s.currentTop = null; | ||
} | } | ||
Line 63: | Line 63: | ||
s.stickyElement.parent().addClass(s.className); | s.stickyElement.parent().addClass(s.className); | ||
− | $("#top_menu_14 | + | $("#top_menu_14").addClass("opaque"); |
$("#top_menu_14").stop().fadeTo(250, 1); | $("#top_menu_14").stop().fadeTo(250, 1); | ||
s.currentTop = newTop; | s.currentTop = newTop; | ||
Line 155: | Line 155: | ||
$("#menuContainer").sticky({topSpacing:16}); | $("#menuContainer").sticky({topSpacing:16}); | ||
− | |||
− | |||
$("#top_menu_14").mouseenter(function(e){ | $("#top_menu_14").mouseenter(function(e){ | ||
+ | $(this).addClass("mouseOver"); | ||
$(this).not(".opaque").stop().fadeTo(500, 1); | $(this).not(".opaque").stop().fadeTo(500, 1); | ||
}); | }); | ||
$("#top_menu_14").mouseleave(function(){ | $("#top_menu_14").mouseleave(function(){ | ||
+ | $(this).removeClass("mouseOver"); | ||
$(this).not(".opaque").stop().fadeTo(500, 0.2); | $(this).not(".opaque").stop().fadeTo(500, 0.2); | ||
}); | }); | ||
Line 177: | Line 177: | ||
#top_menu_14 { | #top_menu_14 { | ||
border: none; | border: none; | ||
+ | opacity: .2; | ||
} | } | ||
Line 283: | Line 284: | ||
padding: 15px; | padding: 15px; | ||
padding-top: 5px; | padding-top: 5px; | ||
− | |||
− | |||
− | |||
− | |||
} | } | ||
Revision as of 02:37, 22 May 2015