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

MediaWiki:Mpfunctions.js

From Starbase wiki
Revision as of 12:32, 14 July 2021 by DustyFB (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
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.