@mitosbett | Willow
mitosbett
Send tips to @mitosbett
How much do you want to send?
Thank you!
const isScrollBottom = () => { const container = document.querySelector('.my-page-root__links-container'); const scrollTop = container?.scrollTop; const scrollHeight = container?.scrollHeight; const clientHeight = container?.clientHeight; return scrollTop + clientHeight >= scrollHeight; }; const interval = setInterval(() => { if (isScrollBottom()) { startUpsellInterval(); clearInterval(interval); } }, 100); function startUpsellInterval() { const upsellInterval = setInterval(() => { const upsell = document.querySelector('.upsell'); if (upsell && isScrollBottom()) { upsell.classList.remove('hidden'); upsell.classList.add('blur-in-animation') clearInterval(upsellInterval); } }, 10000); } function hide() { const upsell = document.querySelector('.upsell'); if (upsell) { upsell.classList.add('hidden'); } } function OptanonWrapper() { } window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-2SRTD5ZJEM'); !function(f,b,e,v,n,t,s) {if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)}; if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0'; n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0]; s.parentNode.insertBefore(t,s)}(window, document,'script', 'https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '1326569474171460'); fbq('track', 'PageView'); (function(w,d,t,r,u){var f,n,i;w[u]=w[u]||[],f=function(){var o={ti:"56342963"};o.q=w[u],w[u]=new UET(o),w[u].push("pageLoad")},n=d.createElement(t),n.src=r,n.async=1,n.onload=n.onreadystatechange=function(){var s=this.readyState;s&&s!=="loaded"&&s!=="complete"||(f(),n.onload=n.onreadystatechange=null)},i=d.getElementsByTagName(t)[0],i.parentNode.insertBefore(n,i)})(window,document,"script","//bat.bing.com/bat.js","uetq"); window.username = '@mitosbett'; var searchParams = new URLSearchParams(window.location.search); if (searchParams.get('v')) { window.history.replaceState({}, document.title, window.location.pathname); }
x server