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: Reverted
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

Revision as of 06:10, 9 August 2022

$(".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"});