Skip to content

Commit 1a39f8a

Browse files
committed
remove: carousel autoplay feature
1 parent fcc52f8 commit 1a39f8a

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

js/team.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,6 @@ function initLeaderCarousel() {
156156
dots.forEach((d, i) => d.classList.toggle('active', i === currentIdx));
157157
const sectionLabel = cards[currentIdx].dataset.sectionLabel;
158158
if (label && sectionLabel) label.textContent = sectionLabel;
159-
if (typeof window.__syncTeamPopupFromLeaderCard === 'function') {
160-
window.__syncTeamPopupFromLeaderCard(cards[currentIdx]);
161-
}
162159
resetProgress();
163160
}
164161

@@ -354,13 +351,6 @@ function initTeamPopup() {
354351
);
355352
}
356353

357-
// Used by the leadership carousel so an open leadership popup tracks auto/manual slide changes.
358-
window.__syncTeamPopupFromLeaderCard = card => {
359-
if (!overlay.classList.contains('active')) return;
360-
if (overlay.dataset.popupSource !== 'leadership') return;
361-
openPopupFromCard(card, 'leadership');
362-
};
363-
364354
function stepCorePopup(dir) {
365355
const coreItems = [...document.querySelectorAll('[data-section="core"] .core-grid-item--has-popup')];
366356
if (!coreItems.length) return;

0 commit comments

Comments
 (0)