MediaWiki:Common.js: Difference between revisions
From Rinchen Terdzö
((by SublimeText.Mediawiker)) |
((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( | function toggle_visibility(class) { | ||
var e = document. | var e = document.getElementByClass(class); | ||
if(e.style.display == 'block') | if(e.style.display == 'block') | ||
e.style.display = 'none'; | e.style.display = 'none'; |