MediaWiki:Common.js
From Rinchen Terdzö
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
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 fadeInRight') },
function(){ $('#sections-slideins').removeClass('bios-back animated fadeInRight') }
);
$('#indexes-trigger').click(function() {
window.location = "Indexes and Lineage Histories";
}).hover(
function(){ $('#sections-slideins').addClass('indexes-back animated fadeInRight') },
function(){ $('#sections-slideins').removeClass('indexes-back animated fadeInRight') }
);
$('#maha-trigger').click(function() {
window.location = "Mahayoga";
}).hover(
function(){ $('#sections-slideins').addClass('maha-back animated fadeInRight') },
function(){ $('#sections-slideins').removeClass('maha-back animated fadeInRight') }
);
$('#anu-trigger').click(function() {
window.location = "Anuyoga";
}).hover(
function(){ $('#sections-slideins').addClass('anu-back animated fadeInRight') },
function(){ $('#sections-slideins').removeClass('anu-back animated fadeInRight') }
);
$('#ati-trigger').click(function() {
window.location = "Atiyoga";
}).hover(
function(){ $('#sections-slideins').addClass('ati-back animated fadeInRight') },
function(){ $('#sections-slideins').removeClass('ati-back animated fadeInRight') }
);
$('#sup-trigger').click(function() {
window.location = "Supplementary Volumes";
}).hover(
function(){ $('#sections-slideins').addClass('sup-back animated fadeInRight') },
function(){ $('#sections-slideins').removeClass('sup-back animated fadeInRight') }
)
});