Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AakashGfude committed Nov 8, 2023
1 parent 5acea73 commit 2464d25
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/quantecon_book_theme/assets/scripts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,10 @@ document.addEventListener("DOMContentLoaded", function () {
// Create the Intersection Observer
const observer = new IntersectionObserver(handleIntersection, {
root: null, // observing intersections relative to the viewport
rootMargin: "0px 0px -80% 0px",
rootMargin: "0px 0px -80% 0px", // when the targetElement is 80% above the viewport
});

// Start observing the target element
// Start observing each target element
// Start observing the target elements
Array.from(targetElements).forEach((el) => observer.observe(el));

// Tooltips
Expand Down

1 comment on commit 2464d25

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.