v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

User:Lethosor/fullpage.js

From Dwarf Fortress Wiki
< User:Lethosor
Revision as of 22:48, 19 September 2013 by Lethosor (talk | contribs) (fix)
Jump to navigation Jump to search

Note: After saving, 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: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files
// Enables full-page mode (like full-screen, but only in-browser)
jQuery(function($){
var show=function(){$('body').children().not('.mw-body').show(200);$('.mw-body').css({width:'', margin:''})};
var hide=function(){$('body').children().not('.mw-body').hide(200);$('.mw-body').animate({width:'100%', margin:0}, 200)};
var toggle=function(){if(hidden)show();else hide();hidden=!hidden;}
var count=0, hidden=false;
$(window).keydown(function(e){if(e.keyCode==18){count++;if(count>=3){toggle();count=0}}else count=0;});
});