diff --git a/assets/boykissers/ace-boykisser.png b/assets/boykissers/ace-kisser.png similarity index 100% rename from assets/boykissers/ace-boykisser.png rename to assets/boykissers/ace-kisser.png diff --git a/assets/boykissers/bytedice.png b/assets/boykissers/bytedice.png new file mode 100644 index 0000000..f605a18 Binary files /dev/null and b/assets/boykissers/bytedice.png differ diff --git a/assets/boykissers/pan-boykisser.png b/assets/boykissers/pan-kisser.png similarity index 100% rename from assets/boykissers/pan-boykisser.png rename to assets/boykissers/pan-kisser.png diff --git a/assets/boykissers/trans-boykisser.png b/assets/boykissers/trans-kisser.png similarity index 100% rename from assets/boykissers/trans-boykisser.png rename to assets/boykissers/trans-kisser.png diff --git a/toys/license/index.html b/toys/license/index.html index e1b8f3e..606cee6 100644 --- a/toys/license/index.html +++ b/toys/license/index.html @@ -58,16 +58,15 @@ - -
+ +

Extra

@@ -77,6 +76,7 @@ license border radius pic border radius title gradient (2 colors + direction) or flag + license bg-image/bg-gradient --> @@ -84,7 +84,7 @@

Boykisser license

-
+

Byte Dice

diff --git a/toys/license/license.css b/toys/license/license.css index 75a9edd..f75e62e 100644 --- a/toys/license/license.css +++ b/toys/license/license.css @@ -12,9 +12,10 @@ grid-template-columns: repeat(2, auto); grid-template-rows: repeat(2, auto); } -#picContainer { +#picValue { width: 150px; height: 150px; + display: block; } #credits { position: absolute; diff --git a/toys/license/script.js b/toys/license/script.js index 292fc6f..66c73f4 100644 --- a/toys/license/script.js +++ b/toys/license/script.js @@ -46,10 +46,16 @@ function setSillyValue(value) { `; } -function setPictureValue() { +const picInput = document.getElementById("picInput") +const picValue = document.getElementById("picValue") +function setPictureValue() { + let src = picInput.value != "custom" ? `/assets/boykissers/${picInput.value}.png` : "" + picValue.src = src } +picInput.oninput = function() { setPictureValue() } + function prependZero(number) { return number < 10 ? "0" + number : number; } @@ -67,4 +73,8 @@ function onLoadLicense() { if (sillyInput) { setSillyValue(sillyInput.value); } + + if (picInput) { + setPictureValue() + } }