<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Pagina Integrata</title>
<style>
body, html {
margin: 0;
padding: 0;
height: 100%;
background-color: #f2f2f2;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.overlay {
position: absolute;
top: 0;
width: 100%;
height: 100px; /* Altezza di copertura dell'header */
background-color: #f2f2f2; /* Colore di sfondo per coprire */
z-index: 2; /* Garantisce la sovrapposizione all'iframe */
}
iframe {
width: 1440px; /* Larghezza desktop */
height: 90vh; /* Altezza dell'iframe */
border: none;
border-radius: 8px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
margin-top: -100px; /* Sposta l'iframe verso l'alto per compensare l'overlay */
z-index: 1;
}
</style>
</head>
<body>
<div class="overlay"></div> <!-- Overlay che copre l'header del sito incorporato -->
<iframe id="embeddedPage" src="https://elenagiulianomiami.com"></iframe>
<script>
document.getElementById('embeddedPage').onload = function () {
try {
const iframeContent = this.contentWindow.document;
// Modifica il tag viewport all'interno dell'iframe, se permesso
let viewportMeta = iframeContent.querySelector("meta[name='viewport']");
if (viewportMeta) {
viewportMeta.setAttribute("content", "width=1440");
}
} catch (error) {
console.error("Non รจ possibile accedere al contenuto dell'iframe:", error);
}
};
</script>
</body>
</html>