Your Browser Is Currently Set To Block — Cookies
.cookie-warning p { margin: 0 0 10px 0; color: #666; font-size: 14px; line-height: 1.4; }
modal.addEventListener('click', (e) => { if (e.target === modal) modal.remove(); }); } your browser is currently set to block cookies
// Initialize after DOM is ready if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', checkAndNotify); } else { checkAndNotify(); } { if (e.target === modal) modal.remove()
// Get browser-specific instructions function getBrowserInstructions() { const userAgent = navigator.userAgent.toLowerCase(); } else { checkAndNotify()
// Main check and display logic function checkAndNotify() { // Check if user has dismissed the warning before const dismissed = localStorage.getItem('cookieWarningDismissed'); if (dismissed && Date.now() - parseInt(dismissed) < 24 * 60 * 60 * 1000) { return; // Don't show again for 24 hours if dismissed }
if (!areCookiesEnabled()) { const warningEl = document.getElementById('cookie-warning'); if (warningEl) { warningEl.classList.remove('hidden'); // Optional: Log for analytics console.warn('[Cookie Check] Cookies are blocked in this browser'); // You could send this to your analytics service if (typeof gtag !== 'undefined') { gtag('event', 'cookies_blocked', { 'event_category': 'user_preferences', 'event_label': navigator.userAgent }); } } } }





















