Update index.html
Browse files- index.html +19 -0
index.html
CHANGED
|
@@ -22,6 +22,25 @@
|
|
| 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 |
+
|
| 36 |
+
window.addEventListener('load', () => {
|
| 37 |
+
dialog.showModal();
|
| 38 |
+
});
|
| 39 |
+
|
| 40 |
+
closeDialogButton.addEventListener('click', () => {
|
| 41 |
+
dialog.close();
|
| 42 |
+
});
|
| 43 |
+
</script>
|
| 44 |
<iframe src="https://xyplon.web.app/models"></iframe>
|
| 45 |
</body>
|
| 46 |
</html>
|