Difference between revisions of "MediaWiki:Common.js"

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 1: Line 1:
 
$(document).ready(function(){
 
$(document).ready(function(){
 
$(".animated-caret a").hover(function(){
 
$(".animated-caret a").hover(function(){
$(this).children('#fadeInCaret').addClass('animated fadeInLeft').toggleClass('visible');
+
$(this).children('#fadeInCaret').toggleClass('animated fadeInLeft').toggleClass('visible');
 
});
 
});
 
});
 
});

Revision as of 16:01, 2 August 2018

$(document).ready(function(){
	$(".animated-caret a").hover(function(){
		$(this).children('#fadeInCaret').toggleClass('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' );




// QTip link text
$(document).ready(function(){
    $('a.mw-lingo-tooltip-link').css('content', ' more');
});