MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
| Line 1: | Line 1: | ||
// show a hand cursor on expand links | |||
$(".expand-link").hover( function() { $(this).css("cursor", "pointer"); }); | $(".expand-link").hover( function() { $(this).css("cursor", "pointer"); }); | ||
// make sublist visible on expand links click | // make sublist visible on expand links click | ||
Latest revision as of 07:11, 9 August 2022
// show a hand cursor on expand links
$(".expand-link").hover( function() { $(this).css("cursor", "pointer"); });
// make sublist visible on expand links click
$(".expand-link").click( function() { $(this).parent('li').parent('ul').parent('div').toggleClass("collapsible-list"); });
// restrict width of images on manual and command pages to fit besides TOC
$(".manualtoc").parent().find("img").css({"max-width":$(".manualtoc").parent().width()-300,"height":"auto"});
$(".fcinfobox").parent().find("img").css({"max-width":$(".fcinfobox").parent().width()-300,"height":"auto"});