Diritti
This commit is contained in:
parent
370703d590
commit
c1766cc004
|
@ -122,7 +122,7 @@ a {
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
position: relative;
|
position: fixed;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
@ -30,13 +30,12 @@
|
||||||
</select>
|
</select>
|
||||||
-->
|
-->
|
||||||
<div>
|
<div>
|
||||||
<label for="searchBar">Cerca fermata:</label>
|
|
||||||
<input type="text" id="searchBar" placeholder="Cerca una fermata...">
|
<input type="text" id="searchBar" placeholder="Cerca una fermata...">
|
||||||
</div>
|
</div>
|
||||||
<div id="searchResults"></div>
|
<div id="searchResults"></div>
|
||||||
<footer>
|
<footer id="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="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>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
<script src="js/cercafermata.js"></script>
|
<script src="js/cercafermata.js"></script>
|
||||||
|
|
|
@ -16,6 +16,8 @@ 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 footer=document.getElementById('footer');
|
||||||
|
footer.innerHTML='';
|
||||||
const searchTerm = searchBar.value.toLowerCase();
|
const searchTerm = searchBar.value.toLowerCase();
|
||||||
const filtered = allresults.filter(item =>
|
const filtered = allresults.filter(item =>
|
||||||
item.fermata.toLowerCase().includes(searchTerm)
|
item.fermata.toLowerCase().includes(searchTerm)
|
||||||
|
|
Loading…
Reference in New Issue