Run FP OurImpact CountUp script only when scrolled
authorLaury GvR <laury@gaslightmedia.com>
Mon, 12 Feb 2018 13:43:49 +0000 (08:43 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 12 Feb 2018 13:43:49 +0000 (08:43 -0500)
commite310ae5bf3ca20b17c3a2379ef27f9d93e5b125e
tree5eb756a76b4c7d7749096c7b79c65b350cb52060
parent4794cf4d10b01addbea299806ebf43839f5b17e4
Run FP OurImpact CountUp script only when scrolled

- Rather than counting up the numbers in Our Impact as soon as the
frontpage is loaded, this now only happens the first time the
relevant section is scrolled into view.

- Also added comments and removed test console logs.
functions.php
js/custom/pageSetup.js
parts/glm-blocks-our-impact.php