We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7e793b commit c8bc5d1Copy full SHA for c8bc5d1
1 file changed
script.js
@@ -337,3 +337,15 @@ closePopup.onclick = () => {
337
338
// Show popup on load
339
window.addEventListener("load", showPopup);
340
+
341
+// ---- SFX Toggle Button ----
342
+const sfxButton = document.getElementById("toggleSFX");
343
+if (sfxButton) {
344
+ sfxButton.onclick = () => {
345
+ sfxEnabled = !sfxEnabled;
346
+ sfxButton.textContent = `SFX: ${sfxEnabled ? "On" : "Off"}`;
347
+ if (sfxEnabled) clickSound.play();
348
+ addGlow(sfxButton);
349
+ };
350
+}
351
0 commit comments