Anônimo

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 sumário de edição
Sem resumo de edição
Sem resumo de edição
Etiqueta: Reversão manual
Linha 31: Linha 31:
                 /* If a switch has been marked, make the switch
                 /* If a switch has been marked, make the switch
                 and mark that a switch has been done: */
                 and mark that a switch has been done: */
                 switch(rows[i], rows[i + 1]);
                 rows[i].parentNode.insertBefore(rows[i + 1], rows[i]);
                 switching = true;
                 switching = true;
             }
             }
Linha 37: Linha 37:
     });
     });
});
});
function switch(a, b){
  a.parentNode.insertBefore(b, a);
/*
  const rowIdA = a.querySelector(".mw-headline").getAttribute("id");
  const rowIdB = b.querySelector(".mw-headline").getAttribute("id");
  const $floatTOCLinkA = $('a[href$="' + rowIdA + '"]');
  const $floatTOCLinkB = $('a[href$="' + rowIdB + '"]');
*/
}


mw.loader.using("jquery.throttle-debounce", function () {
mw.loader.using("jquery.throttle-debounce", function () {