mirror of
https://github.com/Daniongithub/ER-TPL.git
synced 2025-12-06 07:12:02 +00:00
Sistemazione + esiste? + fine manutenzione percorsi seta
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
<div>
|
||||
<a class="green button" href="/seta_modena/servizi/cercaorario/index.html">Orari in tempo reale</a>
|
||||
<a class="green button" href="/seta_modena/servizi/businservizio/index.html">Monitor autobus in servizio</a>
|
||||
<a class="wip button" href="/service/maintenance.html">Percorsi</a>
|
||||
<a class="green button" href="/seta_modena/servizi/percorsi/index.html">Percorsi</a>
|
||||
<a class="wip button" href="zone.html">Zone (BETA)</a>
|
||||
</div>
|
||||
<div style="height: 5px;"></div>
|
||||
|
||||
@@ -152,6 +152,17 @@ img{
|
||||
height:300px;
|
||||
}
|
||||
|
||||
.green-bold{
|
||||
color:green;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.red-bold{
|
||||
color:rgba(255, 50, 50, 1);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.search-result {
|
||||
display: block;
|
||||
|
||||
@@ -4,6 +4,7 @@ const num = params.get('routenum');
|
||||
const codiceSpan = document.getElementById('codice-span');
|
||||
const destSpan = document.getElementById('destinazione-span');
|
||||
const pNav = document.getElementById('percorso-nav');
|
||||
const existP = document.getElementById('esiste-p');
|
||||
|
||||
//Displays route code
|
||||
codiceSpan.textContent = id;
|
||||
@@ -29,6 +30,14 @@ function caricadati(){
|
||||
item = data;
|
||||
})
|
||||
.then(data => {
|
||||
//Display testo esiste o no
|
||||
if(item.stillExists==true){
|
||||
existP.setAttribute("class","green-bold");
|
||||
existP.innerHTML="Questo percorso esiste ancora"
|
||||
}else if(item.stillExists==undefined){}else{
|
||||
existP.setAttribute("class","red-bold");
|
||||
existP.innerHTML="Questo percorso non esiste più"
|
||||
}
|
||||
const container = document.getElementById('tabella-container');
|
||||
container.innerHTML = '';
|
||||
// Creo tabella
|
||||
@@ -46,7 +55,7 @@ function caricadati(){
|
||||
|
||||
// Corpo tabella
|
||||
const tbody = document.createElement('tbody');
|
||||
item.forEach(item => {
|
||||
item.stops.forEach(item => {
|
||||
const element = item;
|
||||
var tr = document.createElement('tr');
|
||||
tr.innerHTML = `
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
</header>
|
||||
<h2>Lista fermate linea: <span id="codice-span"></span></h2>
|
||||
<p>Direzione: <span id="destinazione-span"></span></p>
|
||||
<p id="esiste-p"></p>
|
||||
<p>E' possibile cliccare sul codice o nome fermata per vedere gli arrivi alla rispettiva fermata.</p>
|
||||
<div id="tabella-container">Caricamento dati...</div>
|
||||
<footer>
|
||||
|
||||
Reference in New Issue
Block a user