Added custom hex color input

This commit is contained in:
2021-05-02 18:04:47 +02:00
parent 53fe6c4b2d
commit fd44a84f6d
5 changed files with 50 additions and 1 deletions

View File

@@ -99,4 +99,12 @@ function rgbToHex(r, g, b) {
//##########################################################################################################################
const custom = document.getElementById("custom");
custom.addEventListener("keyup", function () {
if (custom.value.length == 7) {
document.getElementById("img").style.borderColor = custom.value;
}
});
renew();