diff --git a/extra_bus/austria/austria.html b/extra_bus/austria/austria.html index a618710..06895eb 100644 --- a/extra_bus/austria/austria.html +++ b/extra_bus/austria/austria.html @@ -21,7 +21,7 @@

Austria

Qua si possono trovare foto di altri gestori dell'austria, suddivisi per Compagnia

-

Questa sezione del sito è redatta da ErikMontagne

+

Le foto e la redazione presente in questa sezione del sito è di ErikMontagne.


@@ -37,4 +37,4 @@

- \ No newline at end of file + diff --git a/extra_bus/repubblica_ceca/repubblica_ceca.html b/extra_bus/repubblica_ceca/repubblica_ceca.html index 1700660..e65814a 100644 --- a/extra_bus/repubblica_ceca/repubblica_ceca.html +++ b/extra_bus/repubblica_ceca/repubblica_ceca.html @@ -21,7 +21,7 @@

Repubblica Ceca

Qua si possono trovare foto di altri gestori della Repubblica ceca, suddivisi per Regione.

-

Questa sezione del sito è redatta da ErikMontagne.

+

Le foto e la redazione presente in questa sezione del sito è di ErikMontagne.


@@ -87,4 +87,4 @@

- \ No newline at end of file + diff --git a/index.html b/index.html index 7521954..317b17d 100644 --- a/index.html +++ b/index.html @@ -47,6 +47,8 @@

Ravenna:

START:
+ Nuove foto: 10445, 32462, 34425, 34458, 37133, 37257
+ Nuove foto interni: 10441, 34425, 37133
Aggiornata la Lista Mezzi
Scritta la guida "come cercare il codice fermata".

METE:
diff --git a/ravenna_privatibus/gamberini.html b/ravenna_privatibus/gamberini.html index d1625d3..bbc508b 100644 --- a/ravenna_privatibus/gamberini.html +++ b/ravenna_privatibus/gamberini.html @@ -92,10 +92,10 @@

- + - + diff --git a/ravenna_privatibus/riolo.html b/ravenna_privatibus/riolo.html index ef58819..954c9ab 100644 --- a/ravenna_privatibus/riolo.html +++ b/ravenna_privatibus/riolo.html @@ -22,6 +22,18 @@

Cooperativa Trasporti di Riolo Terme (Riolo Terme, RA)

Server foto non raggiungibile.

19112 - (46) Scania De Simon IL.3 ex APT

19112 - (46) Scania De Simon IL.3 ex APT

19113 - Setra S315UL

19113 - Setra S315UL

Server foto non raggiungibile.
+ + + + + + + + + + + + @@ -30,11 +42,119 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

19502-19506 - Iveco Crossway LE Line

19507-19509 - Isuzu Novo Ultra

19513 - Isuzu Novo Ultra

Server foto non raggiungibile

19553 - Setra S315UL

19517 - Mercedes Sprinter

19518 - Iveco Daily Line

19520 - VDL Bova Futura 12m

19521 - VDL Bova Futura 10m

19522-19523 - VDL Lexio

19524 - Mercedes Sprinter

19525 - Iveco Daily Line

19526-19529 - Setra S418 LE Business

19531 - VDL Lexio

19533 - Setra S315UL

Server foto non raggiungibile.

19535-19536 - Mercedes Intouro

19537 - Setra S315UL

19538 - Iveco Crossway LE Line

19539 (I) - Setra S315UL

19539 (II) - Iveco Crossway NF Line

19540 - Bova Futura 10m

19541-19542 - Setra S315UL

19543 - Setra S315 LE Business

19544-19546 - Setra S315UL

diff --git a/ravenna_privatibus/zaganelli.html b/ravenna_privatibus/zaganelli.html index 109e34d..faef6c5 100644 --- a/ravenna_privatibus/zaganelli.html +++ b/ravenna_privatibus/zaganelli.html @@ -29,49 +29,49 @@ Server foto non raggiungibile. -

19202 - (2) Irisbus Evadys

+

19202 - (2) Irisbus Evadys H

Server foto non raggiungibile. -

19203 - (6) Iveco Crossway Line

+

