Utente:Lenore/monobook.js: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
non funziona |
Affianca i link di modifica delle sezioni ai titoli |
||
Riga 154:
if (wgPageName == "Pagina_principale") document.getElementById('firstHeading').style.display = "none";
// Affianca i link di modifica delle sezioni ai titoli
var sectionTitles = [];
var sectionLink;
sectionTitles[0] = document.getElementsByTagName('h2');
sectionTitles[1] = document.getElementsByTagName('h3');
sectionTitles[2] = document.getElementsByTagName('h4');
sectionTitles[3] = document.getElementsByTagName('h5');
for (i=0; i<sectionTitles.length; i++) {
for (j=0; j<sectionTitles[i].length; j++) {
sectionLink = sectionTitles[i][j].firstElementChild;
sectionTitles[i][j].removeChild(sectionLink);
sectionTitles[i][j].appendChild(sectionLink);
sectionLink.setAttribute('style', 'float:none; font-size:x-small');
}
}
});
|