MediaWiki:Common.js: Difference between revisions

From Rinchen Terdzö
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
 
(199 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(); });
 
$('#indexes-trigger').click( function() { window.location.href = 'https://rtz.tsadra.org/index.php/Indexes_and_Lineage_Histories'; })
$('#section-links').hover(
$('#maha-trigger').hover( function() { $('#maha-back').show(); }, function() { $('#maha-back').hide(); });
      function(){ $('#tsdlogo').addClass('hide') },
$('#maha-trigger').click( function() { window.location.href = 'https://rtz.tsadra.org/index.php/Mahayoga'; })
      function(){ $('#tsdlogo').removeClass('hide') }
$('#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(); });
$('#bios-trigger').hover(
$('#ati-trigger').click( function() { window.location.href = 'https://rtz.tsadra.org/index.php/Atiyoga'; })
      function(){ $('#sections-slideins').addClass('bios-back animated fadeInRight') },
$('#sup-trigger').hover( function() { $('#sup-back').show(); }, function() { $('#sup-back').hide(); });
      function(){ $('#sections-slideins').removeClass('bios-back animated fadeInRight') }
$('#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'; })
$('#indexes-trigger').hover(
$('#out-trigger').hover( function() { $('#out-back').show(); }, function() { $('#out-back').hide(); });
      function(){ $('#sections-slideins').addClass('indexes-back animated fadeInRight') },
$('#out-trigger').click( function() { window.location.href = 'https://rtz.tsadra.org/index.php/RTZ_Outline'; })
      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') }
)
 
 
 
$(document).ready(function() {
  $("#bios-trigger").on('click', '.link', function() {
    $("#bios-trigger").append('<a href="index.php/Biographies" class="link"> Link </a>');
  });
 
  $("#bios-trigger").html('<a href="index.php/Biographies" class="link">Link</a>');
});
 
 
 
function toggle_visibility(id) {
      var e = document.getElementById(id);
      if(e.style.display == 'block')
          e.style.display = 'none';
      else
          e.style.display = 'block';
    }

Latest revision as of 16: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'; })