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 22: | Linha 22: | ||
y = rows[i + 1].querySelector("span.mw-headline"); | y = rows[i + 1].querySelector("span.mw-headline"); | ||
// check if the two rows should switch place: | // check if the two rows should switch place: | ||
if (x. | if (x.getAttribute("id").toLowerCase() > y.getAttribute("id").toLowerCase() ) { | ||
console.log(x. | console.log(x.getAttribute("id")); | ||
// if so, mark as a switch and break the loop: | // if so, mark as a switch and break the loop: | ||
shouldSwitch = true; | shouldSwitch = true; |