REMOVA OS ANÚNCIOS!
Apoiando através de https://apoia.se/arddhu a partir do tier de Apoiador, você pode navegar na wiki sem anúncios e ainda colabora com o projeto!
MediaWiki:Common.js: mudanças entre as edições
De Runarcana Wiki
Sem resumo de edição |
Sem resumo de edição |
||
Linha 104: | Linha 104: | ||
$floatTOC.prepend(tocToggleButton); | $floatTOC.prepend(tocToggleButton); | ||
/* | |||
if (getCookie("showTOC") === false) { | if (getCookie("showTOC") === false) { | ||
toggleTOCVisibility(); | toggleTOCVisibility(); | ||
} | } | ||
*/ | |||
$floatTOC.find("a").click(function (e) { | $floatTOC.find("a").click(function (e) { | ||
$("html, body").animate({ | $("html, body").animate({ | ||
Linha 171: | Linha 171: | ||
$tocToggleButton.html(""); | $tocToggleButton.html(""); | ||
$tocToggleButton.append(tocToggleButtonIconNode); | $tocToggleButton.append(tocToggleButtonIconNode); | ||
/* | |||
setCookie("showTOC", true); | setCookie("showTOC", true); | ||
*/ | |||
} else { | } else { | ||
$floatTOC.addClass("hiddenFloatTOC"); | $floatTOC.addClass("hiddenFloatTOC"); | ||
Linha 185: | Linha 187: | ||
$tocToggleButton.html(""); | $tocToggleButton.html(""); | ||
$tocToggleButton.append(tocToggleButtonIconNode); | $tocToggleButton.append(tocToggleButtonIconNode); | ||
/* | |||
setCookie("showTOC", false); | setCookie("showTOC", false); | ||
*/ | |||
} | } | ||
} | } |