Difference between revisions of "Template:Pitt"
Line 41: | Line 41: | ||
.css('top', ''); | .css('top', ''); | ||
s.stickyElement.parent().removeClass(s.className); | s.stickyElement.parent().removeClass(s.className); | ||
+ | $("#menuContainer td").stop(true, false).animate({backgroundColor: '#000000'}, 250); | ||
+ | $("#menuContainer table").stop(true, false).animate({backgroundColor: '#000000'}, 250); | ||
+ | $("#menuContainer li").css({backgroundColor: '#000000'}); | ||
$("#top_menu_14").removeClass("opaque"); | $("#top_menu_14").removeClass("opaque"); | ||
$("#top_menu_14").not(".mouseOver").stop().fadeTo(250, 0.2); | $("#top_menu_14").not(".mouseOver").stop().fadeTo(250, 0.2); | ||
Line 62: | Line 65: | ||
s.stickyElement.css('width', $(s.getWidthFrom).width()); | s.stickyElement.css('width', $(s.getWidthFrom).width()); | ||
} | } | ||
− | + | $("#menuContainer td").stop(true, false).animate({backgroundColor: '#00043d'}, 250); | |
+ | $("#menuContainer table").stop(true, false).animate({backgroundColor: '#00043d'}, 250); | ||
+ | $("#menuContainer li").css({backgroundColor: '#00043d'}); | ||
s.stickyElement.parent().addClass(s.className); | s.stickyElement.parent().addClass(s.className); | ||
$("#top_menu_14").addClass("opaque"); | $("#top_menu_14").addClass("opaque"); | ||
Line 73: | Line 78: | ||
resizer = function() { | resizer = function() { | ||
windowHeight = $window.height(); | windowHeight = $window.height(); | ||
+ | $("#menuContainer td:has(ul)").children("ul").each(function(){ | ||
+ | var padding = parseInt($(this).parent().css("padding-left")) + parseInt($(this).parent().css("padding-right")); | ||
+ | var newWidth = parseInt($(this).parent().css("width")) + padding; | ||
+ | if (newWidth > parseInt($(this).css("width"))){ | ||
+ | $(this).css("width", newWidth + 'px'); | ||
+ | } else { | ||
+ | $(this).parent().css("width", (parseInt($(this).css("width")) - padding) +'px'); | ||
+ | } | ||
+ | }); | ||
}, | }, | ||
methods = { | methods = { | ||
Line 262: | Line 276: | ||
#bottomContainer { | #bottomContainer { | ||
− | background-color: # | + | background-color: #00043d; |
width: 100%; | width: 100%; | ||
color: #ffffff; | color: #ffffff; | ||
Line 286: | Line 300: | ||
#bottomContainer table { | #bottomContainer table { | ||
− | background-color: # | + | background-color: #00043d; |
width: 100%; | width: 100%; | ||
text-align: center; | text-align: center; | ||
Line 292: | Line 306: | ||
#bottomContainer ul { | #bottomContainer ul { | ||
− | background-color: # | + | background-color: #00043d; |
list-style:none; | list-style:none; | ||
cursor: pointer; | cursor: pointer; |
Revision as of 07:43, 29 May 2015