1/*! WOW - v0.1.9 - 2014-05-10 2* Copyright (c) 2014 Matthieu Aussaguel; Licensed MIT */(function(){var a,b,c=function(a,b){return function(){return a.apply(b,arguments)}};a=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in a)d=a[c],null!=d&&(b[c]=d);return b},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a}(),b=this.WeakMap||(b=function(){function a(){this.keys=[],this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;for(f=this.keys,b=d=0,e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,g;for(g=this.keys,c=e=0,f=g.length;f>e;c=++e)if(d=g[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}()),this.WOW=function(){function d(a){null==a&&(a={}),this.scrollCallback=c(this.scrollCallback,this),this.scrollHandler=c(this.scrollHandler,this),this.start=c(this.start,this),this.scrolled=!0,this.config=this.util().extend(a,this.defaults),this.animationNameCache=new b}return d.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0},d.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():document.addEventListener("DOMContentLoaded",this.start)},d.prototype.start=function(){var a,b,c,d;if(this.boxes=this.element.getElementsByClassName(this.config.boxClass),this.boxes.length){if(this.disabled())return this.resetStyle();for(d=this.boxes,b=0,c=d.length;c>b;b++)a=d[b],this.applyStyle(a,!0);return window.addEventListener("scroll",this.scrollHandler,!1),window.addEventListener("resize",this.scrollHandler,!1),this.interval=setInterval(this.scrollCallback,50)}},d.prototype.stop=function(){return window.removeEventListener("scroll",this.scrollHandler,!1),window.removeEventListener("resize",this.scrollHandler,!1),null!=this.interval?clearInterval(this.interval):void 0},d.prototype.show=function(a){return this.applyStyle(a),a.className=""+a.className+" "+this.config.animateClass},d.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},d.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),d.prototype.resetStyle=function(){var a,b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],e.push(a.setAttribute("style","visibility: visible;"));return e},d.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a},d.prototype.vendors=["moz","webkit"],d.prototype.vendorSet=function(a,b){var c,d,e,f;f=[];for(c in b)d=b[c],a[""+c]=d,f.push(function(){var b,f,g,h;for(g=this.vendors,h=[],b=0,f=g.length;f>b;b++)e=g[b],h.push(a[""+e+c.charAt(0).toUpperCase()+c.substr(1)]=d);return h}.call(this));return f},d.prototype.vendorCSS=function(a,b){var c,d,e,f,g,h;for(d=window.getComputedStyle(a),c=d.getPropertyCSSValue(b),h=this.vendors,f=0,g=h.length;g>f;f++)e=h[f],c=c||d.getPropertyCSSValue("-"+e+"-"+b);return c},d.prototype.animationName=function(a){var b;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=window.getComputedStyle(a).getPropertyValue("animation-name")}return"none"===b?"":b},d.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},d.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},d.prototype.scrollHandler=function(){return this.scrolled=!0},d.prototype.scrollCallback=function(){var a;return this.scrolled&&(this.scrolled=!1,this.boxes=function(){var b,c,d,e;for(d=this.boxes,e=[],b=0,c=d.length;c>b;b++)a=d[b],a&&(this.isVisible(a)?this.show(a):e.push(a));return e}.call(this),!this.boxes.length)?this.stop():void 0},d.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},d.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=window.pageYOffset,e=f+this.element.clientHeight-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},d.prototype.util=function(){return this._util||(this._util=new a)},d.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},d}()}).call(this); 3new WOW().init(); 4$(window).scroll(function(){ 5 var scroll = $(window).scrollTop(); 6 if (scroll >= 1) { 7 $('.main-head-wrap').addClass('header_fixed'); 8 } else { 9 $('.main-head-wrap').removeClass('header_fixed'); 10 } 11}); 12 13jQuery(document).ready(function($) { 14 jQuery('.svg-holder').click(function() { 15 jQuery('.svg-holder').removeClass('active-svg'); 16 17 var text = jQuery('h3',this).text(); 18 if( text.trim() == 'Body' ) { 19 jQuery('.left-video').addClass('show-video'); 20 jQuery('.left-video video')[0].play(); 21 22 jQuery('.right-video').removeClass('show-video'); 23 jQuery('.right-video video')[0].pause(); 24 } 25 if( text.trim() == 'Mind' ) { 26 jQuery('.left-video').removeClass('show-video'); 27 jQuery('.left-video video')[0].pause(); 28 29 jQuery('.right-video').addClass('show-video'); 30 jQuery('.right-video video')[0].play(); 31 } 32 jQuery(this).addClass('active-svg'); 33 }); 34 if( jQuery('.welcome-slider').length ) { 35 jQuery('.welcome-slider').slick({ 36 autoplay: true, 37 autoplaySpeed: 2500, 38 fade: true, 39 dots: false, 40 arrows: true, 41 speed: 1000 42 }); 43 } 44 45 if( jQuery('.pp-testimonials-content').length ) { 46 function cutParagraph(paragraph) { 47 // split the paragraph into an array of words 48 const words = paragraph.split(' '); 49 50 // slice the first 7 words and join them back into a string 51 const shortenedWords = words.slice(0, 40); 52 const shortenedParagraph = shortenedWords.join(' '); 53 54 // slice the remaining words and join them back into a string 55 const remainingWords = words.slice(40); 56 const remainingParagraph = remainingWords.join(' '); 57 58 // return an object with the shortened paragraph and the remaining words 59 return { 60 shortenedParagraph, 61 remainingWords: remainingParagraph 62 }; 63 } 64 65 jQuery('.pp-testimonials-content p').each(function() { 66 var text = cutParagraph(jQuery(this).text()); 67 var shortText = text.shortenedParagraph; 68 var longText = text.remainingWords; 69 jQuery(this).text(shortText); 70 if( longText.length > 0 ) { 71 jQuery(this).append('<span class="hiddenRest">'+longText+'</span><span class="read_more">... read more </span>') 72 } 73 }); 74 jQuery('.read_more').click(function() { 75 if( jQuery(this).parent().children('.hiddenRest').is(":visible") ) { 76 jQuery(this).parent().children('.hiddenRest').slideUp('slow').css('display', 'none'); 77 jQuery(this).text('... read more'); 78 } else { 79 jQuery(this).parent().children('.hiddenRest').slideDown('slow').css('display', 'inline'); 80 jQuery(this).text(' read less') 81 } 82 }); 83 } 84 if( jQuery('.central-testimonial-slider').length ) { 85 jQuery('.central-testimonial-slider').slick({ 86 autoplay: true, 87 dots: true, 88 slidesToShow: 3,
89 arrows: false, 90 responsive: [ 91 { 92 breakpoint: 1024, 93 settings: { 94 slidesToShow: 2, 95 } 96 }, 97 { 98 breakpoint: 880, 99 settings: { 100 slidesToShow: 1, 101 } 102 } 103 ] 104 }); 105 } 106 jQuery('.central-img-tabs .central-tab-item').click(function() { 107 var id_to_use = jQuery(this).attr('data-id'); 108 jQuery('.central-wrapper .central-tab').slideUp('fast'); 109 jQuery('.central-wrapper #'+id_to_use).parent().slideDown('fast'); 110 111 jQuery('.active-service-button').removeClass('active-service-button'); 112 jQuery(this).addClass('active-service-button'); 113 114 }); 115 116 // Check if the SVG element with ID "svg" exists and the window width is greater than 1024 117 if (document.querySelector("#svg") !== null && window.innerWidth > 1024) { 118 // Add event listener for mousemove 119 document.addEventListener("mousemove", (e) => { 120 // Calculate translation values based on mouse position 121 const translateX = parseInt((e.clientX - window.innerWidth / 2) / 20); 122 const translateY = parseInt((e.clientY - window.innerHeight / 2) / 20); 123 124 // Update the transform attribute of the second path element 125 document.querySelector("#svg path:last-of-type").style.transform = 126 "translate3d(" + translateX + "px," + translateY + "px,0)"; 127 }); 128 } 129 if( jQuery('#tipo').length ) { 130 var typed3 = new Typed('#tipo', { 131 strings: ['care for', 'listen to', 'treat and manage', 'work with', 'educate'], 132 typeSpeed: 70, 133 backSpeed: 40, 134 smartBackspace: true, // this is a default 135 loop: true 136 }); 137 } 138 139 // Options for the intersection observer 140 const options = { 141 root: null, // Use the viewport as the root 142 threshold: buildThresholdList() // Custom threshold list for more sensitive visibility detection 143 }; 144 145 // Build a custom threshold list for more sensitive visibility detection 146 function buildThresholdList() { 147 const thresholds = []; 148 for (let i = 0; i <= 1.0; i += 0.11) { 149 thresholds.push(i); 150 } 151 return thresholds; 152 } 153 154 // Callback function when the target intersects with the root 155 const callback = (entries, observer) => { 156 entries.forEach(entry => { 157 if (entry.isIntersecting) { 158 // Calculate the opacity based on the percentage of visibility 159 const opacity = entry.intersectionRatio; // Opacity directly proportional to visibility 160 // Apply the opacity to the target element 161 entry.target.style.opacity = opacity; 162 } else { 163 // If the target is not intersecting, set opacity to 0 164 entry.target.style.opacity = 0; 165 } 166 }); 167 }; 168 169 // Create a new IntersectionObserver with the callback function and options 170 const observer = new IntersectionObserver(callback, options); 171 172 // Select the target element 173 const target = document.querySelector('.central-welcome .dm-flex'); 174 const target2 = document.querySelector('.cta-content'); 175 // Observe the target element 176 if (target) { 177 observer.observe(target); 178 observer.observe(target2); 179 } 180 181 182 183}); 184 185jQuery(window).load(function() { 186 jQuery('.header-spacer').css('height',jQuery('.main-head-wrap').outerHeight()); 187}); 188 189jQuery(window).resize(function() { 190 jQuery('.header-spacer').css('height',jQuery('.main-head-wrap').outerHeight()); 191});
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.