Spaces:
Running
Running
Update main.js
Browse files
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();
|