Difference between revisions of "MediaWiki:Mpfunctions.js"
Jump to navigation
Jump to search
m |
m |
||
Line 1: | Line 1: | ||
function MPSSC() { | |||
let li = document.QuerySelectorAll('.MPSSC-list-header') | |||
for (var i=0;i<li.length;i++) { | |||
} | li[i].addEventListener('click', function(){this.classList.toggle('active')}, false) | ||
} | |||
} | |||
if (mw.config.get('wgPageName')) { | |||
MPSSC(); | |||
} |