I think the table of content (toc) is very needless, so where can i configure that the default value is set to the option that the toc ist hidden.
Don't understand me wrong, i don't want that the toc disappear completly like i can add the lines ~~NOTOC~~, i just want that the default value is set at the state as when i click on the little arrow next to the text "table of content",so that the with the headlines in the wiki is hidden.
So that i can add my toc when i really need it and others i don't waste the space on my page.
I tried to fix something in the code in the script.js like this
toc.style.display = 'none'
but it don't work.
The only think i can imaging where i can change something is on the mywiki/lib/scripts/script.js beginnig on line 244
function addTocToggle() {
if(!document.getElementById) return;
var header = $('toc__header');
if(!header) return;
var obj = document.createElement('span');
obj.id = 'toc__toggle';
obj.innerHTML = '<span>−</span>';
obj.className = 'toc_open';
obj.style.cursor = 'pointer';
prependChild(header,obj);
obj.parentNode.onclick = toggleToc;
try {
obj.parentNode.style.cursor = 'pointer';
obj.parentNode.style.cursor = 'hand';
}catch(e){}
}
/**
* This toggles the visibility of the Table of Contents
*/
function toggleToc() {
var toc = $('toc__inside');
var obj = $('toc__toggle');
if(toc.style.display == 'none') {
toc.style.display = '';
obj.innerHTML = '<span>−</span>';
obj.className = 'toc_close';
} else {
toc.style.display = 'none';
obj.innerHTML = '<span>+</span>';
obj.className = 'toc_open';
}
}
but i don't know what and where