Spaces:
Sleeping
Sleeping
Upload 3 files
Browse files- frontend/script.js +1 -1
- frontend/style.css +20 -48
frontend/script.js
CHANGED
|
@@ -66,4 +66,4 @@ document.getElementById("uploadForm").addEventListener("submit", async (e) => {
|
|
| 66 |
} finally {
|
| 67 |
loadingElement.classList.add("hidden");
|
| 68 |
}
|
| 69 |
-
});
|
|
|
|
| 66 |
} finally {
|
| 67 |
loadingElement.classList.add("hidden");
|
| 68 |
}
|
| 69 |
+
});
|
frontend/style.css
CHANGED
|
@@ -1,74 +1,46 @@
|
|
| 1 |
body {
|
| 2 |
font-family: Arial, sans-serif;
|
| 3 |
margin: 20px;
|
| 4 |
-
background-color: #f4f4f4;
|
| 5 |
-
text-align: center;
|
| 6 |
}
|
| 7 |
header {
|
| 8 |
background-color: rgb(91, 78, 226);
|
| 9 |
-
padding: 20px;
|
| 10 |
-
color: white;
|
| 11 |
-
font-size: 24px;
|
| 12 |
}
|
| 13 |
form {
|
| 14 |
margin-bottom: 20px;
|
| 15 |
-
background: white;
|
| 16 |
-
padding: 20px;
|
| 17 |
-
border-radius: 8px;
|
| 18 |
-
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
|
| 19 |
-
max-width: 500px;
|
| 20 |
-
margin: auto;
|
| 21 |
}
|
| 22 |
-
textarea
|
| 23 |
width: 100%;
|
| 24 |
-
|
| 25 |
margin-top: 10px;
|
| 26 |
-
border-radius: 5px;
|
| 27 |
-
border: 1px solid #ccc;
|
| 28 |
}
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
cursor: pointer;
|
| 36 |
-
margin-top: 10px;
|
| 37 |
}
|
| 38 |
-
|
| 39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
}
|
| 41 |
#loading {
|
| 42 |
color: #555;
|
| 43 |
font-style: italic;
|
| 44 |
margin: 10px 0;
|
| 45 |
-
display: none;
|
| 46 |
-
}
|
| 47 |
-
#loading.show {
|
| 48 |
-
display: block;
|
| 49 |
}
|
| 50 |
#error {
|
| 51 |
color: red;
|
| 52 |
margin: 10px 0;
|
| 53 |
-
font-weight: bold;
|
| 54 |
}
|
| 55 |
-
|
| 56 |
-
margin-
|
| 57 |
-
padding: 20px;
|
| 58 |
-
background: white;
|
| 59 |
-
border-radius: 8px;
|
| 60 |
-
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
|
| 61 |
-
max-width: 700px;
|
| 62 |
-
margin: auto;
|
| 63 |
}
|
| 64 |
-
#
|
| 65 |
-
max-width: 100%;
|
| 66 |
-
height: auto;
|
| 67 |
display: block;
|
| 68 |
-
margin:
|
| 69 |
-
|
| 70 |
-
border-radius: 8px;
|
| 71 |
-
}
|
| 72 |
-
.hidden {
|
| 73 |
-
display: none;
|
| 74 |
-
}
|
|
|
|
| 1 |
body {
|
| 2 |
font-family: Arial, sans-serif;
|
| 3 |
margin: 20px;
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
header {
|
| 6 |
background-color: rgb(91, 78, 226);
|
|
|
|
|
|
|
|
|
|
| 7 |
}
|
| 8 |
form {
|
| 9 |
margin-bottom: 20px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
}
|
| 11 |
+
textarea {
|
| 12 |
width: 100%;
|
| 13 |
+
height: 100px;
|
| 14 |
margin-top: 10px;
|
|
|
|
|
|
|
| 15 |
}
|
| 16 |
+
#result {
|
| 17 |
+
margin-top: 20px;
|
| 18 |
+
}
|
| 19 |
+
h1 {
|
| 20 |
+
color: rgb(160, 48, 48);
|
| 21 |
+
text-align: center;
|
|
|
|
|
|
|
| 22 |
}
|
| 23 |
+
#visualizationImage {
|
| 24 |
+
max-width: 100%;
|
| 25 |
+
height: auto;
|
| 26 |
+
display: block;
|
| 27 |
+
}
|
| 28 |
+
.hidden {
|
| 29 |
+
display: none;
|
| 30 |
}
|
| 31 |
#loading {
|
| 32 |
color: #555;
|
| 33 |
font-style: italic;
|
| 34 |
margin: 10px 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
}
|
| 36 |
#error {
|
| 37 |
color: red;
|
| 38 |
margin: 10px 0;
|
|
|
|
| 39 |
}
|
| 40 |
+
button {
|
| 41 |
+
margin-right: 10px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
}
|
| 43 |
+
#downloadLink {
|
|
|
|
|
|
|
| 44 |
display: block;
|
| 45 |
+
margin: 10px 0;
|
| 46 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|