Difference between revisions of "MediaWiki:Common.js"

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
 
(42 intermediate revisions by the same user not shown)
Line 1: Line 1:
$(document).ready(function(){
 
$(".animated-caret a").hover(function(){
 
$(this).children('#fadeInCaret').addClass('animated fadeInLeft').toggleClass('visible');
 
});
 
});
 
  
// 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(){
 
+
     $.fn.fullpage.moveSectionUp();
// QTip link text
+
});
$(document).ready(function(){
+
$('.fp-arrowDown').click(function(){
     $('a.mw-lingo-tooltip-link').css('content', ' more');
+
    $.fn.fullpage.moveSectionDown();
 
});
 
});

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();
});