1(function($){const $body=$('body');const $mainContainer=$body.find('.main-container');const $navSignUpCTA=$body.find('.signup a');const $testimonailBoxes=$body.find('.hp-testimonials').find('.hp-testimonial-box');const scope={};scope.signupPath='/start';scope.testimonials=[];scope.positions=[];scope.logos=['dole','worldblu','annies','habitat','ymca'];const manipulateDOM=function(){scope.signupPath='/start';scope.testimonials=[];scope.positions=[];scope.logos=['dole','worldblu','annies','habitat','ymca'];$testimonailBoxes.each(function(index,element){let author=$(this).find('.hp-testimonial-name').text().replace(',',',<br>');scope.testimonials[index]={subtitle:$(this).find('h3').text(),image:$(this).find('img').prop('outerHTML'),logo:$(this).find('.hp-testimonial-logo').addClass('wf-testimonial-logo').prop('outerHTML'),description:$(this).find('.hp-testimonial-decr').addClass('wf-testimonial-decr').prop('outerHTML'),author:author}});$mainContainer.after(homepageMarkup(scope));};const bindEventHandlers=function(){const $window=$(window);let scrollTop;setTimeout(function(){setPositions();scrollTop=$(document).scrollTop();let scrollPassStart=scrollTop>scope.positions['start'];let scrollPassStop=scrollTop>scope.positions['stop'];let $featureImgContainer=$('.wf-features-container').find('.wf-features-imgs-container');if(scrollPassStop){$featureImgContainer.addClass('wf-bottom');$featureImgContainer.removeClass('wf-fixed');}else if(scrollPassStart){$featureImgContainer.removeClass('wf-bottom');$featureImgContainer.addClass('wf-fixed');}else{$featureImgContainer.removeClass('wf-bottom');$featureImgContainer.removeClass('wf-fixed');}},700);$window.on('scroll.wf-initial-load',function(){scrollTop=$(document).scrollTop();scrollAnimation(scrollTop);});$window.smartresize(function(){setPositions();$window.on('scroll.wf-resize',function(){scrollTop=$(document).scrollTop();scrollAnimation(scrollTop);});});};const setPositions=function(){const $featureContainer=$('.wf-features-container');const $featureLastContent=$('.wf-feature').last();const navbarHeight=$('#navbar').outerHeight();const featurePositionOffset=170;const totalOffset=navbarHeight+featurePositionOffset;scope.positions['start']=$featureContainer.offset().top-navbarHeight;scope.positions['stop']=$featureLastContent.offset().top-navbarHeight-55;scope.positions['create']=$('.wf-feature[data-key="create"]').offset().top-totalOffset;scope.positions['set']=$('.wf-feature[data-key="set"]').offset().top-totalOffset;scope.positions['direct']=$('.wf-feature[data-key="direct"]').offset().top-totalOffset;scope.positions['monitor']=$('.wf-feature[data-key="monitor"]').offset().top-totalOffset;scope.positions['learn']=$('.wf-feature[data-key="learn"]').offset().top-totalOffset;};const scrollAnimation=function(scrollTop){const $featureContainer=$('.wf-features-container');let $featureImgContainer=$featureContainer.find('.wf-features-imgs-container');let $featureImgs=$featureContainer.find('.wf-features-img');let scrollPassStart=scrollTop>scope.positions['start'];let scrollPassStop=scrollTop>scope.positions['stop'];let scrollPassCreate=scrollTop>scope.positions['create'];let scrollPassSet=scrollTop>scope.positions['set'];let scrollPassDirect=scrollTop>scope.positions['direct'];let scrollPassMonitor=scrollTop>scope.positions['monitor'];let scrollPassLearn=scrollTop>scope.positions['learn'];if(scrollPassLearn){$featureImgs.removeClass('wf-active');$featureImgs.filter('[data-key="learn"]').addClass('wf-active');}else if(scrollPassMonitor){$featureImgs.removeClass('wf-active');$featureImgs.filter('[data-key="monitor"]').addClass('wf-active');}else if(scrollPassDirect){$featureImgs.removeClass('wf-active');$featureImgs.filter('[data-key="direct"]').addClass('wf-active');}else if(scrollPassSet){$featureImgs.removeClass('wf-active');$featureImgs.filter('[data-key="set"]').addClass('wf-active');}else if(scrollPassCreate){$featureImgs.removeClass('wf-active');$featureImgs.filter('[data-key="create"]').addClass('wf-active');} 2if(scrollPassStop){$featureImgContainer.addClass('wf-bottom');$featureImgContainer.removeClass('wf-fixed');}else if(scrollPassStart){$featureImgContainer.removeClass('wf-bottom');$featureImgContainer.addClass('wf-fixed');}else{$featureImgContainer.removeClass('wf-bottom');$featureImgContainer.removeClass('wf-fixed');}};const init=function(){bindEventHandlers();};
2init();})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.