wip: working episode-container

This commit is contained in:
2025-07-24 11:16:22 -05:00
parent 2a9bacea8c
commit e39faa3398
12 changed files with 128 additions and 111 deletions

View File

@@ -16,8 +16,10 @@ export default class extends Controller {
});
if (window.location.hash) {
let targetElement = document.querySelector(window.location.hash);
targetElement.scrollIntoView({ behavior: 'smooth', block: 'start' });
targetElement.classList.add('animate__animated', 'animate__pulse', 'animate__faster');
if (targetElement) {
targetElement.scrollIntoView({ behavior: 'smooth', block: 'start' });
targetElement.classList.add('animate__animated', 'animate__pulse', 'animate__faster');
}
}
}