MediaWiki:Common.js: Difference between revisions

From Rinchen Terdzö
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 8: Line 8:
)
)


$('#bios-trigger').hover(
$(document).ready(function(){
      function(){ $('#sections-slideins').addClass('bios-back animated fadeInRight') },
$('#bios-trigger').click(function() {
      function(){ $('#sections-slideins').removeClass('bios-back animated fadeInRight') }
window.location = "Biographies";
).click(function() {
}).hover(
    window.location = "Biographies";
function(){ $('#sections-slideins').addClass('bios-back animated fadeInRight') },
}
function(){ $('#sections-slideins').removeClass('bios-back animated fadeInRight') }
 
)
});


$('#indexes-trigger').hover(
$('#indexes-trigger').hover(

Revision as of 11:00, 4 October 2017

mw.loader.load( 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css', 'text/css' );
mw.loader.load( 'https://fonts.googleapis.com/css?family=EB+Garamond', 'text/css' );
mw.loader.load( 'https://use.fontawesome.com/bd289233d5.js' );

$('#section-links').hover(
       function(){ $('#tsdlogo').addClass('hide') },
       function(){ $('#tsdlogo').removeClass('hide') }
)

$(document).ready(function(){
$('#bios-trigger').click(function() {
	window.location = "Biographies";
}).hover(
	function(){ $('#sections-slideins').addClass('bios-back animated fadeInRight') },
	function(){ $('#sections-slideins').removeClass('bios-back animated fadeInRight') }
)
});

$('#indexes-trigger').hover(
       function(){ $('#sections-slideins').addClass('indexes-back animated fadeInRight') },
       function(){ $('#sections-slideins').removeClass('indexes-back animated fadeInRight') }
)

$('#maha-trigger').hover(
       function(){ $('#sections-slideins').addClass('maha-back animated fadeInRight') },
       function(){ $('#sections-slideins').removeClass('maha-back animated fadeInRight') }
)

$('#anu-trigger').hover(
       function(){ $('#sections-slideins').addClass('anu-back animated fadeInRight') },
       function(){ $('#sections-slideins').removeClass('anu-back animated fadeInRight') }
)

$('#ati-trigger').hover(
       function(){ $('#sections-slideins').addClass('ati-back animated fadeInRight') },
       function(){ $('#sections-slideins').removeClass('ati-back animated fadeInRight') }
)

$('#sup-trigger').hover(
       function(){ $('#sections-slideins').addClass('sup-back animated fadeInRight') },
       function(){ $('#sections-slideins').removeClass('sup-back animated fadeInRight') }
)