MisterProton commited on
Commit
0fb688e
·
verified ·
1 Parent(s): bd33d00

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +17 -0
index.html CHANGED
@@ -22,6 +22,23 @@
22
  </style>
23
  </head>
24
  <body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  <iframe src="https://xyplon.web.app/models"></iframe>
26
  </body>
27
  </html>
 
22
  </style>
23
  </head>
24
  <body>
25
+ <dialog id="myDialog" style="border: none; border-radius: 5px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); padding: 20px; max-width: 300px;">
26
+ <form method="dialog" style="position: relative;">
27
+ <button id="closeDialogButton" class="close-button" style="position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 18px; cursor: pointer;">✖</button>
28
+ <p style="margin: 20px 0 0;">Visit <a href="https://xyplon.web.app" target="_blank" style="color: #007BFF; text-decoration: none;">official website</a> for more tools and faster inference.</p>
29
+ </form>
30
+ </dialog>
31
+
32
+ <script>
33
+ const dialog = document.getElementById('myDialog');
34
+ const closeDialogButton = document.getElementById('closeDialogButton');
35
+ window.addEventListener('load', () => {
36
+ dialog.showModal();
37
+ });
38
+ closeDialogButton.addEventListener('click', () => {
39
+ dialog.close();
40
+ });
41
+ </script>
42
  <iframe src="https://xyplon.web.app/models"></iframe>
43
  </body>
44
  </html>