diff --git a/resources/js/chapter-progression.js b/resources/js/chapter-progression.js index 224fc5c..e5977a7 100644 --- a/resources/js/chapter-progression.js +++ b/resources/js/chapter-progression.js @@ -33,9 +33,6 @@ export default function observeChapterProgression() { targetBlock.focus({ preventScroll: true }); } function handleChapterIndicatorPosition(targetLink) { - // console.log('targetLink', targetLink); - // console.log('targetLink.offsetTop', targetLink.offsetTop); - // console.log('targetLink.offsetHeight', targetLink.offsetHeight); const targetPosition = targetLink.offsetTop; const targetHeight = targetLink.offsetHeight; let chapterIndicator = document.querySelector('.chapter_index__position-indicator'); @@ -44,8 +41,6 @@ export default function observeChapterProgression() { } function handleSetLinkActive(targetLink) { - // console.log('####################'); - // console.log(targetLink); const allLinks = document.querySelectorAll('.chapter_index__link'); allLinks.forEach((link) => { link.classList.remove('active'); @@ -73,7 +68,6 @@ export default function observeChapterProgression() { relatedChapterLink.classList.remove('active'); if (entry.isIntersecting) { - console.log('entry.isIntersecting', entry.isIntersecting); // Add 'active' class if observation target is inside viewport handleChapterIndicatorPosition(relatedChapterLink);