SenY commited on
Commit
dd8c2dd
1 Parent(s): 3b56e94

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +15 -11
index.html CHANGED
@@ -98,9 +98,12 @@
98
  #userInterface>* {
99
  width: 100%;
100
  height: 100%;
101
- text-align: center;
 
 
102
  background-color: rgba(0, 0, 0, 0.25);
103
  border: 1px dashed rgba(255, 255, 255, 0.5);
 
104
  }
105
 
106
 
@@ -221,14 +224,14 @@
221
  </div>
222
  </div>
223
  <div id="userInterface" class="text-light d-none">
224
- <div>Q-Save</div>
225
- <div>Q-Load</div>
226
- <div>Save</div>
227
- <div>Load</div>
228
- <div>Auto</div>
229
- <div>Skip</div>
230
- <div>Log</div>
231
- <div>Config</div>
232
  </div>
233
  </div>
234
  </div>
@@ -352,7 +355,7 @@
352
  el.style.fontSize = (el.parentNode.offsetHeight * document.querySelector("#fontSizeInput").value) + "px";
353
  });
354
  document.querySelectorAll("#userInterface >div").forEach(el => {
355
- el.style.fontSize = (el.parentNode.offsetHeight * 0.65) + "px";
356
  });
357
  //linear-gradient(rgba(170, 100, 101, 0.7), rgba(145, 152, 229, 0.9))
358
  let bg = "linear-gradient(rgba(" + hex2rgb(document.getElementById("topColor").value) + ", " + document.getElementById("topAlpha").value + "), rgba(" + hex2rgb(document.getElementById("btmColor").value) + ", " + document.getElementById("btmAlpha").value + "))";
@@ -522,6 +525,7 @@
522
  if (!this.classList.contains("opacity-50")) {
523
  document.documentElement.style.setProperty('--mainMassageHeight', "80%");
524
  document.getElementById("userInterface").classList.remove("d-none");
 
525
  createEditor();
526
  } else {
527
  document.documentElement.style.setProperty('--mainMassageHeight', "100%");
@@ -541,7 +545,7 @@
541
  });
542
  document.querySelectorAll("#userInterface > div").forEach(el => {
543
  el.addEventListener("click", function () {
544
- document.getElementById("render").click();
545
  });
546
  });
547
  </script>
 
98
  #userInterface>* {
99
  width: 100%;
100
  height: 100%;
101
+ display:flex;
102
+ align-items: center;
103
+ justify-content: center;
104
  background-color: rgba(0, 0, 0, 0.25);
105
  border: 1px dashed rgba(255, 255, 255, 0.5);
106
+ font-size: calc(clamp(100%, 1vh, 5vh))
107
  }
108
 
109
 
 
224
  </div>
225
  </div>
226
  <div id="userInterface" class="text-light d-none">
227
+ <div><div>Q-Save</div></div>
228
+ <div><div>Q-Load</div></div>
229
+ <div><div>Save</div></div>
230
+ <div><div>Load</div></div>
231
+ <div><div>Auto</div></div>
232
+ <div><div>Skip</div></div>
233
+ <div><div>Log</div></div>
234
+ <div><div>Config</div></div>
235
  </div>
236
  </div>
237
  </div>
 
355
  el.style.fontSize = (el.parentNode.offsetHeight * document.querySelector("#fontSizeInput").value) + "px";
356
  });
357
  document.querySelectorAll("#userInterface >div").forEach(el => {
358
+ //el.style.fontSize = (el.parentNode.offsetHeight * 0.65) + "px";
359
  });
360
  //linear-gradient(rgba(170, 100, 101, 0.7), rgba(145, 152, 229, 0.9))
361
  let bg = "linear-gradient(rgba(" + hex2rgb(document.getElementById("topColor").value) + ", " + document.getElementById("topAlpha").value + "), rgba(" + hex2rgb(document.getElementById("btmColor").value) + ", " + document.getElementById("btmAlpha").value + "))";
 
525
  if (!this.classList.contains("opacity-50")) {
526
  document.documentElement.style.setProperty('--mainMassageHeight', "80%");
527
  document.getElementById("userInterface").classList.remove("d-none");
528
+ document.querySelectorAll("#userInterface>*").forEach(el => el.classList.remove("d-none"));
529
  createEditor();
530
  } else {
531
  document.documentElement.style.setProperty('--mainMassageHeight', "100%");
 
545
  });
546
  document.querySelectorAll("#userInterface > div").forEach(el => {
547
  el.addEventListener("click", function () {
548
+ el.classList.add("d-none");
549
  });
550
  });
551
  </script>