MediaWiki:Common.js: Difference between revisions
From Rinchen Terdzö
((by SublimeText.Mediawiker)) |
((by SublimeText.Mediawiker)) |
||
Line 12: | Line 12: | ||
window.location = "Biographies"; | window.location = "Biographies"; | ||
}).hover( | }).hover( | ||
function(){ $('#sections-slideins').addClass('bios-back animated | function(){ $('#sections-slideins').addClass('bios-back animated fadeIn') }, | ||
function(){ $('#sections-slideins').removeClass('bios-back animated | function(){ $('#sections-slideins').removeClass('bios-back animated fadeIn') } | ||
); | ); | ||
$('#indexes-trigger').click(function() { | $('#indexes-trigger').click(function() { | ||
window.location = "Indexes and Lineage Histories"; | window.location = "Indexes and Lineage Histories"; | ||
}).hover( | }).hover( | ||
function(){ $('#sections-slideins').addClass('indexes-back animated | function(){ $('#sections-slideins').addClass('indexes-back animated fadeIn') }, | ||
function(){ $('#sections-slideins').removeClass('indexes-back animated | function(){ $('#sections-slideins').removeClass('indexes-back animated fadeIn') } | ||
); | ); | ||
$('#maha-trigger').click(function() { | $('#maha-trigger').click(function() { | ||
window.location = "Mahayoga"; | window.location = "Mahayoga"; | ||
}).hover( | }).hover( | ||
function(){ $('#sections-slideins').addClass('maha-back animated | function(){ $('#sections-slideins').addClass('maha-back animated fadeIn') }, | ||
function(){ $('#sections-slideins').removeClass('maha-back animated | function(){ $('#sections-slideins').removeClass('maha-back animated fadeIn') } | ||
); | ); | ||
$('#anu-trigger').click(function() { | $('#anu-trigger').click(function() { | ||
window.location = "Anuyoga"; | window.location = "Anuyoga"; | ||
}).hover( | }).hover( | ||
function(){ $('#sections-slideins').addClass('anu-back animated | function(){ $('#sections-slideins').addClass('anu-back animated fadeIn') }, | ||
function(){ $('#sections-slideins').removeClass('anu-back animated | function(){ $('#sections-slideins').removeClass('anu-back animated fadeIn') } | ||
); | ); | ||
$('#ati-trigger').click(function() { | $('#ati-trigger').click(function() { | ||
window.location = "Atiyoga"; | window.location = "Atiyoga"; | ||
}).hover( | }).hover( | ||
function(){ $('#sections-slideins').addClass('ati-back animated | function(){ $('#sections-slideins').addClass('ati-back animated fadeIn') }, | ||
function(){ $('#sections-slideins').removeClass('ati-back animated | function(){ $('#sections-slideins').removeClass('ati-back animated fadeIn') } | ||
); | ); | ||
$('#sup-trigger').click(function() { | $('#sup-trigger').click(function() { | ||
window.location = "Supplementary Volumes"; | window.location = "Supplementary Volumes"; | ||
}).hover( | }).hover( | ||
function(){ $('#sections-slideins').addClass('sup-back animated | function(){ $('#sections-slideins').addClass('sup-back animated fadeIn') }, | ||
function(){ $('#sections-slideins').removeClass('sup-back animated | function(){ $('#sections-slideins').removeClass('sup-back animated fadeIn') } | ||
) | ) | ||
}); | }); |
Revision as of 11:47, 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' );
$(document).ready(function(){
$('#section-links').hover(
function(){ $('#tsdlogo').addClass('hide') },
function(){ $('#tsdlogo').removeClass('hide') }
);
$('#bios-trigger').click(function() {
window.location = "Biographies";
}).hover(
function(){ $('#sections-slideins').addClass('bios-back animated fadeIn') },
function(){ $('#sections-slideins').removeClass('bios-back animated fadeIn') }
);
$('#indexes-trigger').click(function() {
window.location = "Indexes and Lineage Histories";
}).hover(
function(){ $('#sections-slideins').addClass('indexes-back animated fadeIn') },
function(){ $('#sections-slideins').removeClass('indexes-back animated fadeIn') }
);
$('#maha-trigger').click(function() {
window.location = "Mahayoga";
}).hover(
function(){ $('#sections-slideins').addClass('maha-back animated fadeIn') },
function(){ $('#sections-slideins').removeClass('maha-back animated fadeIn') }
);
$('#anu-trigger').click(function() {
window.location = "Anuyoga";
}).hover(
function(){ $('#sections-slideins').addClass('anu-back animated fadeIn') },
function(){ $('#sections-slideins').removeClass('anu-back animated fadeIn') }
);
$('#ati-trigger').click(function() {
window.location = "Atiyoga";
}).hover(
function(){ $('#sections-slideins').addClass('ati-back animated fadeIn') },
function(){ $('#sections-slideins').removeClass('ati-back animated fadeIn') }
);
$('#sup-trigger').click(function() {
window.location = "Supplementary Volumes";
}).hover(
function(){ $('#sections-slideins').addClass('sup-back animated fadeIn') },
function(){ $('#sections-slideins').removeClass('sup-back animated fadeIn') }
)
});