MediaWiki:Common.js: Difference between revisions
From Rinchen Terdzö
((by SublimeText.Mediawiker)) |
((by SublimeText.Mediawiker)) |
||
Line 5: | Line 5: | ||
$('#bios-trigger').hover( | $('#bios-trigger').hover( | ||
function(){ $('#sections-slideins').addClass('bios-back animated slideInRight') }, | function(){ $('#sections-slideins').addClass('bios-back animated slideInRight') }, | ||
function(){ $('#sections-slideins').removeClass('bios-back') } | function(){ $('#sections-slideins').removeClass('bios-back animated slideInRight') } | ||
) | ) | ||
Revision as of 09:38, 4 October 2017
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 slideInRight') },
function(){ $('#sections-slideins').removeClass('bios-back animated slideInRight') }
)
function toggle_visibility(id) {
var e = document.getElementById(id);
if(e.style.display == 'block')
e.style.display = 'none';
else
e.style.display = 'block';
}