MediaWiki:Common.js

From FreeCAD Documentation

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
// 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"});