Sb forum speech.png DiscordLink.png FacebookLink.png RedditLink.png SteamLink.png TwitterLink.png YoutubeLink.png

Difference between revisions of "MediaWiki:Mpfunctions.js"

From Starbase wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
function MPSSC() {
function MPSSC() {
let li = document.QuerySelectorAll('.MPSSC-list-header')
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)

Revision as of 12:32, 14 July 2021

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();
}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.