Docfile commited on
Commit
1d94c90
·
verified ·
1 Parent(s): 043bfa7

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +23 -38
index.html CHANGED
@@ -4,57 +4,42 @@
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>Votre Titre</title>
 
7
  <style>
8
  body { margin: 0; overflow: hidden; }
9
- #popup-container {
10
- display: flex;
11
- align-items: center;
12
- justify-content: center;
13
- position: fixed;
14
- top: 0;
15
- left: 0;
16
  width: 100%;
17
  height: 100vh;
18
- background: rgba(0, 0, 0, 0.5);
19
- z-index: 1000;
20
  display: none;
21
  }
22
- #popup {
23
- background: #fff;
24
- padding: 20px;
25
- text-align: center;
26
- }
27
  </style>
28
  </head>
29
  <body>
30
 
31
- <div id="popup-container">
32
- <div id="popup">
33
- <p>Instructions pour l'utilisateur.</p>
34
- <button onclick="accepter()">Accepter</button>
35
- </div>
36
- </div>
37
-
38
- <div style="width: 100%; height: 100vh; overflow: hidden;">
39
- <iframe
40
- src="https://docfile-mycha.hf.space"
41
- frameborder="0"
42
- style="width: 100%; height: 100%;"
43
- id="main-iframe"
44
- ></iframe>
45
- </div>
46
 
47
  <script>
48
- function accepter() {
49
- document.getElementById("popup-container").style.display = "none";
50
- document.getElementById("main-iframe").style.display = "block";
51
- }
52
-
53
- // Affiche le popup au chargement de la page
54
- window.onload = function() {
55
- document.getElementById("popup-container").style.display = "flex";
56
- };
 
 
 
 
57
  </script>
58
 
 
 
 
 
 
 
59
  </body>
60
  </html>
 
 
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>Votre Titre</title>
7
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11">
8
  <style>
9
  body { margin: 0; overflow: hidden; }
10
+ #main-iframe {
 
 
 
 
 
 
11
  width: 100%;
12
  height: 100vh;
 
 
13
  display: none;
14
  }
 
 
 
 
 
15
  </style>
16
  </head>
17
  <body>
18
 
19
+ <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
  <script>
22
+ // Affiche la boîte de dialogue SweetAlert2
23
+ Swal.fire({
24
+ title: 'Instructions pour l\'utilisateur',
25
+ text: 'Cliquez sur "Accepter" pour continuer.',
26
+ icon: 'info',
27
+ confirmButtonText: 'Accepter',
28
+ allowOutsideClick: false
29
+ }).then((result) => {
30
+ if (result.isConfirmed) {
31
+ // Si l'utilisateur clique sur "Accepter", affiche l'iframe principal
32
+ document.getElementById("main-iframe").style.display = "block";
33
+ }
34
+ });
35
  </script>
36
 
37
+ <iframe
38
+ src="https://docfile-mycha.hf.space"
39
+ frameborder="0"
40
+ id="main-iframe"
41
+ ></iframe>
42
+
43
  </body>
44
  </html>
45
+