Skip to content

Commit

Permalink
add eventlistener for changing template
Browse files Browse the repository at this point in the history
  • Loading branch information
TRMSC committed Nov 7, 2023
1 parent 2f1a150 commit 0c51f0b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0c51f0b

Please sign in to comment.