MediaWiki:Common.js

From Buddha-Nature

Revision as of 15:20, 28 May 2020 by JeremiP (talk | contribs) ((by SublimeText.Mediawiker))

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 / Edge: 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.
// Discover page anchors
$('.fp-arrowUp').click(function(){
    $.fn.fullpage.moveSectionUp();
});
$('.fp-arrowDown').click(function(){
    $.fn.fullpage.moveSectionDown();
});

// Move Discover slide buttons to bottom navigation anchors
$('.fp-slidesNav > ul > li:nth-child(1) > a').load('# #SlideOneButton');
$('.fp-slidesNav > ul > li:nth-child(2) > a').load('# #SlideTwoButton');
$('.fp-slidesNav > ul > li:nth-child(3) > a').load('# #SlideThreeButton');
$('.fp-slidesNav > ul > li:nth-child(4) > a').load('# #SlideFourButton');
$('.fp-slidesNav > ul > li:nth-child(5) > a').load('# #SlideFiveButton');
$('.fp-slidesNav > ul > li:nth-child(6) > a').load('# #SlideSixButton');