jjmandog commited on
Commit
18d5708
·
verified ·
1 Parent(s): 5ee1b8b

Now the settings button won’t work. Can you fix it - Follow Up Deployment

Browse files
Files changed (2) hide show
  1. index.html +20 -11
  2. prompts.txt +2 -1
index.html CHANGED
@@ -684,17 +684,26 @@ You: Your order will ship within 24 hours and typically arrives in 2-3 business
684
  trainingModal.classList.add('hidden');
685
  });
686
 
687
- // Settings modal
688
- const settingsModal = document.getElementById('settingsModal');
689
- const settingsBtn = document.getElementById('settingsBtn');
690
- const closeSettings = document.getElementById('closeSettings');
691
-
692
- settingsBtn.addEventListener('click', () => {
693
- settingsModal.classList.remove('hidden');
694
- });
695
-
696
- closeSettings.addEventListener('click', () => {
697
- settingsModal.classList.add('hidden');
 
 
 
 
 
 
 
 
 
698
  });
699
 
700
  // Training sections
 
684
  trainingModal.classList.add('hidden');
685
  });
686
 
687
+ // Settings modal functionality
688
+ document.addEventListener('DOMContentLoaded', function() {
689
+ const settingsModal = document.getElementById('settingsModal');
690
+ const settingsBtn = document.getElementById('settingsBtn');
691
+ const closeSettings = document.getElementById('closeSettings');
692
+
693
+ settingsBtn.addEventListener('click', () => {
694
+ settingsModal.classList.remove('hidden');
695
+ });
696
+
697
+ closeSettings.addEventListener('click', () => {
698
+ settingsModal.classList.add('hidden');
699
+ });
700
+
701
+ // Close when clicking outside modal
702
+ window.addEventListener('click', (event) => {
703
+ if (event.target === settingsModal) {
704
+ settingsModal.classList.add('hidden');
705
+ }
706
+ });
707
  });
708
 
709
  // Training sections
prompts.txt CHANGED
@@ -1,3 +1,4 @@
1
  When I try to call it gives this error. Call failed: Can't find variable: trillionClient
2
  I can’t
3
- I can’t make outgoing calls please fix this and test. Also the orange icon next to settings doesn’t work . Fix that as well. Improve the coding if you need to. Before finishing please test to make sure it all works
 
 
1
  When I try to call it gives this error. Call failed: Can't find variable: trillionClient
2
  I can’t
3
+ I can’t make outgoing calls please fix this and test. Also the orange icon next to settings doesn’t work . Fix that as well. Improve the coding if you need to. Before finishing please test to make sure it all works
4
+ Now the settings button won’t work. Can you fix it