From 18fe82daddb7f0edd4129c02aee3763b109d8802 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Sat, 23 Aug 2025 07:07:48 +0100 Subject: [PATCH] Use built-in innerHTML function Signed-off-by: Marcus Noble --- src/index.html | 2 +- src/script.js | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/index.html b/src/index.html index 720dd96..6fac2bf 100644 --- a/src/index.html +++ b/src/index.html @@ -75,7 +75,7 @@
-
+
diff --git a/src/script.js b/src/script.js index 2f0c4ec..bb9ecd1 100644 --- a/src/script.js +++ b/src/script.js @@ -45,9 +45,6 @@ this.setAttribute('src', "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=="); } }, - asHTML: function(value) { - this.innerHTML = value; - }, setWidth: function(value) { this.style.width = `${value}px`; },