Compare commits

..

4 Commits

Author SHA1 Message Date
Leocraft1
0acf6efef8 Test 2 2025-09-28 17:49:12 +02:00
Leocraft1
f60e546efd Test fix tabella piccola cercaorario 2025-09-28 17:42:59 +02:00
Leocraft1
6dab202b6a Ridimensionamenti + fix grafica livebus 2025-09-28 17:38:15 +02:00
Leocraft1
6654addeaa Nuova grafica start monitor bus 2025-09-28 17:31:39 +02:00
5 changed files with 86 additions and 67 deletions

View File

@@ -31,7 +31,9 @@
<h1 class="spazio"></h1> <h1 class="spazio"></h1>
<hr class="solid"> <hr class="solid">
<h1 class="nospazio">Novità sito:</h1> <h1 class="nospazio">Novità sito:</h1>
<p class="novitasito"></p> <p class="novitasito">
Ridimensionate novità aziende per schermi piccoli
</p>
<div class="container"> <div class="container">
<div class="riga"> <div class="riga">
<h2 class="piccolospazio">SETA:</h2> <h2 class="piccolospazio">SETA:</h2>
@@ -39,13 +41,14 @@
<strong>Servizi rapidi:</strong> <a class="novita" href="/seta_menu/cercaorario/index.html">Cerca orario</a> <br> <br> <strong>Servizi rapidi:</strong> <a class="novita" href="/seta_menu/cercaorario/index.html">Cerca orario</a> <br> <br>
Nuove foto: <a class="novita" href="/setamodena_bus/suburbano/bredone.html">Breda 18m</a> <br> <br> Nuove foto: <a class="novita" href="/setamodena_bus/suburbano/bredone.html">Breda 18m</a> <br> <br>
Nuovo modello in servizio: <a class="novita" href="/setamodena_bus/suburbano/surbinostart.html">Solaris Urbino 18 III ex START</a> <br><br> Nuovo modello in servizio: <a class="novita" href="/setamodena_bus/suburbano/surbinostart.html">Solaris Urbino 18 III ex START</a> <br><br>
Ridimensionata tabella dei percorsi per schermi piccoli. Ridimensionate tabelle dei <a class="novita" href="/seta_menu/percorsi/index.html">percorsi</a> per schermi piccoli.
</p> </p>
</div> </div>
<div class="riga"> <div class="riga">
<h2 class="piccolospazio">Ravenna:</h2> <h2 class="piccolospazio">Ravenna:</h2>
<p class="piccolospazio"> <p class="piccolospazio">
Aggiunti: <a class="novita" href="/startravenna_bus/urbano/manlc12e.html">MAN Lion's City 12E</a>. Aggiunti: <a class="novita" href="/startravenna_bus/urbano/manlc12e.html">MAN Lion's City 12E</a>. <br> <br>
Nuova grafica per il <a class="novita" href="/start_menu/servizi/start-livebus/index.html">Monitor bus</a>.
</p> </p>
</div> </div>
<div class="riga"> <div class="riga">

View File

