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

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +58 -17
index.html CHANGED
@@ -1,19 +1,60 @@
1
  <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
  <!DOCTYPE html>
2
+ <html lang="fr">
3
+ <head>
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>