Difference between revisions of "MediaWiki:Common.js"

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
 
(40 intermediate revisions by the same user not shown)
Line 1: Line 1:
// Loading jQuery seems to only work here ¯\_(ツ)_/¯
 
mw.loader.load( 'https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js' );
 
  
  
 
+
// Discover page anchors
 
+
$('.fp-arrowUp').click(function(){
// QTip link text
+
     $.fn.fullpage.moveSectionUp();
$(document).ready(function(){
+
});
     $('a.mw-lingo-tooltip-link').css('content', ' more');
+
$('.fp-arrowDown').click(function(){
 +
    $.fn.fullpage.moveSectionDown();
 
});
 
});

Latest revision as of 18:26, 16 December 2022

// Discover page anchors
$('.fp-arrowUp').click(function(){
    $.fn.fullpage.moveSectionUp();
});
$('.fp-arrowDown').click(function(){
    $.fn.fullpage.moveSectionDown();
});