jahresbericht2017/assets/js/views/pages/home.js

1 line
731 B
JavaScript
Raw Permalink Normal View History

2024-01-12 13:52:51 +00:00
require(["skrollr","modernizr","waypoint","components/achievements","components/reports","components/chart","domready!"],function(e,n,o,t,r,c){let i=document.querySelector.bind(document);document.querySelectorAll.bind(document);n.touchevents||e.init({forceHeight:!1});let s=new t(i(".achievements"));new o({element:i(".achievements"),handler:e=>{"down"===e&&s.init()},offset:"70%"});new r(i(".reports"));new o({element:i(".reports"),handler:e=>{"down"===e&&i(".reports").classList.remove("loading")},offset:"60%"});let d=new c(i(".chart"));new o({element:i(".chart"),handler:e=>{"down"===e&&d.init()},offset:"60%"}),new o({element:i(".home__box"),handler:e=>{"down"===e&&i(".home__box").classList.add("comes-in")},offset:"80%"})});