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