PageSourceSearch

https://greatergoodhealth.com/wp-content/themes/cardinalthemev2/js/appNt.js?ver=1789149968

js greatergoodhealth.com collected 2026-10-01 15:31:16 UTC 19,930 bytes, 11 lines download raw bytes

vendor: 4,501 bytes, lines 1-9
1// vendor.js
2
3/*!
4Waypoints - 4.0.1
5Copyright © 2011-2016 Caleb Troughton
6Licensed under the MIT license.
7https://github.com/imakewebthings/waypoints/blob/master/licenses.txt
8*/
9!function(){"use strict";var t=0,e={};function i(o){if(!o)throw new Error("No options passed to Waypoint constructor");if(!o.element)throw new Error("No element option passed to Waypoint constructor");if(!o.handler)throw new Error("No handler option passed to Waypoint constructor");this.key="waypoint-"+t,this.options=i.Adapter.extend({},i.defaults,o),this.element=this.options.element,this.adapter=new i.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=i.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=i.Context.findOrCreateByElement(this.options.context),i.offsetAliases[this.options.offset]&&(this.options.offset=i.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),e[this.key]=this,t+=1}i.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},i.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},i.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete e[this.key]},i.prototype.disable=function(){return this.enabled=!1,this},i.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},i.prototype.next=function(){return this.group.next(this)},i.prototype.previous=function(){return this.group.previous(this)},i.invokeAll=function(t){var i=[];for(var o in e)i.push(e[o]);for(var n=0,r=i.length;n<r;n++)i[n][t]()},i.destroyAll=function(){i.invokeAll("destroy")},i.disableAll=function(){i.invokeAll("disable")},i.enableAll=function(){for(var t in i.Context.refreshAll(),e)e[t].enabled=!0;return this},i.refreshAll=function(){i.Context.refreshAll()},i.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},i.viewportWidth=function(){return document.documentElement.clientWidth},i.adapters=[],i.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},i.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=i}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}var e=0,i={},o=window.Waypoint,n=window.onload;function r(t){this.element=t,this.Adapter=o.Adapter,this.adapter=new this.Adapter(t),this.key="waypoint-context-"+e,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},t.waypointContextKey=this.key,i[t.waypointContextKey]=this,e+=1,o.windowContext||(o.windowContext=!0,o.windowContext=new r(window)),this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}r.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},r.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.waypoints.horizontal),e=this.Adapter.isEmptyObject(this.waypoints.vertical),o=this.element==this.element.window;t&&e&&!o&&(this.adapter.off(".waypoints"),delete i[this.key])},r.prototype.createThrottledResizeHandler=function(){var t=this;function e(){t.handleResize(),t.didResize=!1}this.adapter.on("resize.waypoints",(function(){t.didResize||(t.didResize=!0,o.requestAnimationFrame(e))}))},r.prototype.createThrottledScrollHandler=function(){var t=this;function e(){t.handleScroll(),t.didScroll=!1}this.adapter.on("scroll.waypoints",(function(){t.didScroll&&!o.isTouch||(t.didScroll=!0,o.requestAnimationFrame(e))}))},r.prototype.handleResize=function(){o.Context.refreshAll()},r.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],n=o.newScroll>o.oldScroll?o.forward:o.backward;for(var r in this.waypoints[i]){var s=this.waypoints[i][r];if(null!==s.triggerPoint){var a=o.oldScroll<s.triggerPoint,l=o.newScroll>=s.triggerPoint;(a&&l||!a&&!l)&&(s.queueTrigger(n),t[s.group.id]=s.group)}}}for(var h in t)t[h].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}}
9,r.prototype.innerHeight=function(){return this.element==this.element.window?o.viewportHeight():this.adapter.innerHeight()},r.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkEmpty()},r.prototype.innerWidth=function(){return this.element==this.element.window?o.viewportWidth():this.adapter.innerWidth()},r.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,n=t.length;o<n;o++)t[o].destroy()},r.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),n={};for(var r in this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var s=t[r];for(var a in this.waypoints[r]){var l,h,p,c,u=this.waypoints[r][a],d=u.options.offset,f=u.triggerPoint,w=0,y=null==f;u.element!==u.element.window&&(w=u.adapter.offset()[s.offsetProp]),"function"==typeof d?d=d.apply(u):"string"==typeof d&&(d=parseFloat(d),u.options.offset.indexOf("%")>-1&&(d=Math.ceil(s.contextDimension*d/100))),l=s.contextScroll-s.contextOffset,u.triggerPoint=Math.floor(w+l-d),h=f<s.oldScroll,p=u.triggerPoint>=s.oldScroll,c=!h&&!p,!y&&(h&&p)?(u.queueTrigger(s.backward),n[u.group.id]=u.group):(!y&&c||y&&s.oldScroll>=u.triggerPoint)&&(u.queueTrigger(s.forward),n[u.group.id]=u.group)}}return o.requestAnimationFrame((function(){for(var t in n)n[t].flushTriggers()})),this},r.findOrCreateByElement=function(t){return r.findByElement(t)||new r(t)},r.refreshAll=function(){for(var t in i)i[t].refresh()},r.findByElement=function(t){return i[t.waypointContextKey]},window.onload=function(){n&&n(),r.refreshAll()},o.requestAnimationFrame=function(e){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t).call(window,e)},o.Context=r}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}var i={vertical:{},horizontal:{}},o=window.Waypoint;function n(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),i[this.axis][this.name]=this}n.prototype.add=function(t){this.waypoints.push(t)},n.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},n.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var o=this.triggerQueues[i],n="up"===i||"left"===i;o.sort(n?e:t);for(var r=0,s=o.length;r<s;r+=1){var a=o[r];(a.options.continuous||r===o.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},n.prototype.next=function(e){this.waypoints.sort(t);var i=o.Adapter.inArray(e,this.waypoints);return i===this.waypoints.length-1?null:this.waypoints[i+1]},n.prototype.previous=function(e){this.waypoints.sort(t);var i=o.Adapter.inArray(e,this.waypoints);return i?this.waypoints[i-1]:null},n.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},n.prototype.remove=function(t){var e=o.Adapter.inArray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},n.prototype.first=function(){return this.waypoints[0]},n.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},n.findOrCreate=function(t){return i[t.axis][t.name]||new n(t)},o.Group=n}(),function(){"use strict";var t=window.jQuery,e=window.Waypoint;function i(e){this.$element=t(e)}t.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],(function(t,e){i.prototype[e]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[e].apply(this.$element,t)}})),t.each(["extend","inArray","isEmptyObject"],(function(e,o){i[o]=t[o]})),e.adapters.push({name:"jquery",Adapter:i}),e.Adapter=i}(),function(){"use strict";var t=window.Waypoint;function e(e){return function(){var i=[],o=arguments[0];return e.isFunction(arguments[0])&&((o=e.extend({},arguments[1])).handler=arguments[0]),this.each((function(){var n=e.extend({},o,{element:this});"string"==typeof n.context&&(n.context=e(this).closest(n.context)[0]),i.push(new t(n))})),i}}window.jQuery&&(window.jQuery.fn.waypoint=e(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=e(window.Zepto))}();
10!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exp
10orts.counterUp=e():t.counterUp=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";n.r(e),n.d(e,"divideNumbers",(function(){return o})),n.d(e,"hasComma",(function(){return i})),n.d(e,"isFloat",(function(){return u})),n.d(e,"decimalPlaces",(function(){return l})),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.action,i=void 0===n?"start":n,u=e.duration,l=void 0===u?1e3:u,a=e.delay,c=void 0===a?16:a,d=e.lang,f=void 0===d?void 0:d;if("stop"!==i){if(r(t),/[0-9]/.test(t.innerHTML)){var s=o(t.innerHTML,{duration:l||t.getAttribute("data-duration"),lang:f||document.querySelector("html").getAttribute("lang")||void 0,delay:c||t.getAttribute("data-delay")});t._countUpOrigInnerHTML=t.innerHTML,t.innerHTML=s[0],t.style.visibility="visible",t.countUpTimeout=setTimeout((function e(){t.innerHTML=s.shift(),s.length?(clearTimeout(t.countUpTimeout),t.countUpTimeout=setTimeout(e,c)):t._countUpOrigInnerHTML=void 0}),c)}}else r(t)};var r=function(t){clearTimeout(t.countUpTimeout),t._countUpOrigInnerHTML&&(t.innerHTML=t._countUpOrigInnerHTML,t._
10countUpOrigInnerHTML=void 0),t.style.visibility=""},o=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.duration,r=void 0===n?1e3:n,o=e.delay,i=void 0===o?16:o,u=e.lang,l=void 0===u?void 0:u,a=r/i,c=t.toString().split(/(<[^>]+>|[0-9.][,.0-9]*[0-9]*)/),d=[],f=0;f<a;f++)d.push("");for(var s=0;s<c.length;s++)if(/([0-9.][,.0-9]*[0-9]*)/.test(c[s])&&!/<[^>]+>/.test(c[s])){var p=c[s],v=/[0-9]+,[0-9]+/.test(p);p=p.replace(/,/g,"");for(var g=/^[0-9]+\.[0-9]+$/.test(p),y=g?(p.split(".")[1]||[]).length:0,b=d.length-1,m=a;m>=1;m--){var T=parseInt(p/a*m,10);g&&(T=parseFloat(p/a*m).toFixed(y),T=parseFloat(T).toLocaleString(l)),v&&(T=T.toLocaleString(l)),d[b--]+=T}}else for(var M=0;M<a;M++)d[M]+=c[s];return d[d.length]=t.toString(),d},i=function(t){return/[0-9]+,[0-9]+/.test(t)},u=function(t){return/^[0-9]+\.[0-9]+$/.test(t)},l=function(t){return u(t)?(t.split(".")[1]||[]).length:0}}])}));
11var body=$("body"),win=$(window),mobileNavIcon=$("#hamburgerButton"),mobileNav=$(".nav--main__drawer"),navHeight=$(".nav--main").height(),mainSections=$(".main--sections"),textToClick=$(".section--search-hero .text"),dropdown=$(".section--search-hero .dropdown"),faqQuestion=$(".section--faq .question"),tabContent=$(".tab-content"),customFilterBtn=$(".custom-filter-button"),slickArrow=$(".tabs .slick-slider .slick-arrow");function mobileNavToggle(){mobileNavIcon.toggleClass("is-open"),mobileNav.toggleClass("is-open")}function mobileNavReset(){mobileNavIcon.removeClass("is-open"),mobileNav.removeClass("is-open")}function dropdownToggle(){dropdown.toggleClass("is-open")}function openATab(e,s){window.innerWidth;var o,t,i;for(t=document.getElementsByClassName("tabcontent"),o=0;o<t.length;o++)t[o].style.display="none";for(i=document.getElementsByClassName("tablink"),o=0;o<i.length;o++)i[o].className=i[o].className.replace(" active","");document.getElementById(s).style.display="block",e.currentTarget.className+=" active"}let IdContactForm,NameContactForm;$(document).ready((function(){function e(){$(".slider--content-switcher").each((function(){var e=$
11(this);e.hasClass("slick-initialized")||e.slick({arrows:!1,dots:!0,slidesToShow:1,slidesToScroll:1,mobileFirst:!0,responsive:[{breakpoint:1023,settings:"unslick"}]})}))}mobileNavIcon.click((function(){mobileNavToggle()})),textToClick.click((function(){dropdownToggle()})),faqQuestion.click((function(){$(this).parent().siblings().removeClass("expanded"),$(this).parent().siblings().find("#button").removeClass("expanded"),$(this).parent().siblings().find(".answer").slideUp(),$(this).toggleClass("expanded"),$(this).parent().find("#button").toggleClass("expanded"),$(this).parent().find(".answer").slideToggle()})),customFilterBtn.click((function(){$(this).siblings().removeClass("active"),$(this).addClass("active")})),win.on("resize",(function(){win.width()>=768&&mobileNavReset()})),$(".slider-on-mobile").slick({arrows:!1,dots:!0,slidesToShow:1,slidesToScroll:1,mobileFirst:!0,responsive:[{breakpoint:1023,settings:"unslick"}]}),$(".slider").slick({arrows:!1,dots:!0,slidesToShow:1,slidesToScroll:1}),$(".slider--logo").slick({arrows:!1,dots:!1,infinite:!0,autoplay:!0,autoplaySpeed:1500,slidesToShow:6,slidesToScroll:1,responsive:[{breakpoint:1440,settings:{arrows:!1,dots:!1,infinite:!0,autoplay:!0,autoplaySpeed:1500,slidesToShow:5,slidesToScroll:1}},{breakpoint:1280,settings:{arrows:!1,dots:!1,infinite:!0,autoplay:!0,autoplaySpeed:1500,slidesToShow:4,slidesToScroll:1}},{breakpoint:1024,settings:{arrows:!1,dots:!1,infinite:!0,autoplay:!0,autoplaySpeed:1500,slidesToShow:3,slidesToScroll:1}},{breakpoint:480,settings:{arrows:!1,dots:!1,infinite:!0,autoplay:!0,autoplaySpeed:1500,slidesToShow:2,slidesToScroll:1}}]}),$(".slider--stat-carousel").slick({arrows:!1,dots:!0,slidesToShow:3,slidesToScroll:3,responsive:[{breakpoint:991,settings:{arrows:!1,dots:!0,slidesToShow:2,slidesToScroll:2}},{breakpoint:768,settings:{arrows:!1,dots:!0,slidesToShow:1,slidesToScroll:1}}]}),$(".slider--team-carousel").slick({arrows:!1,dots:!0,slidesToShow:4,slidesToScroll:4,responsive:[{breakpoint:1200,settings:{arrows:!1,dots:!0,slidesToShow:3,slidesToScroll:3}},{breakpoint:1022,settings:{arrows:!1,dots:!0,slidesToShow:2,slidesToScroll:2}},{breakpoint:768,settings:{arrows:!1,dots:!0,slidesToShow:1,slidesToScroll:1}}]}),$(".slider--testimonials-carousel").slick({arrows:!1,dots:!0,slidesToShow:3,slidesToScroll:3,responsive:[{breakpoint:991,settings:{arrows:!1,dots:!0,slidesToShow:2,slidesToScroll:2}},{breakpoint:768,settings:{arrows:!1,dots:!0,slidesToShow:1,slidesToScroll:1}}]}),$(".slider__synced-content").slick({arrows:!1,dots:!0,asNavFor:".slider__synced-nav",slidesToShow:1,slidesToScroll:1,infinite:!0,draggable:!1}),$(".slider__synced-nav").slick({arrows:!1,dots:!1,asNavFor:".slider__synced-content",slidesToShow:4,draggable:!1,focusOnSelect:!0,variableWidth:!0,fade:!1,responsive:[{breakpoint:1023,settings:{arrows:!0,dots:!1,asNavFor:".slider__synced-content",slidesToShow:1,slidesToScroll:1,variableWidth:!1,fade:!0,prevArrow:"<button type='button' class='slick-prev pull-left'><img src='/wp-content/themes/cardinalthemev2/assets/arrow-1.png' alt='Previous Arrow' /></button>",nextArrow:"<button type='button' class='slick-next pull-right'><img src='/wp-content/themes/cardinalthemev2/assets/arrow-2.png' alt='Next Arrow' /></button>"}}]}),$(".slider__synced-content-noTabs").slick({arrows:!1,dots:!0,slidesToShow:5,slidesToScroll:1,infinite:!1,draggable:!0,autoplay:!1,autoplaySpeed:1800,fade:!1,variableWidth:!1,responsive:[{breakpoint:1550,settings:{slidesToShow:4,slidesToScroll:4}},{breakpoint:1023,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:800,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]}),$(".slider__synced-content-2").slick({arrows:!1,dots:!0,asNavFor:".slider__synced-nav-2",slidesToShow:1,slidesToScroll:1,infinite:!0,draggable:!1}),$(".slider__synced-nav-2").slick({arrows:!1,dots:!1,asNavFor:".slider__synced-content-2",slidesToShow:2,draggable:!1,focusOnSelect:!0,variableWidth:!0,fade:!1,responsive:[{breakpoint:1023,settings:{arrows:!0,dots:!1,asNavFor:".slider__synced-content-2",slidesToShow:1,slidesToScroll:1,variableWidth:!1,fade:!0,prevArrow:"<button type='button' class='slick-prev pull-left'><img src='/wp-content/themes/cardinalthemev2/assets/arrow-1.png' alt='Previous Arrow' /></button>",nextArrow:"<button type='button' class='slick-next pull-right'><img src='/wp-content/themes/cardinalthemev2/assets/arrow-2.png' alt='Next Arrow' /></button>"}}]}),$(".slider--video").slick({arrows:!1,dots:!0,infinite:!0,centerMode:!0,centerPadding:"60px",focusOnSelect:!0,slidesToShow:1,slidesToScroll:1}),$(".slider--logos").slick({arrows:!1,dots:!1,vertical:!0,slidesToShow:3,slidesToScroll:1,verticalSwiping:!1,autoplay:!0,autoplaySpeed:0,speed:8e3,cssEase:"linear",infinite:!0}),$(".slider--vertical").slick({arrows:!1,dots:!0,vertical:!0,slidesToShow:5,slidesToScroll:5,verticalSwiping:!0,autoplay:!0,autoplaySpeed:2e3}
11),$(".content-switcher").each((function(){var e=$(this),s=e.find(".content-switcher__track"),o=e.find(".content-switcher__nav-item"),t=e.find(".content-switcher__panel");function i(e){var i=o.eq(e);o.removeClass("active"),i.addClass("active"),s.css({top:i.position().top,height:i.outerHeight()}),t.removeClass("active"),t.eq(e).addClass("active")}if(o.on("click",(function(){i(o.index(this))})),o.length){var n=o.filter(".active");i(n.length?o.index(n[0]):0)}$(window).on("resize load",(function(){var e=o.filter(".active");e.length&&s.css({top:e.position().top,height:e.outerHeight()})}))})),e(),$(window).on("resize",(function(){$(window).width()<1023&&e()}))})),$(document).ready((function(){$((function(e){"use strict";var s=window.counterUp.default;e(".section .number, .stat-carousel .number").each((function(o,t){new Waypoint({element:e(this),handler:function(){s(t,{duration:1e3,delay:16}),this.destroy()},offset:"bottom-in-view"})}))}))})),$(document).ready((function(){$(".slider--video").click((function(){$(".slider--video .video").removeClass("play"),$(".slider--video .slick-active").addClass("play")}))})),$(document).ready((function(){if(tabContent.length>0){const e=document.getElementById("tabLink0");e&&(e.click(),tabContent.first().trigger("click"))}})),document.addEventListener("DOMContentLoaded",(function(){document.addEventListener("click",(function(e){let s=e.target;if(("BUTTON"===s.tagName||"A"===s.tagName||"INPUT"===s.tagName&&("submit"===s.type||"button"===s.type))&&s.closest("form")){let e=s.closest("form"),o=null!=IdContactForm&&""!=IdContactForm?IdContactForm:e.id,t=null!=NameContactForm&&""!=NameContactForm?NameContactForm:e.name;null!=o?analytics.track("Form Submitted",{form:o}):analytics.track("Form Submitted",{name:t})}}))}));

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.