diff --git a/seta_menu/frequenze/index.html b/seta_menu/frequenze/index.html
deleted file mode 100644
index 2174cea..0000000
--- a/seta_menu/frequenze/index.html
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
-
-
-
-
SETA Modena - Tempi di percorrenza
-
-
-
-
-
-
-
-
-
-
Frequenze e tempi di percorrenza linee urbane SETA Modena
-
Scegli una linea:
-
-
-
-
-
\ No newline at end of file
diff --git a/seta_menu/frequenze/js/script.js b/seta_menu/frequenze/js/script.js
deleted file mode 100644
index 45e7890..0000000
--- a/seta_menu/frequenze/js/script.js
+++ /dev/null
@@ -1,28 +0,0 @@
-const uContainer = document.getElementById('urbano-container');
-
-const url = "https://setaapi.serverissimo.freeddns.org/routenumberslist";
-
-//Elenco linee urbano
-fetch(url)
- .then(response => {
- if (!response.ok) throw new Error("Errore nel caricamento dei dati.");
- return response.json();
- })
- .then(data => {
- allresults = data;
- allresults.forEach(element => {
- if(element<100){
- const result = document.createElement('a');
- result.setAttribute("class","bianco");
- if(element.includes("(")){
- result.setAttribute("class","rosso");
- }
- result.setAttribute("href","iframeorari.html?routenum="+element);
- result.innerHTML = `
-
${element}
- `;
- uContainer.appendChild(result);
- }
- });
- })
- .catch(error => console.error('Errore nel caricamento dei dati:', error));
\ No newline at end of file
diff --git a/seta_menu/frequenze/css/style.css b/seta_menu/percorsi/css/style-iframeorari.css
similarity index 100%
rename from seta_menu/frequenze/css/style.css
rename to seta_menu/percorsi/css/style-iframeorari.css
diff --git a/seta_menu/percorsi/css/style.css b/seta_menu/percorsi/css/style.css
index 8c2dd01..b2b11e5 100644
--- a/seta_menu/percorsi/css/style.css
+++ b/seta_menu/percorsi/css/style.css
@@ -32,9 +32,9 @@ th {
th,td {
border: 2px solid #444;
- padding: .7vw;
- padding-top: .6vw;
- padding-bottom: .6vw;
+ padding: 10.75px;
+ padding-top: 9.2px;
+ padding-bottom: 9.2px;
text-align: left;
}
@@ -162,6 +162,9 @@ img{
}
th,td {
font-size: 90%;
+ padding: .7vw;
+ padding-top: .6vw;
+ padding-bottom: .6vw;
}
nav#corsie-nav ul li a{
font-size: 75%;
@@ -189,12 +192,15 @@ img{
width: 98%;
height: auto;
}
- nav ul:last-child li {
- margin-right: 20px;
- }
nav ul li {
margin-right: 8px;
}
+ nav#rcodes-nav ul:last-child li {
+ margin-right: 20px;
+ }
+ nav#rcodes-nav ul li:last-child {
+ margin-right: 20px;
+ }
}
@media (max-width: 512px) {
diff --git a/seta_menu/frequenze/iframeorari.html b/seta_menu/percorsi/iframeorari.html
similarity index 80%
rename from seta_menu/frequenze/iframeorari.html
rename to seta_menu/percorsi/iframeorari.html
index 60b9433..a107f95 100644
--- a/seta_menu/frequenze/iframeorari.html
+++ b/seta_menu/percorsi/iframeorari.html
@@ -6,7 +6,7 @@
SETA Modena - Tempi di percorrenza
-
+
@@ -17,9 +17,7 @@
diff --git a/seta_menu/frequenze/js/iframeorari.js b/seta_menu/percorsi/js/iframeorari.js
similarity index 100%
rename from seta_menu/frequenze/js/iframeorari.js
rename to seta_menu/percorsi/js/iframeorari.js
diff --git a/seta_menu/percorsi/js/rcodes.js b/seta_menu/percorsi/js/rcodes.js
index 565a7bc..651cd52 100644
--- a/seta_menu/percorsi/js/rcodes.js
+++ b/seta_menu/percorsi/js/rcodes.js
@@ -1,9 +1,18 @@
const params = new URLSearchParams(window.location.search);
const container = document.getElementById('res-container');
const id = params.get('routenum');
+const nav = document.getElementById('rcodes-nav')
const url = "https://setaapi.serverissimo.freeddns.org/routecodesarchive";
+//Spawn iframeorari
+if(id!=undefined&&id!=""){
+ const ul = document.createElement('ul');
+ ul.setAttribute("style","flex:1;justify-content: right;");
+ ul.innerHTML=`
Orari e mappa di oggi
`;
+ nav.appendChild(ul);
+}
+
//Elenco percorsi
fetch(url)
.then(response => {
diff --git a/seta_menu/percorsi/rcodes.html b/seta_menu/percorsi/rcodes.html
index 0f6cabe..49f9b05 100644
--- a/seta_menu/percorsi/rcodes.html
+++ b/seta_menu/percorsi/rcodes.html
@@ -15,7 +15,7 @@