1jQuery(document).ready(function ($) { 2 (function () { 3 if (typeof gsap === "undefined") return; 4 5 const btn = document.getElementById("btn-rappel"); 6 const tip = btn ? btn.querySelector(".tooltip") : null; 7 if (!btn || !tip) return; 8 9 let scrollTimer = null; 10 let isVisible = true; 11 12 function hideTooltip() { 13 if (!isVisible) return; 14 isVisible = false; 15 gsap.to(tip, { 16 opacity: 0, 17 y: 8, // léger glissement vers le bas 18 duration: 0.25, 19 ease: "power2.in", 20 onComplete: () => { 21 tip.style.visibility = "hidden"; 22 }, 23 }); 24 } 25 26 function showTooltip() { 27 if (isVisible) return; 28 isVisible = true; 29 tip.style.visibility = "visible"; 30 gsap.to(tip, { 31 opacity: 1, 32 y: 15, 33 duration: 0.4, 34 ease: "power2.out", 35 }); 36 } 37 38 window.addEventListener( 39 "scroll", 40 () => { 41 hideTooltip(); 42 clearTimeout(scrollTimer); 43 scrollTimer = setTimeout(showTooltip, 5000); // délai après arrêt du scroll 44 }, 45 { passive: true }, 46 ); 47 })(); 48});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.