@@ -151,20 +151,20 @@ img{
@media (max-width: 768px) { @media (max-width: 768px) {
.search-result { .search-result {
display: block; display: block;
width: 95.5%; width: 96.5%;
} }
.container { .container {
flex-direction: column; flex-direction: column;
} }
th,td { th,td {
font-size: 70%; font-size: 90%;
} }
nav#corsie-nav ul li a{ nav#corsie-nav ul li a{
font-size: 75%; font-size: 2.8vw;
margin: 0; margin: 0;
} }
table { table {
margin-top: 10px; width: 100%;
} }
h2{ h2{
margin-bottom: 0; margin-bottom: 0;
@@ -187,6 +187,16 @@ img{
} }
} }
@media (max-width: 512px) {
th,td {
font-size: 2.8vw;
padding: .8vw;
}
table{
margin-top:10px;
}
}
footer { footer {
position: relative; position: relative;
bottom: 0; bottom: 0;

View File

@@ -1,8 +1,8 @@
body { body {
background-color: #282828; background-color: #282828;
text-align: center; text-align: center;
color: white; color: white;
font-family: Titillium Web; font-family: Titillium Web;
} }
h1 { h1 {
@@ -22,15 +22,8 @@ p {
} }
#data-container { #data-container {
margin-top: 20px; min-width: 80%;
max-width: 1000px; max-width: 100%;
margin-left: auto;
margin-right: auto;
background-color: #333;
padding: 20px;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
overflow-x: scroll;
} }
.filter-container { .filter-container {
@@ -69,52 +62,46 @@ p {
} }
table { table {
width: 100%; border-collapse: separate;
border-collapse: collapse; border-spacing: 0;
margin-top: 20px; border: 1px solid rgb(100,100,100);
font-size: 15px; border-radius: 16px;
border-radius: 8px; overflow: hidden;
overflow: hidden; min-width: 85%;
max-width: 100%;
margin: 18px auto;
} }
table th:nth-child(6), /*Linee verticali*/
td:nth-child(6){ th:not(:last-child),
display: none; td:not(:last-child) {
border-right: 1px solid rgb(100,100,100);
} }
table, /*Linee orizzontali*/
th, tr:not(:last-child) > th,
td { tr:not(:last-child) > td {
border: 1px solid #e0e0e0; border-bottom: 1px solid rgb(100,100,100);;
} }
th { th {
background-color: slategray; background-color: slategray;
color: white; color: white;
padding: 12px; text-align: center;
text-align: left; padding: .7vw;
} }
td { td {
padding: 10px; padding: .7vw;
background-color: dimgray; background-color: #282828;
color: white; color: white;
} }
tr:nth-child(even) td { tr:nth-child(even) td {
background-color: gray; background-color: rgb(60, 60, 60);
}
tr:hover td {
background-color: darkgray;
} }
@media (max-width: 768px) { @media (max-width: 768px) {
table th:nth-child(4),
td:nth-child(4){
display: none;
}
.filter-container input{ .filter-container input{
margin-top: 5px; margin-top: 5px;
} }
@@ -122,6 +109,9 @@ tr:hover td {
.filter-container button{ .filter-container button{
margin-top: 75%; margin-top: 75%;
} }
#data-container {
overflow-x: scroll;
}
} }
button { button {

View File

@@ -42,24 +42,38 @@ function applyFilter() {
const table = document.createElement('table'); const table = document.createElement('table');
// Aggiungi l'intestazione della tabella // Aggiungi l'intestazione della tabella
const header = table.createTHead(); var th = document.createElement('th');
const headerRow = header.insertRow(); var tr = document.createElement('tr');
headerRow.insertCell().textContent = 'Zona'; th.innerHTML='Zona';
headerRow.insertCell().textContent = 'Linea'; tr.appendChild(th);
headerRow.insertCell().textContent = 'Fermata'; th = document.createElement('th');
headerRow.insertCell().textContent = 'Codice Fermata'; th.innerHTML='Linea';
headerRow.insertCell().textContent = 'Veicolo'; tr.appendChild(th);
headerRow.insertCell().textContent = ' '; th = document.createElement('th');
headerRow.insertCell().textContent = 'Ultimo Aggiornamento'; th.innerHTML='Fermata';
tr.appendChild(th);
th = document.createElement('th');
th.innerHTML='Codice fermata';
tr.appendChild(th);
th = document.createElement('th');
th.innerHTML='Veicolo';
tr.appendChild(th);
th = document.createElement('th');
th.innerHTML='Ultimo aggiornamento';
tr.appendChild(th);
table.appendChild(tr);
// Aggiungi i dati alla tabella // Aggiungi i dati alla tabella
const tbody = table.createTBody();
data.forEach(row => { data.forEach(row => {
const rowElement = tbody.insertRow(); const rowt = document.createElement('tr');
row.forEach(cellData => { row.forEach(cellData => {
const cell = rowElement.insertCell(); if(cellData!=""){
cell.textContent = cellData; const cell = document.createElement('td');
cell.innerHTML = cellData;
rowt.appendChild(cell);
}
}); });
table.appendChild(rowt);
}); });
// Aggiungi la tabella alla pagina // Aggiungi la tabella alla pagina

View File

@@ -268,6 +268,13 @@ table.image-table img {
font-family: Titillium Web; font-family: Titillium Web;
font-size: medium; font-size: medium;
} }
.container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 20px;
margin: 20px;
}
@media (max-width: 768px) { @media (max-width: 768px) {
table.image-table { table.image-table {
width: 100%; width: 100%;
@@ -283,6 +290,8 @@ table.image-table img {
} }
.container { .container {
flex-direction: column; flex-direction: column;
margin-left:0;
margin-right:0;
} }
iframe.chisiamo{ iframe.chisiamo{
width: 340px; width: 340px;
@@ -390,11 +399,4 @@ table.image-table img {
width: 300px; width: 300px;
margin: 20px; margin: 20px;
font-size: 16px; font-size: 16px;
}
.container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 20px;
margin: 20px;
} }