19203 - (6) Iveco Crossway NF Line

Server foto non raggiungibile. -

19204 - (7) Iveco Crossway Line

+

19204 - (7) Iveco Crossway NF Line

Server foto non raggiungibile. -

19205 - (5) Iveco Crossway LE

+

19205 - (5) Iveco Crossway LE Line

19206 - Volvo 8700

-

19207

+

19207 - Setra S418 LE

-

19208 - (2) Iveco Crossway LE

+

19208 - (2) Iveco Crossway LE Line

Server foto non raggiungibile. -

19209 - (10) Iveco Crossway LE ex Vor Regio Austria

+

19209 - (10) Iveco Crossway LE Line ex Vor Regio Austria

Server foto non raggiungibile. -

19210

+

19210 - Irisbus DailyWay

-

19211 - (11) Iveco Crossway LE ex Vor Regio Austria

+

19211 - (11) Iveco Crossway LE Line ex Vor Regio Austria

19212 - Irisbus Arway 12

@@ -86,19 +86,19 @@ Server foto non raggiungibile. -

19214

+

19214 - Mercedes Sprinter Altes Ecoline

19215

-

19216 - Iveco Crossway LE

+

19216 - Iveco Crossway LE Line

Server foto non raggiungibile. -

19217

+

19217 - Volkswagen Crafter Ristè

19218 - (2) Volvo 8700 LE

@@ -120,7 +120,7 @@ Server foto non raggiungibile. -

19221 - (5) Volvo 8700 LE

+

19221 - (5) Volvo 8700 LE 14,7m

19222 - (1) Mercedes-Benz Intouro

@@ -153,24 +153,24 @@

19226 - (3) Setra S417UL

-

19227 - (8) Iveco Crossway Line ex Vor Regio (Austria)

+

19227 - (8) Iveco Crossway NF Line ex Vor Regio (Austria)

Server foto non raggiungibile. -

19228 - (9) Iveco Crossway Line ex Vor Regio (Austria)

+

19228 - (9) Iveco Crossway NF Line ex Vor Regio (Austria)

Server foto non raggiungibile. -

19229-19230 Iveco Crossway LE Line ex Vor Regio (Austria)

+

19229-19230 - Iveco Crossway LE Line ex Vor Regio (Austria)

-

19231 Iveco Crossway LE Line ex Vor Regio (Austria)

+

19231 - Iveco Crossway LE Line ex Vor Regio (Austria)

