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 67: | Linha 67: | ||
$floatTOC.find("ul").show(); | $floatTOC.find("ul").show(); | ||
/* | |||
$floatTOC.find("#toctogglecheckbox") | $floatTOC.find("#toctogglecheckbox") | ||
.removeAttr("id") | .removeAttr("id") | ||
Linha 74: | Linha 75: | ||
.removeAttr("for") | .removeAttr("for") | ||
.attr("for", "floattoctogglecheckbox"); | .attr("for", "floattoctogglecheckbox"); | ||
*/ | |||
// create a new div element | |||
const newDiv = document.createElement("button"); | |||
// and give it some content | |||
const newContent = document.createTextNode("<"); | |||
// add the text node to the newly created div | |||
newDiv.appendChild(newContent); | |||
$floatTOC.prepend(newDiv); | |||
$floatTOC.find("a").click(function (e) { | $floatTOC.find("a").click(function (e) { |