Update index.html
Browse files- index.html +53 -19
index.html
CHANGED
|
@@ -152,6 +152,10 @@
|
|
| 152 |
justify-content: space-around;
|
| 153 |
align-items: center;
|
| 154 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
</style>
|
| 156 |
<style id="fontFamily">
|
| 157 |
body {
|
|
@@ -159,6 +163,7 @@
|
|
| 159 |
}
|
| 160 |
</style>
|
| 161 |
<style id="text-shadow">
|
|
|
|
| 162 |
#mainMassage input,
|
| 163 |
.shadow-text {
|
| 164 |
text-shadow: 1px -0px 0 rgba(0, 0, 0, 0.8), 1px 0px 0 rgba(0, 0, 0, 0.8), 1px 1px 0 rgba(0, 0, 0, 0.8), 0px 1px 0 rgba(0, 0, 0, 0.8), -1px -1px 0 rgba(0, 0, 0, 0.8), -1px 0px 0 rgba(0, 0, 0, 0.8), -1px -1px 0 rgba(0, 0, 0, 0.8);
|
|
@@ -177,6 +182,7 @@
|
|
| 177 |
<div class="row">
|
| 178 |
<div class="col-lg-7 p-0 m-0 relative" id="edit">
|
| 179 |
<div id="emptySpace" class="row p-0 m-0">
|
|
|
|
| 180 |
</div>
|
| 181 |
<div id="messageWindow" class="row">
|
| 182 |
<div class="col-12 p-0 m-0 h-100">
|
|
@@ -273,32 +279,30 @@
|
|
| 273 |
</div>
|
| 274 |
<h6>Window Color</h6>
|
| 275 |
<div class="input-group">
|
| 276 |
-
<span class="input-group-text">TopColor</span>
|
| 277 |
<input name="topColor" type="color" class="form-control form-control-color" id="topColor"
|
| 278 |
value="#000000">
|
| 279 |
-
|
| 280 |
-
|
| 281 |
-
<span class="input-group-text">TopAlpha</span>
|
| 282 |
<input name="topAlpha" type="range" class="form-control form-range" id="topAlpha" value="0.35"
|
| 283 |
step="0.01" max="1">
|
| 284 |
</div>
|
| 285 |
<div class="input-group">
|
| 286 |
-
<span class="input-group-text">BtmColor</span>
|
| 287 |
<input name="btmColor" type="color" class="form-control form-control-color" id="btmColor"
|
| 288 |
value="#9999EE">
|
| 289 |
-
|
| 290 |
-
|
| 291 |
-
<span class="input-group-text">BtmAlpha</span>
|
| 292 |
<input name="btmAlpha" type="range" class="form-control form-range" id="btmAlpha" value="0.45"
|
| 293 |
step="0.01" max="1">
|
| 294 |
</div>
|
| 295 |
<h6>Font</h6>
|
| 296 |
<div class="input-group">
|
| 297 |
-
<span class="input-group-text">font-family</span>
|
| 298 |
<input name="fontFamilyInput" type="text" class="form-control" id="fontFamilyInput" value="">
|
| 299 |
</div>
|
| 300 |
<div class="input-group">
|
| 301 |
-
<span class="input-group-text">font-size</span>
|
| 302 |
<input name="fontSizeInput" type="range" class="form-control form-range" id="fontSizeInput"
|
| 303 |
value="0.8" step="0.01" min="0.25" max="1">
|
| 304 |
</div>
|
|
@@ -313,18 +317,22 @@
|
|
| 313 |
</div>
|
| 314 |
<h6>Advanced</h6>
|
| 315 |
<div class="input-group">
|
| 316 |
-
<span class="input-group-text">WindowSize</span>
|
| 317 |
<input name="windowSize" type="range" class="form-control form-range" id="windowSize" value="25"
|
| 318 |
step="1" min="16" max="30">
|
| 319 |
-
<span class="input-group-text">Padding</span>
|
| 320 |
<input name="mainMessagePaddingSize" type="range" class="form-control form-range"
|
| 321 |
id="mainMessagePaddingSize" value="0" step="0.1" min="0" max="2">
|
| 322 |
</div>
|
| 323 |
<div class="input-group">
|
| 324 |
-
<span class="input-group-text">Render Scale</span>
|
| 325 |
<input name="renderScale" type="range" class="form-control form-range" id="renderScale"
|
| 326 |
value="2" step="0.5" min="1" max="4">
|
| 327 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 328 |
<div class="input-group">
|
| 329 |
<label for="upload">
|
| 330 |
<button id="resetStorage" type="button" class="btn btn-danger">ResetCookies</button>
|
|
@@ -338,7 +346,10 @@
|
|
| 338 |
<p>画像データは全てブラウザ上で処理されサーバーに送信されたりはしませんのでお好きな画像をお使いください。</p>
|
| 339 |
<p>AI生成された画像に限らず好きな画像を利用可能です。</p>
|
| 340 |
<p>生成される画像に関しては当方は一切権利を主張しませんので元画像の権利に問題が無ければ商用・非商用を問わず自由にご利用頂けます。</p>
|
| 341 |
-
<p>どのような使い方をされているのか見たいのでここの<a
|
|
|
|
|
|
|
|
|
|
| 342 |
<p>このソフトウェア(webアプリ、HTMLファイル、Javascript)そのものに対するライセンスは付与していないので転載・改変はご遠慮ください。</p>
|
| 343 |
<h2>基本的な使い方</h2>
|
| 344 |
<ul>
|
|
@@ -378,9 +389,18 @@
|
|
| 378 |
<li>
|
| 379 |
<ul>
|
| 380 |
<li>For Preview</li>
|
| 381 |
-
<li>
|
|
|
|
|
|
|
|
|
|
|
|
|
| 382 |
<li>Recommended</li>
|
| 383 |
-
<li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 384 |
</ul>
|
| 385 |
</li>
|
| 386 |
<li>Fake-UI</li>
|
|
@@ -393,7 +413,7 @@
|
|
| 393 |
<li>Advanced</li>
|
| 394 |
<li>
|
| 395 |
<ul>
|
| 396 |
-
<li>その他のちょっとややこしい設定</li>
|
| 397 |
<li>Window Size</li>
|
| 398 |
<li>
|
| 399 |
<ul>
|
|
@@ -412,6 +432,12 @@
|
|
| 412 |
<li>画像としてレンダリングする時の解像度設定。初期値のまま動かさないことを推奨。</li>
|
| 413 |
</ul>
|
| 414 |
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 415 |
<li>Reset Cookies</li>
|
| 416 |
<li>
|
| 417 |
<ul>
|
|
@@ -614,7 +640,7 @@
|
|
| 614 |
if (this.classList.contains("opacity-50")) {
|
| 615 |
document.getElementById("text-shadow").textContent = "";
|
| 616 |
} else {
|
| 617 |
-
document.getElementById("text-shadow").textContent = '#mainMassage input, .shadow-text {text-shadow: 1px -0px 0 rgba(0, 0, 0, 0.8), 1px 0px 0 rgba(0, 0, 0, 0.8), 1px 1px 0 rgba(0, 0, 0, 0.8), 0px 1px 0 rgba(0, 0, 0, 0.8), -1px -1px 0 rgba(0, 0, 0, 0.8), -1px 0px 0 rgba(0, 0, 0, 0.8), -1px -1px 0 rgba(0, 0, 0, 0.8);}';
|
| 618 |
}
|
| 619 |
});
|
| 620 |
document.getElementById("textShadowToggleB").addEventListener("click", function () {
|
|
@@ -624,7 +650,7 @@
|
|
| 624 |
if (this.classList.contains("opacity-50")) {
|
| 625 |
document.getElementById("text-shadow").textContent = "";
|
| 626 |
} else {
|
| 627 |
-
document.getElementById("text-shadow").textContent = '#mainMassage input, .shadow-text {-webkit-text-stroke: ' + strokeSize + 'px black;paint-order: stroke fill;}';
|
| 628 |
}
|
| 629 |
});
|
| 630 |
document.getElementById("userInterfaceToggle").addEventListener("click", function () {
|
|
@@ -641,6 +667,14 @@
|
|
| 641 |
}
|
| 642 |
});
|
| 643 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 644 |
|
| 645 |
document.querySelectorAll("input").forEach(el => {
|
| 646 |
let v = window.localStorage.getItem(el.name);
|
|
|
|
| 152 |
justify-content: space-around;
|
| 153 |
align-items: center;
|
| 154 |
}
|
| 155 |
+
|
| 156 |
+
.watermark {
|
| 157 |
+
opacity: 0.5;
|
| 158 |
+
}
|
| 159 |
</style>
|
| 160 |
<style id="fontFamily">
|
| 161 |
body {
|
|
|
|
| 163 |
}
|
| 164 |
</style>
|
| 165 |
<style id="text-shadow">
|
| 166 |
+
.watermark,
|
| 167 |
#mainMassage input,
|
| 168 |
.shadow-text {
|
| 169 |
text-shadow: 1px -0px 0 rgba(0, 0, 0, 0.8), 1px 0px 0 rgba(0, 0, 0, 0.8), 1px 1px 0 rgba(0, 0, 0, 0.8), 0px 1px 0 rgba(0, 0, 0, 0.8), -1px -1px 0 rgba(0, 0, 0, 0.8), -1px 0px 0 rgba(0, 0, 0, 0.8), -1px -1px 0 rgba(0, 0, 0, 0.8);
|
|
|
|
| 182 |
<div class="row">
|
| 183 |
<div class="col-lg-7 p-0 m-0 relative" id="edit">
|
| 184 |
<div id="emptySpace" class="row p-0 m-0">
|
| 185 |
+
<p class="watermark text-light text-end">https://huggingface.co/spaces/SenY/GalGameUI</p>
|
| 186 |
</div>
|
| 187 |
<div id="messageWindow" class="row">
|
| 188 |
<div class="col-12 p-0 m-0 h-100">
|
|
|
|
| 279 |
</div>
|
| 280 |
<h6>Window Color</h6>
|
| 281 |
<div class="input-group">
|
| 282 |
+
<span class="input-group-text bg-secondary text-light">TopColor</span>
|
| 283 |
<input name="topColor" type="color" class="form-control form-control-color" id="topColor"
|
| 284 |
value="#000000">
|
| 285 |
+
<div class="vr"></div>
|
| 286 |
+
<span class="input-group-text bg-secondary text-light">TopAlpha</span>
|
|
|
|
| 287 |
<input name="topAlpha" type="range" class="form-control form-range" id="topAlpha" value="0.35"
|
| 288 |
step="0.01" max="1">
|
| 289 |
</div>
|
| 290 |
<div class="input-group">
|
| 291 |
+
<span class="input-group-text bg-secondary text-light">BtmColor</span>
|
| 292 |
<input name="btmColor" type="color" class="form-control form-control-color" id="btmColor"
|
| 293 |
value="#9999EE">
|
| 294 |
+
<div class="vr"></div>
|
| 295 |
+
<span class="input-group-text bg-secondary text-light">BtmAlpha</span>
|
|
|
|
| 296 |
<input name="btmAlpha" type="range" class="form-control form-range" id="btmAlpha" value="0.45"
|
| 297 |
step="0.01" max="1">
|
| 298 |
</div>
|
| 299 |
<h6>Font</h6>
|
| 300 |
<div class="input-group">
|
| 301 |
+
<span class="input-group-text bg-secondary text-light">font-family</span>
|
| 302 |
<input name="fontFamilyInput" type="text" class="form-control" id="fontFamilyInput" value="">
|
| 303 |
</div>
|
| 304 |
<div class="input-group">
|
| 305 |
+
<span class="input-group-text bg-secondary text-light">font-size</span>
|
| 306 |
<input name="fontSizeInput" type="range" class="form-control form-range" id="fontSizeInput"
|
| 307 |
value="0.8" step="0.01" min="0.25" max="1">
|
| 308 |
</div>
|
|
|
|
| 317 |
</div>
|
| 318 |
<h6>Advanced</h6>
|
| 319 |
<div class="input-group">
|
| 320 |
+
<span class="input-group-text bg-secondary text-light">WindowSize</span>
|
| 321 |
<input name="windowSize" type="range" class="form-control form-range" id="windowSize" value="25"
|
| 322 |
step="1" min="16" max="30">
|
| 323 |
+
<span class="input-group-text bg-secondary text-light">Padding</span>
|
| 324 |
<input name="mainMessagePaddingSize" type="range" class="form-control form-range"
|
| 325 |
id="mainMessagePaddingSize" value="0" step="0.1" min="0" max="2">
|
| 326 |
</div>
|
| 327 |
<div class="input-group">
|
| 328 |
+
<span class="input-group-text bg-secondary text-light">Render Scale</span>
|
| 329 |
<input name="renderScale" type="range" class="form-control form-range" id="renderScale"
|
| 330 |
value="2" step="0.5" min="1" max="4">
|
| 331 |
</div>
|
| 332 |
+
<div class="input-group">
|
| 333 |
+
<button id="waterMarkToggle" type="button" class="btn btn-warning">WaterMark</button>
|
| 334 |
+
</div>
|
| 335 |
+
<hr>
|
| 336 |
<div class="input-group">
|
| 337 |
<label for="upload">
|
| 338 |
<button id="resetStorage" type="button" class="btn btn-danger">ResetCookies</button>
|
|
|
|
| 346 |
<p>画像データは全てブラウザ上で処理されサーバーに送信されたりはしませんのでお好きな画像をお使いください。</p>
|
| 347 |
<p>AI生成された画像に限らず好きな画像を利用可能です。</p>
|
| 348 |
<p>生成される画像に関しては当方は一切権利を主張しませんので元画像の権利に問題が無ければ商用・非商用を問わず自由にご利用頂けます。</p>
|
| 349 |
+
<p>どのような使い方をされているのか見たいのでここの<a
|
| 350 |
+
href="https://huggingface.co/spaces/SenY/GalGameUI">URL</a>付きで画像を掲載して頂いたり<a
|
| 351 |
+
href="https://twitter.com/user_vkff5833"
|
| 352 |
+
target="_blank">Twitter</a>のリプライや引用RTなどで教えて頂けると嬉しいです。
|
| 353 |
<p>このソフトウェア(webアプリ、HTMLファイル、Javascript)そのものに対するライセンスは付与していないので転載・改変はご遠慮ください。</p>
|
| 354 |
<h2>基本的な使い方</h2>
|
| 355 |
<ul>
|
|
|
|
| 389 |
<li>
|
| 390 |
<ul>
|
| 391 |
<li>For Preview</li>
|
| 392 |
+
<li>
|
| 393 |
+
<ul>
|
| 394 |
+
<li>text-shadowで8方向に1pxずつ置いてレンダリングしたもの。プレビュー画面ではこちらの方が綺麗に出る。</li>
|
| 395 |
+
</ul>
|
| 396 |
+
</li>
|
| 397 |
<li>Recommended</li>
|
| 398 |
+
<li>
|
| 399 |
+
<ul>
|
| 400 |
+
<li>-webkit-text-strokeをフォントサイズの10%で設定したもの。大抵の場合実際のレンダリングではこちらのほうが綺麗に出るがプレビューでは表示がおかしくなる。
|
| 401 |
+
</li>
|
| 402 |
+
</ul>
|
| 403 |
+
</li>
|
| 404 |
</ul>
|
| 405 |
</li>
|
| 406 |
<li>Fake-UI</li>
|
|
|
|
| 413 |
<li>Advanced</li>
|
| 414 |
<li>
|
| 415 |
<ul>
|
| 416 |
+
<li>その他のちょっとややこしい設定など</li>
|
| 417 |
<li>Window Size</li>
|
| 418 |
<li>
|
| 419 |
<ul>
|
|
|
|
| 432 |
<li>画像としてレンダリングする時の解像度設定。初期値のまま動かさないことを推奨。</li>
|
| 433 |
</ul>
|
| 434 |
</li>
|
| 435 |
+
<li>WaterMark</li>
|
| 436 |
+
<li>
|
| 437 |
+
<ul>
|
| 438 |
+
<li>右上のURL透かしのON・OFFを切り替えます。現時点では透かしをオフにすることに対する制限は特に設けていません。</li>
|
| 439 |
+
</ul>
|
| 440 |
+
</li>
|
| 441 |
<li>Reset Cookies</li>
|
| 442 |
<li>
|
| 443 |
<ul>
|
|
|
|
| 640 |
if (this.classList.contains("opacity-50")) {
|
| 641 |
document.getElementById("text-shadow").textContent = "";
|
| 642 |
} else {
|
| 643 |
+
document.getElementById("text-shadow").textContent = '.watermark #mainMassage input, .shadow-text {text-shadow: 1px -0px 0 rgba(0, 0, 0, 0.8), 1px 0px 0 rgba(0, 0, 0, 0.8), 1px 1px 0 rgba(0, 0, 0, 0.8), 0px 1px 0 rgba(0, 0, 0, 0.8), -1px -1px 0 rgba(0, 0, 0, 0.8), -1px 0px 0 rgba(0, 0, 0, 0.8), -1px -1px 0 rgba(0, 0, 0, 0.8);}';
|
| 644 |
}
|
| 645 |
});
|
| 646 |
document.getElementById("textShadowToggleB").addEventListener("click", function () {
|
|
|
|
| 650 |
if (this.classList.contains("opacity-50")) {
|
| 651 |
document.getElementById("text-shadow").textContent = "";
|
| 652 |
} else {
|
| 653 |
+
document.getElementById("text-shadow").textContent = '.watermark #mainMassage input, .shadow-text {-webkit-text-stroke: ' + strokeSize + 'px black;paint-order: stroke fill;}';
|
| 654 |
}
|
| 655 |
});
|
| 656 |
document.getElementById("userInterfaceToggle").addEventListener("click", function () {
|
|
|
|
| 667 |
}
|
| 668 |
});
|
| 669 |
|
| 670 |
+
document.getElementById("waterMarkToggle").addEventListener("click", function () {
|
| 671 |
+
this.classList.toggle("opacity-50");
|
| 672 |
+
if (this.classList.contains("opacity-50")) {
|
| 673 |
+
document.querySelectorAll(".watermark").forEach(el => el.classList.add("d-none"));
|
| 674 |
+
} else {
|
| 675 |
+
document.querySelectorAll(".watermark").forEach(el => el.classList.remove("d-none"));
|
| 676 |
+
}
|
| 677 |
+
});
|
| 678 |
|
| 679 |
document.querySelectorAll("input").forEach(el => {
|
| 680 |
let v = window.localStorage.getItem(el.name);
|