Formerly known as Alaska Hand-Elbow-Shoulder & Rhyneer Caylor Clinic.

Stephanie

document.addEventListener('DOMContentLoaded', function () { var personItems = document.querySelectorAll('.person-item'); personItems.forEach(function (item) { item.addEventListener('click', function () { var goToPage = item.getAttribute('data-go-to-page') === 'true'; var link = item.getAttribute('data-link'); if (goToPage && link) { // Redirect to the person's page if "go to page" is true window.location.href = link; } else { // Keep the existing popup functionality if "go to page" is false showPopupForPerson(item); // Your existing popup logic here } }); }); }); function showPopupForPerson(item) { // Your existing popup logic remains unchanged console.log('Showing popup for person'); }