MediaWiki:Common.js: Difference between revisions

From Rinchen Terdzö
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 4: Line 4:
$('#bios-trigger').hover(
$('#bios-trigger').hover(
       function(){ $(this).addClass('bios-back') },
       function(){ $(this).addClass('bios-back') },
       function(){ $(this).removeClass('hover') }
       function(){ $(this).removeClass('bios-back') }
)
)



Revision as of 17:35, 3 October 2017

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(){ $(this).addClass('bios-back') },
       function(){ $(this).removeClass('bios-back') }
)




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