mirror of
https://github.com/Daniongithub/ER-TPL.git
synced 2025-12-06 15:42:02 +00:00
Tempfix
This commit is contained in:
@@ -23,6 +23,7 @@ body {
|
||||
|
||||
#iframe{
|
||||
width: 97%;
|
||||
height: 2000px;
|
||||
}
|
||||
|
||||
table{
|
||||
|
||||
@@ -13,13 +13,4 @@ const baseURL = "https://setaapi.serverissimo.freeddns.org/lineedyn_linea_dett_p
|
||||
lineaSpan.innerHTML=num;
|
||||
|
||||
//Spawn iframe
|
||||
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";
|
||||
}
|
||||
});
|
||||
iframe.setAttribute("src",baseURL);
|
||||
Reference in New Issue
Block a user