Skip to Navigation Skip to Posts Skip to Content

Maks Fus Mickiewicz

758 posts

Maks Fus Mickiewicz
Previous Posts

Forum Round Up: London Innovator of the Year

Pick up your copy of The Nine To Five

An A-Z guide to hosting beautifully

There's no news like good news

Protein x Cannes Lions 2015

Come to Protein on Monday for a publishing workshop

Protein Audience Briefing 2015 Round Up

Twitter enters virtual reality

Feel virtual reality

Submit your content to The Five To Nine

Load More You've reached the end of the list

Want to go deeper?

Unlock 25+ years of cultural intelligence and get access to all our SEEDS, FORUMS, REPORTS & BRIEFINGS.

Become a MEMBER from £7/month
// Add an event listener for the scroll event on the window. window.addEventListener("scroll", () => { // Get the current scroll position. let scrollTop = window.scrollY; // Get the total height of the document. let docHeight = document.body.offsetHeight; // Get the height of the window. let winHeight = window.innerHeight; // Calculate the percentage of the page that has been scrolled. let scrollPercent = scrollTop / (docHeight - winHeight); let scrollPercentRounded = Math.round(scrollPercent * 100); // Try to open the popup if the visitor has scrolled more than 25% of the page and is not a member. if (scrollPercentRounded > 25) { openPopup(); } });