mariam-tremble / index.html
Docfile's picture
Update index.html
043bfa7 verified
raw
history blame
1.39 kB
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Votre Titre</title>
<style>
body { margin: 0; overflow: hidden; }
#popup-container {
display: flex;
align-items: center;
justify-content: center;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background: rgba(0, 0, 0, 0.5);
z-index: 1000;
display: none;
}
#popup {
background: #fff;
padding: 20px;
text-align: center;
}
</style>
</head>
<body>
<div id="popup-container">
<div id="popup">
<p>Instructions pour l'utilisateur.</p>
<button onclick="accepter()">Accepter</button>
</div>
</div>
<div style="width: 100%; height: 100vh; overflow: hidden;">
<iframe
src="https://docfile-mycha.hf.space"
frameborder="0"
style="width: 100%; height: 100%;"
id="main-iframe"
></iframe>
</div>
<script>
function accepter() {
document.getElementById("popup-container").style.display = "none";
document.getElementById("main-iframe").style.display = "block";
}
// Affiche le popup au chargement de la page
window.onload = function() {
document.getElementById("popup-container").style.display = "flex";
};
</script>
</body>
</html>