1
0
mirror of https://git.topisto.net/tibo/template.git synced 2026-03-31 21:39:10 +00:00
This commit is contained in:
Thibaud
2025-06-02 13:40:19 +02:00
parent d3ac06439b
commit c225f20923
5 changed files with 63 additions and 57 deletions

View File

@@ -4,10 +4,10 @@ const handleSynthesisIntersection = function (entries) {
// Check if the element is intersecting the viewport
if (entry.isIntersecting) {
msgConsole('IntersectionObserver',"The synthesis is visible in the viewport");
if (typeof synthesisTopIsNowVisible === 'function') synthesisIsNowVisible(entry);
if (typeof synthesisIsNowVisible === 'function') synthesisIsNowVisible(entry);
} else {
msgConsole('IntersectionObserver',"The synthesis is invisible in the viewport");
if (typeof synthesisTopIsNowInvisible === 'function') synthesisIsNowInvisible(entry);
if (typeof synthesisIsNowInvisible === 'function') synthesisIsNowInvisible(entry);
}
});
}