View source for MediaWiki:Common.js
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
$(function() { mw.util.addPortletLink('p-personal','https://irowiki.org/discord','iW Discord'); });
function tocTree() {
mw.util.addCSS('a.toctogHidden img, a.toctogShown img, a.toctogNull img {width:12px;height:12px;} #toc li a {padding-right:3px;} a.toctogNull img {visibility:hidden;}');
var toc = document.getElementById('toc');
if(!toc) return
var li = toc.getElementsByTagName('li');
for(var i=0;i<li.length;i++) {
var cul = li[i].getElementsByTagName('ul');
var a = document.createElement('a');
if(cul.length == 0) {
a.setAttribute('class','toctogNull');
} else {
a.setAttribute('class','toctogShown');
a.setAttribute('id','toctog-a-' + i );
a.setAttribute('href','javascript:tocTreeToggle("' + i + '");');
}
var img = document.createElement('img');
000
1:0
Return to MediaWiki:Common.js.