Spaces:
Sleeping
Sleeping
imseldrith
commited on
Commit
•
a718485
1
Parent(s):
793ccd3
Update templates/index.html
Browse files- templates/index.html +18 -1
templates/index.html
CHANGED
@@ -82,6 +82,17 @@
|
|
82 |
.social-icon:hover {
|
83 |
color: #ff3366;
|
84 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
footer {
|
86 |
|
87 |
padding: 20px;
|
@@ -173,7 +184,7 @@
|
|
173 |
<option value="RATIO_3X2">3:2</option>
|
174 |
</select>
|
175 |
</div>
|
176 |
-
<button type="submit" class="btn btn-primary">Generate Image</button>
|
177 |
</form>
|
178 |
|
179 |
<div class="social-buttons">
|
@@ -191,6 +202,12 @@
|
|
191 |
</span>
|
192 |
</div>
|
193 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
194 |
<footer>
|
195 |
<p>Built with ❤️ by <a href="https://codegenius.me" style="color: red;">Ashiq Hussain Mir</a></p>
|
196 |
</footer>
|
|
|
82 |
.social-icon:hover {
|
83 |
color: #ff3366;
|
84 |
}
|
85 |
+
.generating-message {
|
86 |
+
text-align: center;
|
87 |
+
margin-bottom: 20px;
|
88 |
+
color: #ffffff;
|
89 |
+
display: none;
|
90 |
+
}
|
91 |
+
|
92 |
+
.disabled-button {
|
93 |
+
cursor: not-allowed;
|
94 |
+
opacity: 0.6;
|
95 |
+
}
|
96 |
footer {
|
97 |
|
98 |
padding: 20px;
|
|
|
184 |
<option value="RATIO_3X2">3:2</option>
|
185 |
</select>
|
186 |
</div>
|
187 |
+
<button type="submit" class="btn btn-primary" id="generate-button">Generate Image</button>
|
188 |
</form>
|
189 |
|
190 |
<div class="social-buttons">
|
|
|
202 |
</span>
|
203 |
</div>
|
204 |
</div>
|
205 |
+
<script>
|
206 |
+
function showGeneratingMessage() {
|
207 |
+
document.getElementById('generating-message').style.display = 'block';
|
208 |
+
document.getElementById('generate-button').classList.add('disabled-button');
|
209 |
+
}
|
210 |
+
</script>
|
211 |
<footer>
|
212 |
<p>Built with ❤️ by <a href="https://codegenius.me" style="color: red;">Ashiq Hussain Mir</a></p>
|
213 |
</footer>
|