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>
<hr class="solid">
<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="riga">
<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>
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>
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>
</div>
<div class="riga">
<h2 class="piccolospazio">Ravenna:</h2>
<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>
</div>
<div class="riga">

View File

@@ -151,20 +151,20 @@ img{
@media (max-width: 768px) {
.search-result {
display: block;
width: 95.5%;
width: 96.5%;
}
.container {
flex-direction: column;
}
th,td {
font-size: 70%;
font-size: 90%;
}
nav#corsie-nav ul li a{
font-size: 75%;
font-size: 2.8vw;
margin: 0;
}
table {
margin-top: 10px;
width: 100%;
}
h2{
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 {
position: relative;
bottom: 0;

View File

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

View File

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

View File

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