MediaWiki:Common.js: Difference between revisions

From LabRPS Documentation
Jump to navigation Jump to search
(Created page with "// 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"}); $(".fci...")
 
No edit summary
Tag: Manual revert
 
(One intermediate revision by the same user not shown)
(No difference)

Latest revision as of 06: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"});