From 0c51f0b3436f00e564fe38684dfb71b27776f6aa Mon Sep 17 00:00:00 2001 From: TRMSC Date: Tue, 7 Nov 2023 22:56:12 +0100 Subject: [PATCH] add eventlistener for changing template --- docs/src/script.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/src/script.js b/docs/src/script.js index 1f26c0b..963288a 100644 --- a/docs/src/script.js +++ b/docs/src/script.js @@ -105,6 +105,10 @@ listenEvents = () => { let textarea = document.getElementById('imagescene-url'); textarea.addEventListener('input', getValues); + // Update status when template was changed + let templateSelect = document.getElementById('imagescene-template'); + templateSelect.addEventListener('change', changeStatus); + // Update status when width input was changes let width = document.getElementById('imagescene-w'); width.addEventListener('input', changeStatus);