MediaWiki:Common.js

From Rinchen Terdzö
Revision as of 09:53, 4 October 2017 by Jeremi (talk | contribs) ((by SublimeText.Mediawiker))

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' );

$('#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') }
)




function toggle_visibility(id) {
       var e = document.getElementById(id);
       if(e.style.display == 'block')
          e.style.display = 'none';
       else
          e.style.display = 'block';
    }