MediaWiki:Common.js: Difference between revisions

From Rinchen Terdzö
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Tags: Blanking Manual revert
 
(206 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' );
mw.loader.load( 'https://fonts.googleapis.com/css?family=EB+Garamond', 'text/css' );
mw.loader.load( 'https://use.fontawesome.com/bd289233d5.js' );


$('#bios-trigger').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') }
)
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 10:21, 7 October 2025