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(id) { | ||
var e = document. | var e = document.getElementById(id); | ||
if(e.style.display == 'block') | if(e.style.display == 'block') | ||
e.style.display = 'none'; | e.style.display = 'none'; | ||
else | else | ||
e.style.display = 'block'; | e.style.display = 'block'; | ||
} | } |