MediaWiki:Common.js: Difference between revisions

From Rinchen Terdzö
No edit summary
((by SublimeText.Mediawiker))
Line 1: Line 1:
mw.loader.load( 'https://use.fontawesome.com/bd289233d5.js' );
function toggle_visibility(id) {
function toggle_visibility(id) {
       var e = document.getElementById(id);
       var e = document.getElementById(id);

Revision as of 15:33, 2 October 2017

mw.loader.load( 'https://use.fontawesome.com/bd289233d5.js' );

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