MediaWiki:Common.js: Difference between revisions

From Rinchen Terdzö
((by SublimeText.Mediawiker))
No edit summary
Line 1: Line 1:
$.getScript("/extensions/css-regions-polyfill-master/bin/css-regions-polyfill.min.js");
function toggle_visibility(id) {
function toggle_visibility(id) {
       var e = document.getElementById(id);
       var e = document.getElementById(id);

Revision as of 11:35, 6 April 2017

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