MediaWiki:Common.js: Difference between revisions

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
 
(52 intermediate revisions by the same user not shown)
Line 1: Line 1:
$(document).ready(function(){
 
 
// Discover page anchors
$('.fp-arrowUp').click(function(){
    $.fn.fullpage.moveSectionUp();
});
$('.fp-arrowDown').click(function(){
    $.fn.fullpage.moveSectionDown();
});
});
// Loading jQuery seems to only work here ¯\_(ツ)_/¯
mw.loader.load( 'https://code.jquery.com/jquery-3.2.1.slim.min.js' );

Latest revision as of 17:26, 16 December 2022

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