MediaWiki:Common.js: Difference between revisions
Content deleted Content added
imported>Hendrik Brummermann No edit summary |
imported>Hendrik Brummermann No edit summary |
||
| (21 intermediate revisions by the same user not shown) | |||
Line 3:
// set up the words in your language
var ExpandableBarHide = '
var ExpandableBarShow = '
// adds show/hide-button to Expandable bars
jQuery( document ).ready(function() {
}▼
// shows and hides content and picture (if available) of Expandable bars
Line 73 ⟶ 64:
}
// iterate over all ExpandableFrames
var ExpandableFrames =
// if more Expandable Bars found and not template namespace than Default: hide all
var initiallyToggle = true;
for (var i=0; i<ExpandableFrames.length; i++) {
var ExpandableFrame = ExpandableFrames[i];
Line 95 ⟶ 86:
}
}
});
//================================================================================
// drop down menus
$(function(){
$("div.dropdownmenu ul li").hover(function(){
$(this).addClass("hover");
$('ul:first',this).css('visibility', 'visible');
}, function(){
$(this).removeClass("hover");
$('ul:first',this).css('visibility', 'hidden');
$("div.dropdownmenu ul li ul li:has(ul)").find("a:first").append(" » ");
});
| |||