mirror of
https://github.com/Daniongithub/ER-TPL.git
synced 2025-10-02 12:50:47 +00:00
Update altre corse per polo leonardo
This commit is contained in:
@@ -65,7 +65,7 @@ stopCodeBar.addEventListener('input', () => {
|
||||
`;
|
||||
|
||||
div.addEventListener('click', () => {
|
||||
const url = `fermata.html?code=${encodeURIComponent(code)}&name=${encodeURIComponent(code)}`;
|
||||
const url = `fermata.html?code=${code}&name=${code}`;
|
||||
parent.location=url;
|
||||
});
|
||||
|
||||
@@ -98,7 +98,7 @@ function renderresultscode(results) {
|
||||
`;
|
||||
|
||||
div.addEventListener('click', () => {
|
||||
const url = `fermata.html?code=${encodeURIComponent(item.valore)}&name=${encodeURIComponent(item.fermata)}`;
|
||||
const url = `fermata.html?code=${item.valore}&name=${item.fermata}`;
|
||||
parent.location=url;
|
||||
});
|
||||
|
||||
@@ -125,7 +125,7 @@ function renderresults(results) {
|
||||
`;
|
||||
|
||||
div.addEventListener('click', () => {
|
||||
const url = `fermata.html?code=${encodeURIComponent(item.valore)}&name=${encodeURIComponent(item.fermata)}`;
|
||||
const url = `fermata.html?code=${item.valore}&name=${item.fermata}`;
|
||||
parent.location=url;
|
||||
});
|
||||
|
||||
|
@@ -38,6 +38,14 @@ fetch(url)
|
||||
</li>
|
||||
</ul>`;
|
||||
}
|
||||
if(nome.includes("POLO LEONARDO")){
|
||||
corsie_nav.innerHTML = `
|
||||
<ul>
|
||||
<li>
|
||||
<a href="/seta_menu/cercaorario/altrecorsie.html?location=POLO LEONARDO">Altre corsie</a>
|
||||
</li>
|
||||
</ul>`;
|
||||
}
|
||||
//Pulsante dall'altra parte
|
||||
console.log(altraParteSearch(nome))
|
||||
if(altraParteSearch(nome)!=undefined){
|
||||
@@ -165,7 +173,7 @@ function altraParteSearch(searchTerm){
|
||||
var dupedCodes = [];
|
||||
var i = 0;
|
||||
allresults.forEach(element => {
|
||||
if(element.fermata.toLowerCase().includes(searchTerm.toLowerCase())){
|
||||
if(element.fermata.toLowerCase()==searchTerm.toLowerCase()){
|
||||
dupedCodes[i]=element.valore;
|
||||
i++;
|
||||
}
|
||||
|
@@ -78,4 +78,14 @@ if(posto=="GARIBALDI"){
|
||||
<div class="search-result"><h3>Storchi direzione Centro</h3></div>
|
||||
</a>
|
||||
`;
|
||||
}
|
||||
if(posto=="POLO LEONARDO"){
|
||||
bottoni.innerHTML = `
|
||||
<a href="/seta_menu/cercaorario/fermata.html?code=MO6783&name=POLO LEONARDO (Strada)" class="bianco">
|
||||
<div class="search-result"><h3>POLO LEONARDO (Strada)</h3></div>
|
||||
</a>
|
||||
<a href="/seta_menu/cercaorario/fermata.html?code=MO2928&name=POLO LEONARDO 1" class="bianco">
|
||||
<div class="search-result"><h3>POLO LEONARDO 1</h3></div>
|
||||
</a>
|
||||
`;
|
||||
}
|
Reference in New Issue
Block a user