";
+ var litres = (euros/json[i].prezzi[j].prezzo).toFixed(2);
if(j === 0) {
- txt += "| " + json[i].prezzi[j].prezzo + " € | ";
+ txt += "" + litres + " L | ";
} else {
- txt += "" + json[i].prezzi[j].prezzo + " € | ";
+ txt += "" + litres + " L | ";
}
txt += "per il " + json[i].prezzi[j].descCarburante + " | ";
txt += "";
if(json[i].prezzi[j].isSelf === "1") {
- txt += "self-service";
+ txt += "(self)";
} else {
txt += "";
}
txt += " | ";
txt += "";
}
txt += "