MediaWiki:Common.js: Difference between revisions

From Rinchen Terdzö
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 7: Line 7:
       else
       else
           e.style.display = 'block';
           e.style.display = 'block';
     }
     };

Revision as of 17:21, 13 July 2015

$.getScript("/extensions/css-regions-polyfill-master/bin/css-regions-polyfill.min.js");

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