From 5542b5e9a618fe6ddbc79ca5e06f07f2c0f4c767 Mon Sep 17 00:00:00 2001 From: Laurence Juden Date: Wed, 24 Aug 2022 20:55:40 +0200 Subject: [PATCH 1/4] Allow user to disable audio --- index.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index cbdecff9..077819e4 100644 --- a/index.html +++ b/index.html @@ -45,6 +45,7 @@
Advanced settings: [show]
+



@@ -183,7 +184,12 @@ async function makeImage() { btn.innerHTML = 'Make Image' btn.disabled = false; - playSound() + + const shouldPlaySound = document.querySelector('#sound_toggle').checked + + if (shouldPlaySound) { + playSound() + } if (!res) { return From 8e2074d29d77692ebfd8648b25a3ca7afce1565e Mon Sep 17 00:00:00 2001 From: Laurence Juden Date: Thu, 25 Aug 2022 16:52:17 +0200 Subject: [PATCH 2/4] Persist audio toggle setting --- index.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/index.html b/index.html index 077819e4..d100b25e 100644 --- a/index.html +++ b/index.html @@ -69,10 +69,20 @@