This commit is contained in:
Leocraft1 2025-07-26 12:28:43 +02:00
parent 370703d590
commit c1766cc004
3 changed files with 5 additions and 4 deletions

View File

@ -122,7 +122,7 @@ a {
}
footer {
position: relative;
position: fixed;
bottom: 0;
left: 0;
width: 100%;

View File

@ -30,13 +30,12 @@
</select>
-->
<div>
<label for="searchBar">Cerca fermata:</label>
<input type="text" id="searchBar" placeholder="Cerca una fermata...">
</div>
<div id="searchResults"></div>
<footer>
<footer id="footer">
<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="about:blank" target="_blank">Codice Sorgente (Inserire link)</a></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="about:blank" target="_blank">Codice Sorgente (Inserire link)</a> - I loghi SETA Spa sono marchi registrati e sono inseriti in questo sito solo a scopo di illustrazione.</p>
</div>
</footer>
<script src="js/cercafermata.js"></script>

View File

@ -16,6 +16,8 @@ fetch(url)
.catch(error => console.error('Errore nel caricamento dei dati:', error));
searchBar.addEventListener('input', () => {
const footer=document.getElementById('footer');
footer.innerHTML='';
const searchTerm = searchBar.value.toLowerCase();
const filtered = allresults.filter(item =>
item.fermata.toLowerCase().includes(searchTerm)