MediaWiki:Common.js: Difference between revisions

From Rinchen Terdzö
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
 
(107 intermediate revisions by 3 users not shown)
Line 1: Line 1:
mw.loader.load( 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css', 'text/css' );
$('#bios-trigger').hover( function() { $('#bios-back').show(); }, function() { $('#bios-back').hide(); });
mw.loader.load( 'https://fonts.googleapis.com/css?family=EB+Garamond', 'text/css' );
$('#bios-trigger').click( function() { window.location.href = 'https://rtz.tsadra.org/index.php/Biographies'; })
mw.loader.load( 'https://use.fontawesome.com/bd289233d5.js' );
$('#indexes-trigger').hover( function() { $('#indexes-back').show(); }, function() { $('#indexes-back').hide(); });
mw.loader.load( 'https://code.jquery.com/ui/1.12.1/jquery-ui.min.js' );
$('#indexes-trigger').click( function() { window.location.href = 'https://rtz.tsadra.org/index.php/Indexes_and_Lineage_Histories'; })
mw.loader.load( 'https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css', 'text/css' );
$('#maha-trigger').hover( function() { $('#maha-back').show(); }, function() { $('#maha-back').hide(); });
mw.loader.load( 'https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js' );
$('#maha-trigger').click( function() { window.location.href = 'https://rtz.tsadra.org/index.php/Mahayoga'; })
 
$('#anu-trigger').hover( function() { $('#anu-back').show(); }, function() { $('#anu-back').hide(); });
 
$('#anu-trigger').click( function() { window.location.href = 'https://rtz.tsadra.org/index.php/Anuyoga'; })
/* For All Site */
$('#ati-trigger').hover( function() { $('#ati-back').show(); }, function() { $('#ati-back').hide(); });
 
$('#ati-trigger').click( function() { window.location.href = 'https://rtz.tsadra.org/index.php/Atiyoga'; })
$(document).ready(function(){
$('#sup-trigger').hover( function() { $('#sup-back').show(); }, function() { $('#sup-back').hide(); });
$('table.data-table').dataTable();
$('#sup-trigger').click( function() { window.location.href = 'https://rtz.tsadra.org/index.php/Supplementary_Volumes'; })
});
$('#ill-trigger').hover( function() { $('#ill-back').show(); }, function() { $('#ill-back').hide(); });
 
$('#ill-trigger').click( function() { window.location.href = 'https://rtz.tsadra.org/index.php/RTZ_Volume_72'; })
/*    RTZ Main Page Functions    */
$('#out-trigger').hover( function() { $('#out-back').show(); }, function() { $('#out-back').hide(); });
 
$('#out-trigger').click( function() { window.location.href = 'https://rtz.tsadra.org/index.php/RTZ_Outline'; })
$(document).ready(function(){
$('#section-links').hover(
function(){ $('#tsdlogo').addClass('hide') },
function(){ $('#tsdlogo').removeClass('hide') }
);
$('#bios-trigger').click(function() {
window.location = "Biographies";
}).hover(
function(){ $('#bios-back').css('z-index','999').addClass('animated fadeIn') },
function(){ $('#bios-back').css('z-index','-999').removeClass('animated fadeIn') }
);
$('#indexes-trigger').click(function() {
window.location = "Indexes and Lineage Histories";
}).hover(
function(){ $('#indexes-back').css('z-index','999').addClass('animated fadeIn') },
function(){ $('#indexes-back').css('z-index','-999').removeClass('animated fadeIn') }
);
$('#maha-trigger').click(function() {
window.location = "Mahayoga";
}).hover(
function(){ $('#maha-back').css('z-index','999').addClass('animated fadeIn') },
function(){ $('#maha-back').css('z-index','-999').removeClass('animated fadeIn') }
);
$('#anu-trigger').click(function() {
window.location = "Anuyoga";
}).hover(
function(){ $('#anu-back').css('z-index','999').addClass('animated fadeIn') },
function(){ $('#anu-back').css('z-index','-999').removeClass('animated fadeIn') }
);
$('#ati-trigger').click(function() {
window.location = "Atiyoga";
}).hover(
function(){ $('#ati-back').css('z-index','999').addClass('animated fadeIn') },
function(){ $('#ati-back').css('z-index','-999').removeClass('animated fadeIn') }
);
$('#sup-trigger').click(function() {
window.location = "Supplementary Volumes";
}).hover(
function(){ $('#sup-back').css('z-index','999').addClass('animated fadeIn') },
function(){ $('#sup-back').css('z-index','-999').removeClass('animated fadeIn') }
);
$('#out-trigger').click(function() {
window.location = "RTZ Outline";
}).hover(
function(){ $('#out-back').css('z-index','999').addClass('animated fadeIn') },
function(){ $('#out-back').css('z-index','-999').removeClass('animated fadeIn') }
);
});
 
/*    RTZ Outline Page Functions    */
 
$(document).ready(function(){
$('.collapse-toggle').click(function(){
    $(this).siblings('#collapsible-content').toggle( 300 );
    $(this).toggleClass("rotated");;
    });
});
 
 
 
 
 
/*    RTZ Biographies Page Functions    */
 
$(document).ready(function(){
$('.info-tab-header').click(function() {
$(this).siblings('#info-text').css('display','block');
$(this).removeClass('inactive-header');
$(this).siblings('#tibetan-text').css('display', 'none');
$(this).siblings('#wylie-text').css('display', 'none');
$(this).siblings('.tibetan-tab-header').addClass('inactive-header');
$(this).siblings('.wylie-tab-header').addClass('inactive-header')
});
$('.wylie-tab-header').click(function() {
$(this).siblings('#wylie-text').css('display','block');
$(this).removeClass('inactive-header');
$(this).siblings('#info-text').css('display', 'none');
$(this).siblings('#tibetan-text').css('display', 'none');
$(this).siblings('.info-tab-header').addClass('inactive-header');
$(this).siblings('.tibetan-tab-header').addClass('inactive-header')
});
$('.tibetan-tab-header').click(function() {
$(this).siblings('#tibetan-text').css('display','block');
$(this).removeClass('inactive-header');
$(this).siblings('#info-text').css('display', 'none');
$(this).siblings('#wylie-text').css('display', 'none');
$(this).siblings('.info-tab-header').addClass('inactive-header');
$(this).siblings('.wylie-tab-header').addClass('inactive-header')
});
$('.smw-template-furtherresults').addClass('plainlinks')
});

Latest revision as of 15:47, 6 March 2024

$('#bios-trigger').hover( function() { $('#bios-back').show(); }, function() { $('#bios-back').hide(); });
$('#bios-trigger').click( function() { window.location.href = 'https://rtz.tsadra.org/index.php/Biographies'; })
$('#indexes-trigger').hover( function() { $('#indexes-back').show(); }, function() { $('#indexes-back').hide(); });
$('#indexes-trigger').click( function() { window.location.href = 'https://rtz.tsadra.org/index.php/Indexes_and_Lineage_Histories'; })
$('#maha-trigger').hover( function() { $('#maha-back').show(); }, function() { $('#maha-back').hide(); });
$('#maha-trigger').click( function() { window.location.href = 'https://rtz.tsadra.org/index.php/Mahayoga'; })
$('#anu-trigger').hover( function() { $('#anu-back').show(); }, function() { $('#anu-back').hide(); });
$('#anu-trigger').click( function() { window.location.href = 'https://rtz.tsadra.org/index.php/Anuyoga'; })
$('#ati-trigger').hover( function() { $('#ati-back').show(); }, function() { $('#ati-back').hide(); });
$('#ati-trigger').click( function() { window.location.href = 'https://rtz.tsadra.org/index.php/Atiyoga'; })
$('#sup-trigger').hover( function() { $('#sup-back').show(); }, function() { $('#sup-back').hide(); });
$('#sup-trigger').click( function() { window.location.href = 'https://rtz.tsadra.org/index.php/Supplementary_Volumes'; })
$('#ill-trigger').hover( function() { $('#ill-back').show(); }, function() { $('#ill-back').hide(); });
$('#ill-trigger').click( function() { window.location.href = 'https://rtz.tsadra.org/index.php/RTZ_Volume_72'; })
$('#out-trigger').hover( function() { $('#out-back').show(); }, function() { $('#out-back').hide(); });
$('#out-trigger').click( function() { window.location.href = 'https://rtz.tsadra.org/index.php/RTZ_Outline'; })