Skip to content

Commit

Permalink
remove intersectionobserver
Browse files Browse the repository at this point in the history
  • Loading branch information
dcnb committed Oct 4, 2024
1 parent 1e85421 commit c2a8a8a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions _includes/transcript/js/transcript-js.html
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,4 @@
window.addEventListener("scroll", throttleScrollCheck);
window.addEventListener('load', checkStickyAndUpdate);

const observer = new IntersectionObserver(
([e]) => e.target.classList.toggle("bg-info", e.intersectionRatio < 1),
{ threshold: [1] }
);

observer.observe(stickyElement);

</script>

0 comments on commit c2a8a8a

Please sign in to comment.