privateuserh commited on
Commit
a4e411b
·
verified ·
1 Parent(s): 7076b44

Update main.js

Browse files
Files changed (1) hide show
  1. main.js +16 -0
main.js CHANGED
@@ -206,6 +206,22 @@ document.addEventListener('DOMContentLoaded', () => {
206
  // console.log('Settings updated:', userSettings); // You can re-enable this for testing
207
  });
208
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
209
 
210
  // --- INITIALIZATION ---
211
  fetchPoisAndCreateAREntities();
 
206
  // console.log('Settings updated:', userSettings); // You can re-enable this for testing
207
  });
208
  });
209
+ // --- Glasses Modal Open/Close ---
210
+ if (glassesBtn && glassesModal && closeGlassesModal) {
211
+ glassesBtn.addEventListener('click', () => {
212
+ glassesModal.classList.remove('hidden');
213
+ });
214
+
215
+ closeGlassesModal.addEventListener('click', () => {
216
+ glassesModal.classList.add('hidden');
217
+ });
218
+
219
+ glassesModal.addEventListener('click', (event) => {
220
+ if (event.target === glassesModal) {
221
+ glassesModal.classList.add('hidden');
222
+ }
223
+ });
224
+ }
225
 
226
  // --- INITIALIZATION ---
227
  fetchPoisAndCreateAREntities();