mirror of
https://github.com/Daniongithub/ER-TPL.git
synced 2025-10-02 14:30:48 +00:00
Warning calcio
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
<div class="riga">
|
||||
<h2 class="piccolospazio">SETA:</h2>
|
||||
<p class="piccolospazio">
|
||||
<h1 class="warning">ATTENZIONE! Proclamato sciopero per il 22 Settembre 2025.</h1></li>
|
||||
<strong>Servizi rapidi:</strong> <a class="novita" href="/seta_menu/cercaorario/index.html">Cerca orario</a> <br> <br>
|
||||
Nuovi modelli in arrivo nel 2025:
|
||||
<a class="novita" href="/setamodena_bus/urbano/solarisidrogeno.html">Solaris Idrogeno</a>,
|
||||
|
@@ -19,6 +19,9 @@
|
||||
<ul>
|
||||
<li><h1 class="yellow-warning">ATTENZIONE! Stiamo riscrivendo il codice per identificare modelli e targhe, il filtro per modello potrebbe non funzionare, ci scusiamo per il disagio.</h1></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><h1 class="warning">ATTENZIONE! Proclamato sciopero SETA tutti i bacini per il 22 Settembre 2025.</h1></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<nav id="nav-inservizio" style="display: flex;">
|
||||
<ul>
|
||||
|
@@ -109,6 +109,11 @@ a {
|
||||
color: orange;
|
||||
}
|
||||
|
||||
a.rossosott{
|
||||
color: red;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
a.bianco{
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
|
@@ -16,6 +16,12 @@
|
||||
<body>
|
||||
<header>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><h1 class="warning">ATTENZIONE! Proclamato sciopero SETA tutti i bacini per il 22 Settembre 2025.</h1></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><h1 class="warning" id="calcio">ATTENZIONE! Deviazione linee per la partita di calcio oggi. <a href="https://www.setaweb.it/mo/news/4991" class="rossosott">Percorsi provvisori</a></h1></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="/index.html"><h1 style="font-size: 100%;font-weight: 500;">Home</h1></a></li>
|
||||
<li><a href="/seta_menu/seta.html"><h1 style="font-size: 100%;font-weight: 500;">SETA Modena</h1></a></li>
|
||||
@@ -24,11 +30,11 @@
|
||||
</header>
|
||||
<h1>Visualizzatore orari di arrivo SETA Modena</h1>
|
||||
<div>
|
||||
<input type="text" id="searchBar" placeholder="Cerca una fermata...">
|
||||
<input type="text" id="searchBar" placeholder="Cerca una fermata..." autocomplete="off">
|
||||
</div>
|
||||
<h3 style="margin: 16px;">Oppure:</h3>
|
||||
<div>
|
||||
<input type="text" id="stopCodeBar" placeholder="Inserisci un codice fermata...">
|
||||
<input type="text" id="stopCodeBar" placeholder="Inserisci un codice fermata..." autocomplete="off">
|
||||
</div>
|
||||
<p id="warning-mo"><a href="comeleggere.html" style="color: white;">Come leggere il codice fermata.</a></p>
|
||||
|
||||
|
@@ -2,9 +2,13 @@ const searchBar = document.getElementById('searchBar');
|
||||
const stopCodeBar = document.getElementById('stopCodeBar');
|
||||
const resultsContainer = document.getElementById('searchResults');
|
||||
|
||||
//Calcio 13/09/2025
|
||||
const calcio = document.getElementById('calcio');
|
||||
if(new Date().getDate()!="13"||new Date().getMonth()!="8"){
|
||||
calcio.setAttribute("style","display: none;")
|
||||
}
|
||||
|
||||
let allresults = [];
|
||||
window.onbeforeunload=searchBar.value="";
|
||||
window.onbeforeunload=stopCodeBar.value="";
|
||||
|
||||
const url = 'https://setaapi.serverissimo.freeddns.org/stopcodesarchive';
|
||||
//const url='http://localhost:5001/stoplist';
|
||||
|
@@ -27,6 +27,9 @@
|
||||
<h2>Urbano:</h2>
|
||||
<div id="urbano-container"></div>
|
||||
<hr>
|
||||
<h2>Scolastiche:</h2>
|
||||
<div id="scuola-container"></div>
|
||||
<hr>
|
||||
<h2>Taxi:</h2>
|
||||
<div id="speciali-container"></div>
|
||||
<hr>
|
||||
|
@@ -2,6 +2,7 @@ const uContainer = document.getElementById('urbano-container');
|
||||
const sContainer = document.getElementById('speciali-container');
|
||||
const seContainer = document.getElementById('subextra-container');
|
||||
const othContainer = document.getElementById('altri-container');
|
||||
const schContainer = document.getElementById('scuola-container');
|
||||
|
||||
const url = "https://setaapi.serverissimo.freeddns.org/routenumberslist";
|
||||
|
||||
@@ -22,6 +23,14 @@ fetch(url)
|
||||
<div class="search-result"><h3>${element}</h3>
|
||||
`;
|
||||
uContainer.appendChild(result);
|
||||
}else if(element>390&&element<400){
|
||||
const result = document.createElement('a');
|
||||
result.setAttribute("class","bianco");
|
||||
result.setAttribute("href","rcodes.html?routenum="+element);
|
||||
result.innerHTML = `
|
||||
<div class="search-result"><h3>${element}</h3>
|
||||
`;
|
||||
schContainer.appendChild(result);
|
||||
}else if(element=="5taxi"||element=="10tax"){
|
||||
const result = document.createElement('a');
|
||||
result.setAttribute("class","bianco");
|
||||
|
@@ -16,6 +16,9 @@
|
||||
<body>
|
||||
<header>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><h1 class="warning">ATTENZIONE! Proclamato sciopero SETA tutti i bacini per il 22 Settembre 2025.</h1></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href="/index.html"><h1 style="font-size: 100%;font-weight: 500;">Home</h1></a></li>
|
||||
</ul>
|
||||
|
@@ -166,7 +166,7 @@ nav ul li a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
nav ul li h1.warning {
|
||||
.warning {
|
||||
color:red;
|
||||
font-size: 16px;
|
||||
}
|
||||
@@ -213,6 +213,12 @@ td a{
|
||||
td.sott a{
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
a.rossosott{
|
||||
color: red;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.nospazio{
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px;
|
||||
|
Reference in New Issue
Block a user