Colonne migliori + targa

This commit is contained in:
Leocraft1
2025-08-19 18:01:31 +02:00
parent f643f7ce41
commit 6a27500f6e

View File

@@ -67,10 +67,11 @@ function caricadati(){
const thead = document.createElement('thead'); const thead = document.createElement('thead');
thead.innerHTML = ` thead.innerHTML = `
<tr> <tr>
<th class="orario">Veicolo</th>
<th class="stato">Modello veicolo</th>
<th class="linea">Linea</th> <th class="linea">Linea</th>
<th class="direzione">Direzione</th> <th class="direzione">Direzione</th>
<th class="orario">Veicolo</th>
<th class="stato">Modello veicolo</th>
<th class="stato">Targa</th>
<th class="veicolo">Ora si trova a</th> <th class="veicolo">Ora si trova a</th>
</tr> </tr>
`; `;
@@ -87,10 +88,11 @@ function caricadati(){
var posizione=element.next_stop; var posizione=element.next_stop;
} }
tr.innerHTML = ` tr.innerHTML = `
<td><a href="https://wimb.setaweb.it/qm/index.html?id=${element.vehicle_code}" class="bianco">${element.vehicle_code}</a></td>
<td>${element.model}</td>
<td>${element.linea}</td> <td>${element.linea}</td>
<td>${element.route_desc}</td> <td>${element.route_desc}</td>
<td><a href="https://wimb.setaweb.it/qm/index.html?id=${element.vehicle_code}" class="bianco">${element.vehicle_code}</a></td>
<td>${element.model}</td>
<td>${element.plate_num}</td>
<td>${posizione}</td> <td>${posizione}</td>
`; `;
tbody.appendChild(tr); tbody.appendChild(tr);