Server foto non raggiungibile. diff --git a/start_menu/servizi/start-livebus/css/style.css b/start_menu/servizi/start-livebus/css/style.css index f01e62d..96e1df9 100644 --- a/start_menu/servizi/start-livebus/css/style.css +++ b/start_menu/servizi/start-livebus/css/style.css @@ -61,6 +61,17 @@ p { box-shadow: 0 0 5px rgba(52, 152, 219, 0.3); } +.num { + margin-top: 5px; + margin-bottom: 5px; + max-width: 150px; + margin-left: auto; + margin-right: auto; + background-color: #333; + border-radius: 12px; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); +} + table { border-collapse: separate; border-spacing: 0; diff --git a/start_menu/servizi/start-livebus/index.html b/start_menu/servizi/start-livebus/index.html index 7dd5d6a..bc42365 100644 --- a/start_menu/servizi/start-livebus/index.html +++ b/start_menu/servizi/start-livebus/index.html @@ -37,9 +37,10 @@
- +
+

Numero mezzi:

+

Caricamento in corso, attendere prego...

-

Copyright (C) 2025 ER-TPL Team - ertpl.pages.dev - code by EmmeV (Vichingo455) Codice Sorgente

Start Romagna, Start e il logo Start Romagna sono marchi registrati e protetti da copyright da Start Romagna SpA. Vengono usati in questa pagina solo per riferimento.

diff --git a/start_menu/servizi/start-livebus/js/script.js b/start_menu/servizi/start-livebus/js/script.js index 42aa43a..d96eed6 100644 --- a/start_menu/servizi/start-livebus/js/script.js +++ b/start_menu/servizi/start-livebus/js/script.js @@ -1,3 +1,4 @@ +const apiurl = 'https://api.vichingo455.freeddns.org/infobus/'; // Funzione per applicare il filtro su ogni colonna function applyFilter() { const filterZona = document.getElementById('filterZona').value.toLowerCase(); @@ -9,9 +10,6 @@ function applyFilter() { const rows = table.querySelectorAll('tr'); rows.forEach((row, index) => { - // Non applicare il filtro sulla prima riga (intestazione) - if (index === 0) return; - const cells = row.getElementsByTagName('td'); let match = true; @@ -25,6 +23,15 @@ function applyFilter() { row.style.display = match ? '' : 'none'; }); } + function numeromezzi() { + const table = document.getElementById('tabella'); + //let nummezzi = table.tBodies[0].rows.length; + const rows = table.querySelectorAll('tbody tr'); + const visibili = Array.from(rows).filter(row => { + return window.getComputedStyle(row).display !== 'none'; + }); + document.getElementById('nummezzi').innerHTML = visibili.length; + } fetchData(); // Primo fetch // Fetch dei dati ogni 30 secondi (30 000 millisecondi) timer = setInterval(() => { @@ -32,7 +39,7 @@ function applyFilter() { }, 30000); // Fetch dei dati e creazione della tabella function fetchData() { - fetch('https://api.vichingo455.freeddns.org/infobus/') + fetch(apiurl) .then(response => response.json()) .then(data => { const container = document.getElementById('data-container'); @@ -42,26 +49,27 @@ function applyFilter() { const table = document.createElement('table'); // Aggiungi l'intestazione della tabella - var th = document.createElement('th'); - var tr = document.createElement('tr'); + let th = document.createElement('th'); + const thead = document.createElement('thead'); + const tbody = document.createElement('tbody'); th.innerHTML='Zona'; - tr.appendChild(th); + thead.appendChild(th); th = document.createElement('th'); th.innerHTML='Linea'; - tr.appendChild(th); + thead.appendChild(th); th = document.createElement('th'); th.innerHTML='Fermata'; - tr.appendChild(th); + thead.appendChild(th); th = document.createElement('th'); th.innerHTML='Codice fermata'; - tr.appendChild(th); + thead.appendChild(th); th = document.createElement('th'); th.innerHTML='Veicolo'; - tr.appendChild(th); + thead.appendChild(th); th = document.createElement('th'); th.innerHTML='Ultimo aggiornamento'; - tr.appendChild(th); - table.appendChild(tr); + thead.appendChild(th); + table.appendChild(thead); // Aggiungi i dati alla tabella data.forEach(row => { @@ -73,13 +81,15 @@ function applyFilter() { rowt.appendChild(cell); } }); - table.appendChild(rowt); + tbody.appendChild(rowt); }); - + table.appendChild(tbody); // Aggiungi la tabella alla pagina container.appendChild(table); + table.id = "tabella"; // Preserva il filtro applyFilter(); + numeromezzi(); }) .catch(err => { //console.error("Errore nel caricamento dati:", err); @@ -101,6 +111,7 @@ function applyFilter() { document.getElementById("filterCodiceFermata").value = ""; // Esegui la funzione per applicare i filtri (per sicurezza) applyFilter(); + numeromezzi(); } setInterval(updateClock, 1000); @@ -110,3 +121,7 @@ document.getElementById('filterZona').addEventListener('input', applyFilter); document.getElementById('filterLinea').addEventListener('input', applyFilter); document.getElementById('filterVeicolo').addEventListener('input', applyFilter); document.getElementById('filterCodiceFermata').addEventListener('input', applyFilter); +document.getElementById('filterZona').addEventListener('input', numeromezzi); +document.getElementById('filterLinea').addEventListener('input', numeromezzi); +document.getElementById('filterVeicolo').addEventListener('input', numeromezzi); +document.getElementById('filterCodiceFermata').addEventListener('input', numeromezzi); \ No newline at end of file diff --git a/startravenna_bus/extraurbano/crossway12cngle.html b/startravenna_bus/extraurbano/crossway12cngle.html index 7e19c25..6caf37e 100644 --- a/startravenna_bus/extraurbano/crossway12cngle.html +++ b/startravenna_bus/extraurbano/crossway12cngle.html @@ -69,7 +69,9 @@

34458

- Server foto non raggiungibile. + Server foto non raggiungibile. + Server foto non raggiungibile. +

34459-34462

diff --git a/startravenna_bus/extraurbano/irizari4.html b/startravenna_bus/extraurbano/irizari4.html index 19a45d0..9c1fae7 100644 --- a/startravenna_bus/extraurbano/irizari4.html +++ b/startravenna_bus/extraurbano/irizari4.html @@ -73,6 +73,7 @@ Server foto non raggiungibile. + Server foto non raggiungibile.

34426

@@ -89,5 +90,15 @@

34428-34435

+

Interni

+ + + + + + + + +

34425

Server foto non raggiungibile.Server foto non raggiungibile.
diff --git a/startravenna_bus/listamezzi.html b/startravenna_bus/listamezzi.html index 5cda29b..c4821f4 100644 --- a/startravenna_bus/listamezzi.html +++ b/startravenna_bus/listamezzi.html @@ -322,14 +322,11 @@ GT 768 VF Irisbus Citelis 12 CNG - + 10433 GG 482 NF Irisbus Citelis 12 CNG - - 10433 Ferma per principio di incendio. - 10434 GT 176 CV @@ -425,7 +422,7 @@ FR 940 DW Menarinibus Citymood 12 CNG - + 32304 FR 943 DW Menarinibus Citymood 12 CNG @@ -580,14 +577,11 @@ GS 947 BR Iveco Urbanway 12 Mild Hybrid CNG - + 32461 GS 946 BR Iveco Urbanway 12 Mild Hybrid CNG - - 32461 Ferma per sinistro. - 32462 GS 948 BR @@ -1578,12 +1572,12 @@ GT 796 VF MAN Lion's City 12E - + 37252 MAN Lion's City 12E - + 37253 MAN Lion's City 12E @@ -1608,7 +1602,7 @@ GT 799 VF MAN Lion's City 12E - + 37258 MAN Lion's City 12E diff --git a/startravenna_bus/suburbano/citeliseev.html b/startravenna_bus/suburbano/citeliseev.html index ff30ff0..4b14d74 100644 --- a/startravenna_bus/suburbano/citeliseev.html +++ b/startravenna_bus/suburbano/citeliseev.html @@ -108,6 +108,13 @@ Server foto non raggiungibile. + +

10441

+ + + Server foto non raggiungibile. + Server foto non raggiungibile. + diff --git a/startravenna_bus/suburbano/uwmh.html b/startravenna_bus/suburbano/uwmh.html index 0550f50..e329b8d 100644 --- a/startravenna_bus/suburbano/uwmh.html +++ b/startravenna_bus/suburbano/uwmh.html @@ -56,6 +56,7 @@ Server foto non raggiungibile. Server foto non raggiungibile. + Server foto non raggiungibile.

32463

diff --git a/startravenna_bus/urbano/karsan.html b/startravenna_bus/urbano/karsan.html index 1ff56b1..0a0a183 100644 --- a/startravenna_bus/urbano/karsan.html +++ b/startravenna_bus/urbano/karsan.html @@ -99,6 +99,9 @@

37133

+ + Server foto non raggiungibile. +

37134

@@ -174,6 +177,12 @@ Server foto non raggiungibile. + +

37133

+ + + Server foto non raggiungibile. +

37137

diff --git a/startravenna_bus/urbano/manlc12e.html b/startravenna_bus/urbano/manlc12e.html index b414197..9ee4d0a 100644 --- a/startravenna_bus/urbano/manlc12e.html +++ b/startravenna_bus/urbano/manlc12e.html @@ -55,6 +55,9 @@

37257

+ + Server foto non raggiungibile. +

37258

diff --git a/startravenna_bus/urbano/uw.html b/startravenna_bus/urbano/uw.html index a370de7..3a5e672 100644 --- a/startravenna_bus/urbano/uw.html +++ b/startravenna_bus/urbano/uw.html @@ -31,6 +31,7 @@ Server foto non raggiungibile. Server foto non raggiungibile. + Server foto non raggiungibile.

10446