BraydenMoore commited on
Commit
0beeee1
·
1 Parent(s): 86ac58d

Update styling

Browse files
Files changed (2) hide show
  1. web/static/script.js +3 -3
  2. web/static/styles.css +6 -5
web/static/script.js CHANGED
@@ -12,14 +12,14 @@ document.addEventListener("DOMContentLoaded", () => {
12
 
13
  const imageElement = document.createElement("img");
14
  imageElement.src = "static/loading.gif";
15
- imageElement.style.height = "50px";
16
- imageElement.style.width = "50px";
17
  imageElement.style.margin = 'auto';
18
  predictionContainer.appendChild(imageElement);
19
 
20
  const selectedFeature = featureSelect.value;
21
  const formData = new FormData();
22
- //thinkingText.innerText = "Loading the model, it might take a second...";
23
  formData.append("uploaded-image", file);
24
  formData.append("feature", selectedFeature);
25
  lastUploadedImage = file;
 
12
 
13
  const imageElement = document.createElement("img");
14
  imageElement.src = "static/loading.gif";
15
+ imageElement.style.height = "100px";
16
+ imageElement.style.width = "100px";
17
  imageElement.style.margin = 'auto';
18
  predictionContainer.appendChild(imageElement);
19
 
20
  const selectedFeature = featureSelect.value;
21
  const formData = new FormData();
22
+ thinkingText.innerText = "";
23
  formData.append("uploaded-image", file);
24
  formData.append("feature", selectedFeature);
25
  lastUploadedImage = file;
web/static/styles.css CHANGED
@@ -1,6 +1,6 @@
1
  body {
2
  font-family: 'Helvetica';
3
- margin-top: 40px;
4
  margin-left: 10px;
5
  margin-right: 10px;
6
  margin-bottom: 4000px;
@@ -22,9 +22,9 @@ body {
22
 
23
  .dropzone {
24
  margin-top: 20px;
25
- width: 95%;
26
  min-height: 100px;
27
- border: 2px dashed #000000;
28
  display: flex;
29
  justify-content: center;
30
  align-items: center;
@@ -35,7 +35,7 @@ body {
35
  .prediction-container {
36
  margin-top: 20px;
37
  min-height: 100px;
38
- width: 95%;
39
  border: 2px solid #000000;
40
  display: flex;
41
  justify-content: center;
@@ -54,10 +54,11 @@ body {
54
  /* The container for the predicted images */
55
  #predicted-images {
56
  margin: auto;
 
57
  display: grid;
58
  row-gap: 1%;
59
  column-gap: 1%;
60
- width: 95%;
61
  justify-content: center;
62
  align-items: center;
63
  grid-template-columns: repeat(3, 1fr);
 
1
  body {
2
  font-family: 'Helvetica';
3
+ margin-top: 50px;
4
  margin-left: 10px;
5
  margin-right: 10px;
6
  margin-bottom: 4000px;
 
22
 
23
  .dropzone {
24
  margin-top: 20px;
25
+ width: 90%;
26
  min-height: 100px;
27
+ border: 2px dashed #0b0f19;;
28
  display: flex;
29
  justify-content: center;
30
  align-items: center;
 
35
  .prediction-container {
36
  margin-top: 20px;
37
  min-height: 100px;
38
+ width: 90%;
39
  border: 2px solid #000000;
40
  display: flex;
41
  justify-content: center;
 
54
  /* The container for the predicted images */
55
  #predicted-images {
56
  margin: auto;
57
+ margin-top: 20px;
58
  display: grid;
59
  row-gap: 1%;
60
  column-gap: 1%;
61
+ width: 90%;
62
  justify-content: center;
63
  align-items: center;
64
  grid-template-columns: repeat(3, 1fr);