MediaWiki:Common.js

// 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":$(".manualtoc").parent.width-300,"height":"auto"});