This commit is contained in:
2019-05-19 12:02:22 +02:00
parent 0a4c8e2ebd
commit 83051ba022

View File

@@ -51,7 +51,9 @@
cell1.innerHTML = toHex(r);
cell2.innerHTML = toHex(g);
cell3.innerHTML = toHex(b);
cell4.innerHTML = "#" + toHex(r) + toHex(g) + toHex(b);
let farbcode = "#" + toHex(r) + toHex(g) + toHex(b);
cell4.innerHTML = farbcode;
cell4.style.backgroundColor = farbcode;
}
</script>