Update AB/index.html
Browse files- AB/index.html +9 -11
AB/index.html
CHANGED
|
@@ -5,7 +5,8 @@
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.13.11/katex.min.css">
|
| 7 |
<link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@100&display=swap" rel="stylesheet">
|
| 8 |
-
|
|
|
|
| 9 |
body {
|
| 10 |
background-color: #121212;
|
| 11 |
color: #FFFFFF;
|
|
@@ -272,15 +273,13 @@ label[for="simple"], label[for="complex"] {
|
|
| 272 |
|
| 273 |
<button type="button" onclick="predict()">Generate </button> <!-- Changed to type="button" and added onclick handler -->
|
| 274 |
</form>
|
| 275 |
-
<div id="resultImage">
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
|
| 282 |
-
</a>
|
| 283 |
-
</div>
|
| 284 |
|
| 285 |
|
| 286 |
|
|
@@ -338,7 +337,6 @@ formData.set('version', version);
|
|
| 338 |
resultContainer.innerHTML = `<p>Oops! Something went wrong. Please try again later.</p>`;
|
| 339 |
}
|
| 340 |
|
| 341 |
-
|
| 342 |
} catch (error) {
|
| 343 |
console.error('Error converting image to line drawing:', error);
|
| 344 |
resultContainer.innerHTML = `<p>Oops! Something went wrong. Please try again later.</p>`;
|
|
|
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.13.11/katex.min.css">
|
| 7 |
<link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@100&display=swap" rel="stylesheet">
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" integrity="sha512-ztihjwR9kDkKOyp6iBBb8yuZCkz5+RE2KfoOq6x/TgHNiiRA2oG6MxR0CBnl/vHOrJWRwB2Cts/bUExZTfqjGw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
| 9 |
+
<style>
|
| 10 |
body {
|
| 11 |
background-color: #121212;
|
| 12 |
color: #FFFFFF;
|
|
|
|
| 273 |
|
| 274 |
<button type="button" onclick="predict()">Generate </button> <!-- Changed to type="button" and added onclick handler -->
|
| 275 |
</form>
|
| 276 |
+
<div id="resultImage">
|
| 277 |
+
<div id="loadingSpinner" style="display: none;"></div>
|
| 278 |
+
<div id="resultContainer"></div>
|
| 279 |
+
<a id="downloadLink" href="#" download="result_image.jpg" style="display: none;">
|
| 280 |
+
<i class="fas fa-download"></i>
|
| 281 |
+
</a>
|
| 282 |
+
</div>
|
|
|
|
|
|
|
| 283 |
|
| 284 |
|
| 285 |
|
|
|
|
| 337 |
resultContainer.innerHTML = `<p>Oops! Something went wrong. Please try again later.</p>`;
|
| 338 |
}
|
| 339 |
|
|
|
|
| 340 |
} catch (error) {
|
| 341 |
console.error('Error converting image to line drawing:', error);
|
| 342 |
resultContainer.innerHTML = `<p>Oops! Something went wrong. Please try again later.</p>`;
|