Warning calcio

This commit is contained in:
Leocraft1
2025-09-13 16:52:45 +02:00
parent 7e87d55f7b
commit 613c7457ef
9 changed files with 45 additions and 5 deletions

View File

@@ -109,6 +109,11 @@ a {
color: orange;
}
a.rossosott{
color: red;
text-decoration: underline;
}
a.bianco{
color: white;
text-decoration: none;

View File

@@ -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>

View File

@@ -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';