Update index.html
Browse files- index.html +21 -7
index.html
CHANGED
@@ -64,12 +64,19 @@
|
|
64 |
height: 33.3333%;
|
65 |
}
|
66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
#messageWindow {
|
68 |
margin: 0;
|
69 |
padding: 0;
|
70 |
-
|
71 |
}
|
72 |
|
|
|
73 |
#left,
|
74 |
#right {
|
75 |
height: 100%;
|
@@ -89,7 +96,7 @@
|
|
89 |
text-align: center;
|
90 |
}
|
91 |
|
92 |
-
#result>
|
93 |
transform-origin: top;
|
94 |
max-width: 100vw;
|
95 |
max-height: 100vh;
|
@@ -133,9 +140,9 @@
|
|
133 |
</div>
|
134 |
<div class="row">
|
135 |
<div class="col-lg-8 p-0 m-0 relative" id="edit">
|
136 |
-
<div class="row
|
137 |
</div>
|
138 |
-
<div id="messageWindow" class="row
|
139 |
<div id="left" class="col-3 p-0 m-0" style="height:133%;position:relative;top:-33%;">
|
140 |
<div class="p-0" style="height:100%">
|
141 |
<div class="row2 row2-25">
|
@@ -200,6 +207,10 @@
|
|
200 |
</div>
|
201 |
<p><u>η»εγ―ε
¨γ¦γγ£γγ·γ₯γ§ε¦ηγγγ΅γΌγγΌγ«γ―δΈειδΏ‘γγγΎγγγ</u></p>
|
202 |
<h6>Message Window</h6>
|
|
|
|
|
|
|
|
|
203 |
<div class="input-group">
|
204 |
<span class="input-group-text">TopColor</span>
|
205 |
<input type="color" class="form-control form-control-color" id="topColor" value="#AA6465">
|
@@ -311,9 +322,9 @@
|
|
311 |
}
|
312 |
}).then(canvas => {
|
313 |
result.textContent = "";
|
314 |
-
|
315 |
-
canvas.
|
316 |
-
|
317 |
});
|
318 |
}, 1);
|
319 |
}
|
@@ -397,6 +408,9 @@
|
|
397 |
f.textContent = 'body { font-family: "' + i.value.trim() + '"; }';
|
398 |
}
|
399 |
});
|
|
|
|
|
|
|
400 |
document.getElementById("textShadowToggle").addEventListener("click", function () {
|
401 |
this.classList.toggle("opacity-50");
|
402 |
if (this.classList.contains("opacity-50")) {
|
|
|
64 |
height: 33.3333%;
|
65 |
}
|
66 |
|
67 |
+
:root {
|
68 |
+
--messageWindowSize: 25%;
|
69 |
+
}
|
70 |
+
#emptySpace {
|
71 |
+
height: calc(100% - var(--messageWindowSize));
|
72 |
+
}
|
73 |
#messageWindow {
|
74 |
margin: 0;
|
75 |
padding: 0;
|
76 |
+
height: var(--messageWindowSize);
|
77 |
}
|
78 |
|
79 |
+
|
80 |
#left,
|
81 |
#right {
|
82 |
height: 100%;
|
|
|
96 |
text-align: center;
|
97 |
}
|
98 |
|
99 |
+
#result>img {
|
100 |
transform-origin: top;
|
101 |
max-width: 100vw;
|
102 |
max-height: 100vh;
|
|
|
140 |
</div>
|
141 |
<div class="row">
|
142 |
<div class="col-lg-8 p-0 m-0 relative" id="edit">
|
143 |
+
<div id="emptySpace" class="row p-0 m-0">
|
144 |
</div>
|
145 |
+
<div id="messageWindow" class="row p-0 m-0">
|
146 |
<div id="left" class="col-3 p-0 m-0" style="height:133%;position:relative;top:-33%;">
|
147 |
<div class="p-0" style="height:100%">
|
148 |
<div class="row2 row2-25">
|
|
|
207 |
</div>
|
208 |
<p><u>η»εγ―ε
¨γ¦γγ£γγ·γ₯γ§ε¦ηγγγ΅γΌγγΌγ«γ―δΈειδΏ‘γγγΎγγγ</u></p>
|
209 |
<h6>Message Window</h6>
|
210 |
+
<div class="input-group">
|
211 |
+
<span class="input-group-text">WindowSize</span>
|
212 |
+
<input type="range" class="form-control form-range" id="windowSize" value="25" step="1" min="10" max="100">
|
213 |
+
</div>
|
214 |
<div class="input-group">
|
215 |
<span class="input-group-text">TopColor</span>
|
216 |
<input type="color" class="form-control form-control-color" id="topColor" value="#AA6465">
|
|
|
322 |
}
|
323 |
}).then(canvas => {
|
324 |
result.textContent = "";
|
325 |
+
let i = document.createElement("img");
|
326 |
+
i.setAttribute("src", canvas.toDataURL('image/png'));
|
327 |
+
result.appendChild(i);
|
328 |
});
|
329 |
}, 1);
|
330 |
}
|
|
|
408 |
f.textContent = 'body { font-family: "' + i.value.trim() + '"; }';
|
409 |
}
|
410 |
});
|
411 |
+
document.getElementById("windowSize").addEventListener("change", function () {
|
412 |
+
document.documentElement.style.setProperty('--messageWindowSize', this.value + "%");
|
413 |
+
});
|
414 |
document.getElementById("textShadowToggle").addEventListener("click", function () {
|
415 |
this.classList.toggle("opacity-50");
|
416 |
if (this.classList.contains("opacity-50")) {
|