« MediaWiki:Gadget-AncreTitres.js » : différence entre les versions

Contenu supprimé Contenu ajouté
Pabix (discussion | contributions)
mAucun résumé des modifications
Pabix (discussion | contributions)
mAucun résumé des modifications
Ligne 35 :
i++;
if (titre_courant.className.match(/mw-headline/g)) {
var ancre_nom;
if (noeud_precedent(titre_courant.parentNode).lastChild.name) ancre_nom{
= if (noeud_precedent(titre_courant.parentNode).lastChild.name;) {
ancre_nom = noeud_precedent(titre_courant.parentNode).lastChild.name;
}
}
var small = document.createElement('small'); with(small) {
innerHTML=AncreTitres_nom_ancre;