MediaWiki:Common.js: Difference between revisions

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

Revision as of 16:17, 13 July 2015

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

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