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