mirror of
https://github.com/Daniongithub/ER-TPL.git
synced 2025-12-06 11:42:03 +00:00
Tempfix
This commit is contained in:
@@ -23,6 +23,7 @@ body {
|
|||||||
|
|
||||||
#iframe{
|
#iframe{
|
||||||
width: 97%;
|
width: 97%;
|
||||||
|
height: 2000px;
|
||||||
}
|
}
|
||||||
|
|
||||||
table{
|
table{
|
||||||
|
|||||||
@@ -13,13 +13,4 @@ const baseURL = "https://setaapi.serverissimo.freeddns.org/lineedyn_linea_dett_p
|
|||||||
lineaSpan.innerHTML=num;
|
lineaSpan.innerHTML=num;
|
||||||
|
|
||||||
//Spawn iframe
|
//Spawn iframe
|
||||||
iframe.setAttribute("src",baseURL);
|
iframe.setAttribute("src",baseURL);
|
||||||
setTimeout(function(){}, 2000);
|
|
||||||
|
|
||||||
//Adatta altezza iframe da codice injectato
|
|
||||||
window.addEventListener("message", (event) => {
|
|
||||||
if (event.origin !== "https://setaapi.serverissimo.freeddns.org/lineedyn_linea_dett_percorsi") return; // sicurezza
|
|
||||||
if (event.data?.type === "resize") {
|
|
||||||
frame.style.height = event.data.height + "px";
|
|
||||||
}
|
|
||||||
});
|
|
||||||
Reference in New Issue
Block a user