-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
83 lines (79 loc) · 2.16 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="/public/apple-touch-icon.png"
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="/public/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/public/favicon-16x16.png"
/>
<link rel="manifest" href="/public/site.webmanifest" />
<link rel="stylesheet" href="styles.css" />
<title>SpecAI - AI image generating tool powered by Pollinations AI</title>
</head>
<body>
<div id="form-container">
<div id="image-container">
<div id="loading-spinner"></div>
</div>
<form onsubmit="return false;">
<div id="text-input-container">
<input
type="text"
id="text-input"
name="text-input"
placeholder="Insert your prompt..."
onkeydown="handleKeyDown(event)"
/>
<input
type="button"
id="submit-button"
value="Generate"
onclick="displayImage()"
/>
</div>
<p>Prompts anteriores</p>
<ul id="previous-prompts"></ul>
<span id="toggle-custom" onclick="toggleCustom()"
>Custom Options ✨</span
>
<div id="custom-options">
<input
type="text"
id="width-input"
class="custom-input"
placeholder="Enter width (e.g: 1280)"
/>
<input
type="text"
id="height-input"
class="custom-input"
placeholder="Enter height (e.g: 720)"
/>
<input
type="text"
id="seed-input"
class="custom-input"
placeholder="Enter seed (optional)"
/>
</div>
</form>
</div>
<script src="https://cdn.jsdelivr.net/npm/algoliasearch@4/dist/algoliasearch.umd.js"></script>
<script src="config.js"></script>
<script src="index.js"></script>
</body>
</html>