From 83051ba022ab991b17b6e6a7bc556f94502ae5d1 Mon Sep 17 00:00:00 2001 From: structix Date: Sun, 19 May 2019 12:02:22 +0200 Subject: [PATCH] Update --- uebung3/farbenlehre.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uebung3/farbenlehre.html b/uebung3/farbenlehre.html index 31efad7..9bb4319 100644 --- a/uebung3/farbenlehre.html +++ b/uebung3/farbenlehre.html @@ -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; }