Skip to Navigation Skip to Posts Skip to Content

Sarah Pearson

52 posts

Sarah Pearson
TEAM tier Observations

Six to Start: Running The Game

Six To Start Keep You On Your Toes

Rules of Distraction

TEAM tier Observations

Design for Obesity

TEAM tier Observations

Anti-Social Behaviour

TEAM tier Observations

Where the Wild Things Go

TEAM tier Observations

Honest Policies

5 Every Day

Audience Survey 2014 Out Now

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(); } });