mirror of
https://github.com/Daniongithub/ER-TPL.git
synced 2025-10-02 20:10:47 +00:00
Compare commits
3 Commits
6df9fef952
...
b7044d8e15
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b7044d8e15 | ||
![]() |
8fc48eda2e | ||
![]() |
8a8413c37c |
@@ -23,15 +23,6 @@
|
|||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
<h1>Visualizzatore orari di arrivo SETA Modena</h1>
|
<h1>Visualizzatore orari di arrivo SETA Modena</h1>
|
||||||
<!--
|
|
||||||
<label for="bacino">Bacino:</label>
|
|
||||||
<select id="bacino">
|
|
||||||
<option value="" selected>--Scegli un'opzione--</option>
|
|
||||||
<option value="ra">Ravenna</option>
|
|
||||||
<option value="rn">Rimini</option>
|
|
||||||
<option value="fc">Forlì-Cesena</option>
|
|
||||||
</select>
|
|
||||||
-->
|
|
||||||
<div>
|
<div>
|
||||||
<input type="text" id="searchBar" placeholder="Cerca una fermata...">
|
<input type="text" id="searchBar" placeholder="Cerca una fermata...">
|
||||||
</div>
|
</div>
|
||||||
@@ -40,8 +31,14 @@
|
|||||||
<input type="text" id="stopCodeBar" placeholder="Inserisci un codice fermata...">
|
<input type="text" id="stopCodeBar" placeholder="Inserisci un codice fermata...">
|
||||||
</div>
|
</div>
|
||||||
<p id="warning-mo"><a href="comeleggere.html" style="color: white;">Come leggere il codice fermata.</a></p>
|
<p id="warning-mo"><a href="comeleggere.html" style="color: white;">Come leggere il codice fermata.</a></p>
|
||||||
<div id="searchResults"></div>
|
|
||||||
<h1 class="yellow-warning">ATTENZIONE! Riportare eventuali discrepanze ai contatti del sito presenti in <a href="https://ertpl.pages.dev/chisiamo">chi siamo</a></h1>
|
<div id="searchResults">
|
||||||
|
<h3 style="margin-bottom:4px;">Fermate rapide:</h3>
|
||||||
|
<a href="/seta_menu/cercaorario/altrecorsie.html?location=MODENA AUTOSTAZIONE" class="bianco"><div class="search-result"><h3>Autostazione</h3></div></a>
|
||||||
|
<a href="/seta_menu/cercaorario/altrecorsie.html?location=STAZIONE FS" class="bianco"><div class="search-result"><h3>Stazione FS</h3></div></a>
|
||||||
|
<a href="/seta_menu/cercaorario/altrecorsie.html?location=GARIBALDI" class="bianco"><div class="search-result"><h3>Largo Garibaldi</h3></div></a>
|
||||||
|
</div>
|
||||||
|
<h1 class="yellow-warning">ATTENZIONE! Riportare eventuali discrepanze ai contatti del sito presenti in <a href="https://ertpl.pages.dev/chisiamo">chi siamo</a></h1>.
|
||||||
<footer>
|
<footer>
|
||||||
<div>
|
<div>
|
||||||
<p>Copyright (C) 2025 ER-TPL Team - <a href="https://ertpl.pages.dev" target="_blank">ertpl.pages.dev</a> - code by Il Dani & SetaModenaFanpage <a href="https://github.com/Leocraft1/SetaAPI" target="_blank">Codice Sorgente</a> - I loghi SETA Spa sono marchi registrati e sono inseriti in questo sito solo a scopo di illustrazione.</p>
|
<p>Copyright (C) 2025 ER-TPL Team - <a href="https://ertpl.pages.dev" target="_blank">ertpl.pages.dev</a> - code by Il Dani & SetaModenaFanpage <a href="https://github.com/Leocraft1/SetaAPI" target="_blank">Codice Sorgente</a> - I loghi SETA Spa sono marchi registrati e sono inseriti in questo sito solo a scopo di illustrazione.</p>
|
||||||
|
@@ -19,24 +19,30 @@ fetch(url)
|
|||||||
.catch(error => console.error('Errore nel caricamento dei dati:', error));
|
.catch(error => console.error('Errore nel caricamento dei dati:', error));
|
||||||
|
|
||||||
searchBar.addEventListener('input', () => {
|
searchBar.addEventListener('input', () => {
|
||||||
const searchTerm = searchBar.value.toLowerCase();
|
|
||||||
const warning=document.getElementById('warning-mo');
|
const warning=document.getElementById('warning-mo');
|
||||||
warning.innerHTML='';
|
|
||||||
const filtered = allresults
|
|
||||||
.filter(item => item.fermata.toLowerCase().includes(searchTerm))
|
|
||||||
.sort((a, b) => {
|
|
||||||
const aStartsWith = a.fermata.toLowerCase().startsWith(searchTerm);
|
|
||||||
const bStartsWith = b.fermata.toLowerCase().startsWith(searchTerm);
|
|
||||||
if (aStartsWith && !bStartsWith) return -1;
|
|
||||||
if (!aStartsWith && bStartsWith) return 1;
|
|
||||||
return 0;
|
|
||||||
});
|
|
||||||
renderresults(filtered);
|
|
||||||
if (searchBar.value == '') {
|
if (searchBar.value == '') {
|
||||||
resultsContainer.innerHTML='';
|
resultsContainer.innerHTML=`
|
||||||
warning.innerHTML = `
|
<h3 style="margin-bottom:4px;">Fermate rapide:</h3>
|
||||||
<p id="warning-mo"><a href="comeleggere.html" style="color: white;">Come leggere il codice fermata.</a></p>
|
<a href="/seta_menu/cercaorario/altrecorsie.html?location=STAZIONE FS" class="bianco"><div class="search-result"><h3>Autostazione</h3></div></a>
|
||||||
|
<a href="/seta_menu/cercaorario/altrecorsie.html?location=MODENA AUTOSTAZIONE" class="bianco"><div class="search-result"><h3>Stazione FS</h3></div></a>
|
||||||
|
<a href="/seta_menu/cercaorario/altrecorsie.html?location=GARIBALDI" class="bianco"><div class="search-result"><h3>Largo Garibaldi</h3></div></a>
|
||||||
`;
|
`;
|
||||||
|
warning.innerHTML = `
|
||||||
|
<p id="warning-mo"><a href="comeleggere.html" style="color: white;">Come leggere il codice fermata.</a></p>
|
||||||
|
`;
|
||||||
|
}else{
|
||||||
|
const searchTerm = searchBar.value.toLowerCase();
|
||||||
|
warning.innerHTML='';
|
||||||
|
const filtered = allresults
|
||||||
|
.filter(item => item.fermata.toLowerCase().includes(searchTerm))
|
||||||
|
.sort((a, b) => {
|
||||||
|
const aStartsWith = a.fermata.toLowerCase().startsWith(searchTerm);
|
||||||
|
const bStartsWith = b.fermata.toLowerCase().startsWith(searchTerm);
|
||||||
|
if (aStartsWith && !bStartsWith) return -1;
|
||||||
|
if (!aStartsWith && bStartsWith) return 1;
|
||||||
|
return 0;
|
||||||
|
});
|
||||||
|
renderresults(filtered);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -65,9 +71,14 @@ stopCodeBar.addEventListener('input', () => {
|
|||||||
|
|
||||||
searchResultsContainer.appendChild(div);
|
searchResultsContainer.appendChild(div);
|
||||||
if (stopCodeBar.value == '') {
|
if (stopCodeBar.value == '') {
|
||||||
resultsContainer.innerHTML='';
|
resultsContainer.innerHTML=`
|
||||||
|
<h3 style="margin-bottom:4px;">Fermate rapide:</h3>
|
||||||
|
<a href="" class="bianco"><div class="search-result"><h3>Autostazione</h3></div></a>
|
||||||
|
<a href="" class="bianco"><div class="search-result"><h3>Stazione FS</h3></div></a>
|
||||||
|
<a href="" class="bianco"><div class="search-result"><h3>Largo Garibaldi</h3></div></a>
|
||||||
|
`;
|
||||||
warning.innerHTML = `
|
warning.innerHTML = `
|
||||||
<p id="warning-mo"><a href="comeleggere.html" style="color: white;">Come leggere il codice fermata.</a></p>
|
<p id="warning-mo"><a href="comeleggere.html" style="color: white;">Come leggere il codice fermata.</a></p>
|
||||||
`;
|
`;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
1151
sitemap.xml
1151
sitemap.xml
File diff suppressed because it is too large
Load Diff
@@ -76,7 +76,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<a href="/pagenotavailable.html">
|
<a href="/service/pagenotavailable.html">
|
||||||
<p>37251-37258<br>MAN Lion's City 12E</p>
|
<p>37251-37258<br>MAN Lion's City 12E</p>
|
||||||
<h2>In arrivo</h2>
|
<h2>In arrivo</h2>
|
||||||
</a>
|
</a>
|
||||||
|
Reference in New Issue
Block a user