Update index.html
Browse files- index.html +61 -19
index.html
CHANGED
@@ -1,19 +1,61 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.0">
|
6 |
+
<title>CaslaQuartz Static</title>
|
7 |
+
<link rel="stylesheet" href="styles.css">
|
8 |
+
</head>
|
9 |
+
<body>
|
10 |
+
<div class="container">
|
11 |
+
<h1>CaslaQuartz Image Generator</h1>
|
12 |
+
|
13 |
+
<div class="tabs">
|
14 |
+
<button onclick="switchTab('text2img')" class="active">Text2Img</button>
|
15 |
+
<button onclick="switchTab('img2img')">Img2Img</button>
|
16 |
+
</div>
|
17 |
+
|
18 |
+
<!-- Text2Img Tab -->
|
19 |
+
<div id="text2img" class="tab-content">
|
20 |
+
<input type="text" id="prompt" placeholder="Enter a prompt...">
|
21 |
+
<select id="size">
|
22 |
+
<option value="1152x768">1152x768</option>
|
23 |
+
<option value="1024x1024" selected>1024x1024</option>
|
24 |
+
<option value="768x1152">768x1152</option>
|
25 |
+
<option value="Custom size">Custom size</option>
|
26 |
+
</select>
|
27 |
+
<input type="text" id="custom-size" placeholder="Width x Height (e.g., 1280x720)" style="display: none;">
|
28 |
+
<div id="product-groups"></div>
|
29 |
+
<button onclick="generateText2Img()">Generate</button>
|
30 |
+
</div>
|
31 |
+
|
32 |
+
<!-- Img2Img Tab -->
|
33 |
+
<div id="img2img" class="tab-content" style="display: none;">
|
34 |
+
<input type="file" id="image-upload">
|
35 |
+
<select id="position">
|
36 |
+
<option value="Wall">Wall</option>
|
37 |
+
<option value="Countertop">Countertop</option>
|
38 |
+
<option value="Floor">Floor</option>
|
39 |
+
<!-- Thêm các option khác từ mã gốc -->
|
40 |
+
</select>
|
41 |
+
<select id="size-img2img">
|
42 |
+
<option value="1152x768">1152x768</option>
|
43 |
+
<option value="1024x1024" selected>1024x1024</option>
|
44 |
+
<option value="768x1152">768x1152</option>
|
45 |
+
<option value="Custom size">Custom size</option>
|
46 |
+
</select>
|
47 |
+
<input type="text" id="custom-size-img2img" placeholder="Width x Height (e.g., 1280x720)" style="display: none;">
|
48 |
+
<div id="product-groups-img2img"></div>
|
49 |
+
<button onclick="generateImg2Img()">Generate</button>
|
50 |
+
</div>
|
51 |
+
|
52 |
+
<div id="progress" class="progress-container" style="display: none;">
|
53 |
+
<div class="progress-bar" style="width: 0%;"></div>
|
54 |
+
</div>
|
55 |
+
<p id="error" style="color: red; display: none;"></p>
|
56 |
+
<img id="output-image" style="display: none; max-width: 100%;">
|
57 |
+
</div>
|
58 |
+
|
59 |
+
<script src="script.js"></script>
|
60 |
+
</body>
|
61 |
+
</html>
|