From 41da0539e4a25ba20fce9182a9f5fad7cccf2966 Mon Sep 17 00:00:00 2001 From: Leocraft1 Date: Thu, 30 Oct 2025 13:53:42 +0100 Subject: [PATCH] =?UTF-8?q?Mosso=20setasearch=20+=20display=20none=20botto?= =?UTF-8?q?ni=20+=20fix=20grafica=20ricerca=20+=20novit=C3=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 7 ++--- {scripts => seta_menu/js_menu}/setabus.json | 0 {scripts => seta_menu/js_menu}/setasearch.js | 32 +++----------------- seta_menu/seta.html | 8 ++--- style.css | 6 ++++ 5 files changed, 16 insertions(+), 37 deletions(-) rename {scripts => seta_menu/js_menu}/setabus.json (100%) rename {scripts => seta_menu/js_menu}/setasearch.js (53%) diff --git a/index.html b/index.html index b90ad65..f87c0e1 100644 --- a/index.html +++ b/index.html @@ -36,12 +36,11 @@

-

SETA:

+

SETA:

Servizi rapidi: Cerca orario

- Recuperato (non più radiato): 188 Irisbus Citelis

- Nuove foto: Solaris Urbino 18 III ex START, Citelis, Urbanway, Trollino, Menarini CNG, Menarini LNG, Citaro G ex Koln, Urbino ex START, Cityclass ATCM.

- Eliminato il servizio Frequenze e tempi di percorrenza. e' stato integrato in Percorsi. + Eliminato il servizio Frequenze e tempi di percorrenza, e' stato integrato in Percorsi.

+

Sezione in manutenzione

diff --git a/scripts/setabus.json b/seta_menu/js_menu/setabus.json similarity index 100% rename from scripts/setabus.json rename to seta_menu/js_menu/setabus.json diff --git a/scripts/setasearch.js b/seta_menu/js_menu/setasearch.js similarity index 53% rename from scripts/setasearch.js rename to seta_menu/js_menu/setasearch.js index 76687c5..677c86f 100644 --- a/scripts/setasearch.js +++ b/seta_menu/js_menu/setasearch.js @@ -5,7 +5,7 @@ const buttons = document.getElementById('buttons'); let allProducts = []; window.onbeforeunload=searchBar.value=""; -const url = '/scripts/setabus.json'; +const url = '/seta_menu/js_menu/setabus.json'; fetch(url) .then(response => { if (!response.ok) throw new Error("Errore nel caricamento dei dati."); @@ -18,35 +18,11 @@ fetch(url) searchBar.addEventListener('input', () => { if (searchBar.value == '') { - productsContainer.innerHTML = ' '; - buttons.innerHTML = ` -
- Urbano - Suburbano - Extraurbano - Filobus - Minibus -
- Veicoli di servizio -
- Veicoli radiati -
-
-
- Archivio La Linea ATCM - Storico StreetView -
-
-

Servizi SETA Modena:

-
- Orari in tempo reale - Monitor autobus in servizio - Percorsi -
- `; + productsContainer.innerHTML = ''; + buttons.style.display=""; return; } - buttons.innerHTML = ' '; + buttons.style.display="none"; const searchTerm = searchBar.value.toLowerCase(); const filtered = allProducts.filter(bus => bus.matricola.toLowerCase().includes(searchTerm)) .sort((a, b) => { diff --git a/seta_menu/seta.html b/seta_menu/seta.html index 4a0ef8c..8fdbcda 100644 --- a/seta_menu/seta.html +++ b/seta_menu/seta.html @@ -22,10 +22,8 @@

SETA Modena

-
- -
-
+ +

@@ -57,6 +55,6 @@
- + diff --git a/style.css b/style.css index 8377ede..acd7494 100644 --- a/style.css +++ b/style.css @@ -199,6 +199,11 @@ nav ul li h1.yellow-warning { font-size: 16px; } +.yellow-warning { + color:rgb(255, 205, 0); + margin:8px; +} + .bus{ border: 2px solid; border-style: hidden; @@ -436,6 +441,7 @@ table.image-table img { #bus-container { display: flex; flex-wrap: wrap; + justify-content: center; } #searchBar {