MisterProton
commited on
Commit
•
5c9a15e
1
Parent(s):
d671ed9
Update index.html
Browse files- index.html +43 -18
index.html
CHANGED
@@ -1,19 +1,44 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
</html>
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
6 |
+
<title>text to image models playground</title>
|
7 |
+
<style>
|
8 |
+
body, html {
|
9 |
+
margin: 0;
|
10 |
+
padding: 0;
|
11 |
+
height: 100%;
|
12 |
+
|
13 |
+
}
|
14 |
+
iframe {
|
15 |
+
position: absolute;
|
16 |
+
top: 0;
|
17 |
+
left: 0;
|
18 |
+
width: 100%;
|
19 |
+
height: 730px;
|
20 |
+
border: none;
|
21 |
+
}
|
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/generate"></iframe>
|
43 |
+
</body>
|
44 |
</html>
|