m
funzione completa elenchi numerati
(Funzione per inserire le stellette vicino agli interwiki) |
Zaza (rosica | curriculum) m (funzione completa elenchi numerati) |
||
Riga 693:
contentsPos.push(i);
}
var hasSeparator = false;
if(separator != '') {
hasSeparator = true;
}
if(!hasSeparator) newContents = $('<ul></ul>');
else newContents = $('<div></div>');
j = 0;
for(var i in contentsPos) {
var lol = 0;
Line 700 ⟶ 707:
if(h == null) continue;
if(contentsPos[i] < 0) lol = 1;
if(!hasSeparator) newContents.append('<li>' + h + '</li>');
else {
newContents.html(newContents.html() + h);
if(j != contentsPos.length - 1) newContents.html(newContents.html() + separator);
}
j++;
}
$(this).html('').append(newContents);
|