Unknown Company

Registered Nurse

glastonbury, ct • Posted 6 days ago
Onsite Full Time General

1; if (!useHistoryBack) return; // Wire both the desktop link and mobile back button ['backToSearchLink', 'mobileBackLink'].forEach(function(id) { const el = document.getElementById(id); if (el) { el.addEventListener('click', function(e) { e.preventDefault(); history.back(); }); } }); })(); // Theme toggle functionality const themeToggle = document.getElementById('themeToggle'); const themeIcon = document.getElementById('themeIcon'); const body = document.body; // Check for saved theme preference or default to light mode const currentTheme = localStorage.getItem('theme') || 'light'; if (currentTheme === 'dark') { body.classList.add('dark-mode'); themeIcon.classList.remove('fa-moon'); themeIcon.classList.add('fa-sun'); } themeToggle.addEventListener('click', () => { body.classList.toggle('dark-mode'); const isDark = body.classList.contains('dark-mode'); localStorage.setItem('theme', isDark ? 'dark' : 'light'); themeIcon.classList.toggle('fa-moon'); themeIcon.classList.toggle('fa-sun'); });