nessun oggetto della modifica
Genuzzu (rosica | curriculum) Nessun oggetto della modifica |
Genuzzu (rosica | curriculum) Nessun oggetto della modifica |
||
Riga 34:
voteTable[voteTable.i++] = { //quick hack: contatore direttamente nell'oggetto
text: $(this).find('tbody > tr:nth(0) > td > b').html(),
vote: (function($_this) {
var vote = 0;
▲ var voteLis = $(this).find('tbody > tr:nth(3) > td > ul > li');
voteLis.each(function() {
alert(vote);
Line 43 ⟶ 42:
});
return vote / parseFloat(voteLis.length); //per farlo float uso parseFloat sul divisore
})($(this))
}
});
|