1var $ = jQuery.noConflict(); 2var flag; 3(function ($) { 4 5 $('a[target="_blank"]').each(function() { 6 var $link = $(this); 7 var existingLabel = $link.attr('aria-label'); 8 9 if (existingLabel) { 10 if (existingLabel.toLowerCase().indexOf('opens in a new tab') === -1) { 11 $link.attr('aria-label', existingLabel + ' (opens in a new tab)'); 12 } 13 } else { 14 var linkText = $.trim($link.text()); 15 var label = linkText 16 ? linkText + ' (opens in a new tab)' 17 : 'Opens in a new tab'; 18 $link.attr('aria-label', label); 19 } 20 }); 21 22 23 $('#menu-footer-menu').attr('role', 'menu'); 24 $('svg').attr('role', 'presentation'); 25 26 stickTheHeader(); 27 jQuery('.enumenu_ul').responsiveMenu({ 28 'menuIcon_text': "Menu", 29 onMenuopen: function() {} 30 }); 31 jQuery(window).scroll(function() { 32 stickTheHeader(); 33 }); 34 35 jQuery(".menu-icon").on('click', function(e){ 36 if (jQuery(this).hasClass('active')) { 37 jQuery(".enumenu_ul").css("display","flex"); 38 } else { 39 jQuery(".enumenu_ul").css("display","none"); 40 } 41 }); 42 43 if(window.innerWidth<1023){ 44 jQuery('.header-nav .mob-open-link').clone().appendTo('.enumenu_ul') 45 } 46 47 // if (window.innerWidth < 991) { 48 // jQuery(".header-nav .mob-open-link").clone().prepand(".enumenu_ul"); 49 // } 50 51 jQuery(".map-pins a, .back-to-top").on('click', function(e) { 52 e.preventDefault(); 53 var target = jQuery(this).attr('href'); 54 jQuery('html, body').animate({ 55 scrollTop: jQuery(target).offset().top - myHeight - 135 56 }, 1000); 57 }); 58 59 var myHeight = jQuery(".site-header").outerHeight(); 60 // jQuery(".target-link").on('click', function(e) { 61 // e.preventDefault(); 62 // jQuery(".menu-icon").click(); 63 // var target = jQuery(this).attr('href'); 64 // jQuery('html, body').animate({ 65 // scrollTop: jQuery(target).offset().top - myHeight - 135 66 // }, 1000); 67 // }); 68 69 70 jQuery('.target-link a').click(function (e) { 71 //e.preventDefault(); 72 jQuery(".menu-icon").click(); 73 var target_ = this.hash.substr(1); 74 if (jQuery('#' + target_).length) { 75 jQuery('html, body').animate( 76 { 77 scrollTop: jQuery('#' + target_).offset().top - jQuery('.header-main').outerHeight(), 78 }, 79 1000 80 ); 81 return false; 82 } 83 }); 84 85 86 jQuery('.skip').click(function (e) { 87 var target_ = this.hash.substr(1); 88 console.log(target_); 89 90 if (jQuery('#' + target_).length) { 91 jQuery('html, body').animate( 92 { 93 scrollTop: jQuery('#' + target_).offset().top - jQuery('.header-main').outerHeight(), 94 }, 95 1000 96 ); 97 return false; 98 } 99 }); 100 101 102 103 104 // jQuery(".target-link").on('click', function(e) { 105 // //$('.enumenu_ul').hide(); 106 // $(".menu-icon").click() 107 // if (window.location.hash) { 108 // var hash = window.location.hash; 109 // if ($(hash).length) { 110 // $('html, body').animate({ 111 // scrollTop: $(hash).offset().top - myHeight - 135 112 // }, 900, 'swing'); 113 // } 114 // } 115 // }); 116 117 // jQuery(".back-to-top").on('click', function(e) { 118 // e.preventDefault(); 119 // var target = jQuery(this).attr('href'); 120 // jQuery('html, body').animate({ 121 // scrollTop: jQuery(target).offset().top - myHeight - 135 122 // }, 1200); 123 // }); 124 125 126 jQuery('.boom-popup-link').magnificPopup({ 127 type: 'inline', 128 midClick: true, 129 mainClass: 'mfp-fade' 130 }); 131 132 /*jQuery('.directions-list-wrap a, .directions-bottom-wrap a').magnificPopup({ 133 type: 'inline', 134 midClick: true, 135 mainClass: 'mfp-fade' 136 });*/ 137 $('.directions-list-wrap').magnificPopup({ 138 delegate: 'a', // child items selector, by clicking on it popup will open 139 type: 'inline', // Inline type for content in the same document 140 midClick: true, // Allow opening popup on middle mouse click 141 removalDelay: 300, // Delay in removing the popup 142 mainClass: 'mfp-fade', // Class for fade effect, you can use 'mfp-move-horizontal' for sliding 143 gallery: { 144 enabled: true, // Enable gallery mode
145 navigateByImgClick: true, // Allow navigating by clicking the image 146 preload: [0,1] // Preload previous and next images 147 } 148 }); 149 150 $(document).on('click', 'div.mfp-content .directions-nav-rt .next-click', function(event){ event.preventDefault(); $.magnificPopup.instance.next(); }); 151 $(document).on('click', 'div.mfp-content .directions-nav-lt .prev-click', function(event){ event.preventDefault(); $.magnificPopup.instance.prev(); }); 152 153 jQuery('.image-slider').slick({ 154 dots: false, 155 infinite: false, 156 speed: 300, 157 slidesToShow: 3, 158 slidesToScroll: 1, 159 prevArrow: $('.slickPrev'), 160 nextArrow: $('.slickNext'), 161 responsive: [ 162 { 163 breakpoint: 600, 164 settings: { 165 slidesToShow: 2, 166 slidesToScroll: 1 167 } 168 }, 169 { 170 breakpoint: 480, 171 settings: { 172 slidesToShow: 1, 173 slidesToScroll: 1 174 } 175 } 176 // You can unslick at a given breakpoint now by adding: 177 // settings: "unslick" 178 // instead of a settings object 179 ] 180 }); 181 jQuery('.next-button').click(function(){ 182 jQuery('.image-slider').slick('slickNext'); 183 }) 184 jQuery('.prev-button').click(function(){ 185 jQuery('.image-slider').slick('slickPrev'); 186 }) 187 188 // Visit slider JS start here 189 jQuery('.slider-single').slick({ 190 slidesToShow: 1, 191 slidesToScroll: 1, 192 arrows: false, 193 fade: false, 194 adaptiveHeight: true, 195 infinite: false, 196 useTransform: true, 197 speed: 400, 198 fade:true, 199 prevArrow: $('.prev'), 200 nextArrow: $('.next'), 201 //cssEase: 'cubic-bezier(0.77, 0, 0.18, 1)', 202 }); 203 jQuery('.slider-nav') 204 .on('init', function(event, slick) { 205 jQuery('.slider-nav .slick-slide.slick-current').addClass('is-active'); 206 }) 207 .slick({ 208 slidesToShow: 6, 209 slidesToScroll:6, 210 dots: false, 211 arrows:false, 212 focusOnSelect: false, 213 infinite: false, 214 responsive: [{ 215 breakpoint: 1024, 216 settings: { 217 slidesToShow: 5, 218 slidesToScroll: 5, 219 } 220 }, { 221 breakpoint: 640, 222 settings: { 223 slidesToShow: 4, 224 slidesToScroll: 4, 225 } 226 }, { 227 breakpoint: 420, 228 settings: { 229 slidesToShow: 3, 230 slidesToScroll: 3, 231 } 232 }] 233 }); 234 235 jQuery('.slider-single').on('afterChange', function(event, slick, currentSlide) { 236 jQuery('.slider-nav').slick('slickGoTo', currentSlide); 237 var currrentNavSlideElem = '.slider-nav .slick-slide[data-slick-index="' + currentSlide + '"]'; 238 jQuery('.slider-nav .slick-slide.is-active').removeClass('is-active'); 239 jQuery(currrentNavSlideElem).addClass('is-active'); 240 }); 241 242 jQuery('.slider-nav').on('click', '.slick-slide', function(event) { 243 event.preventDefault(); 244 var goToSingleSlide = jQuery(this).data('slick-index'); 245 246 jQuery('.slider-single').slick('slickGoTo', goToSingleSlide); 247 }); 248 jQuery('.left').click(function(){ 249 jQuery('.slider-single').slick('slickPrev'); 250 }) 251 252 jQuery('.right').click(function(){ 253 jQuery('.slider-single').slick('slickNext'); 254 }) 255 // Visit slider JS end here 256 257 // Timeline slider JS start here 258 jQuery('.timeline-single').slick({ 259 slidesToShow: 1, 260 slidesToScroll: 1, 261 arrows: false, 262 fade: false, 263 adaptiveHeight: true, 264 infinite: false, 265 useTransform: true, 266 speed: 400, 267 fade:true, 268 prevArrow: $('.slickPrev'), 269 nextArrow: $('.slickNext'), 270 //cssEase: 'cubic-bezier(0.77, 0, 0.18, 1)', 271 }); 272 jQuery('.timeline-nav') 273 .on('init', function(event, slick) { 274 jQuery('.timeline-nav .slick-slide.slick-current').addClass('is-active'); 275 }) 276 .slick({ 277 slidesToShow: 5, 278 slidesToScroll:1, 279 dots: false, 280 arrows:false, 281 focusOnSelect: false, 282 infinite: false, 283 //centerMode: true, 284 //variableWidth:true, 285 // centerPadding:0, 286 responsive: [{ 287 breakpoint: 1024, 288 settings: { 289 slidesToShow: 3, 290 slidesToScroll: 1, 291 } 292 }, { 293 breakpoint: 768, 294 settings: { 295 slidesToShow: 3, 296 slidesToScroll: 1, 297 } 298 }, { 299 breakpoint: 640, 300 settings: { 301 slidesToShow: 2, 302 slidesToScroll: 1, 303 } 304 }, { 305 breakpoint: 420, 306 settings: { 307 slidesToShow: 2, 308 slidesToScroll: 1, 309 } 310 }] 311 }); 312 313 jQuery('.timeline-single').on('afterChange', function(event, slick, currentSlide) { 314 jQuery('.timeline-nav').slick('slickGoTo', currentSlide); 315 var currrentNavSlideElem = '.timeline-nav .slick-slide[data-slick-index="' + currentSlide + '"]'; 316 jQuery('.timeline-nav .slick-slide.is-active').removeClass('is-active'); 317 jQuery(currrentNavSlideElem).addClass('is-active'); 318 }); 319 320 jQuery('.timeline-nav').on('click', '.slick-slide', function(event) { 321 event.preventDefault(); 322 var goToSingleSlide = jQuery(this).data('slick-index'); 323 324 jQuery('.timeline-single').slick('slickGoTo', goToSingleSlide); 325 }); 326 327 jQuery('.timeline-left').click(function(){ 328 jQuery('.timeline-single').slick('slickPrev'); 329 }) 330 331 jQuery('.timeline-right').click(function(){ 332 jQuery('.timeline-single').slick('slickNext'); 333 }) 334 // Visit slider JS end here 335 336 337 // search-form js start 338 jQuery('.search-toggle').addClass('closed'); 339 jQuery('.search-toggle .search-icon').click(function (e) { 340 if (jQuery('.search-toggle').hasClass('closed')) { 341 jQuery('.search-toggle').removeClass('closed').addClass('opened'); 342 jQuery('.search-toggle, .search-container').addClass('opened'); 343 jQuery('#search-terms').focus(); 344 } else { 345 jQuery('.search-toggle').removeClass('opened').addClass('closed'); 346 jQuery('.search-toggle, .search-container').removeClass('opened'); 347 } 348 }); 349 350 jQuery('img.svg-img').each(function () { 351 var $img = jQuery(this); 352 var imgID = $img.attr('id'); 353 var imgClass = $img.attr('class'); 354 var imgURL = $img.attr('src'); 355 jQuery.get( 356 imgURL, 357 function (data) { 358 var $svg = jQuery(data).find('svg'); 359 if (typeof imgID !== 'undefined') { 360 $svg = $svg.attr('id', imgID); 361 } 362 if (typeof imgClass !== 'undefined') { 363 $svg = $svg.attr('class', imgClass + ' replaced-svg'); 364 } 365 $svg = $svg.removeAttr('xmlns:a'); 366 $img.replaceWith($svg); 367 }, 368 'xml' 369 ); 370 });
371 // Image to SVG path generate JS END 372 373 374 //FAQs accordion START 375 376 //jQuery('.faq-main ul li:first').toggleClass('open'); 377 //jQuery('.faq-block .faq-desc:first').show(); 378 jQuery('.faq-main ul li').click(function(e) { 379 jQuery(this).find('.faq-desc').slideToggle(300); 380 jQuery(this).toggleClass('open'); 381 jQuery(this).siblings('.faq-main ul li').removeClass('open'); 382 jQuery(this).siblings('.faq-main ul li').find('.faq-desc').slideUp(300); 383 }); 384 //FAQs accordion END 385 386 // TAB JS start here 387 jQuery('#plan_tabs').easyResponsiveTabs({ 388 type: 'default', 389 width: 'auto', 390 fit: true, 391 css3animation: 'animated fadeInLeft', 392 removeHashfrmUrl: true, 393 closed: 'accordion', // Start closed if in accordion view 394 // activate: function() { // Callback function if tab is switched 395 // $('.horizonal-logo-slider .logo-slider').slick('setPosition'); 396 // } 397 }); 398 // TAB JS end here 399 400 jQuery('.person-list .content-block p:nth-child(n+4)').hide(); 401 jQuery('.read-link').on('click', function(e) { 402 e.preventDefault(); 403 jQuery(this).closest('.person-list .content-block').find('p:nth-child(n+4)').slideToggle(); 404 jQuery(this).parent().toggleClass('show-content'); 405 }); 406 407 408})(jQuery); 409 410// equalHeight js start here 411function equalHeight() { 412 let $equalize = [ 413 jQuery('.everything-swiper .swiper-slide .swiper-content') 414 ]; 415 416 for (let i = 0; i < $equalize.length; i++) { 417 if ($equalize[i].length) { 418 let maxHeight = 0; 419 420 $equalize[i].css('height', ''); 421 $equalize[i].each(function (j, el) { 422 let $equalizer_el = jQuery(el); 423 maxHeight = jQuery(this).outerHeight(true) > maxHeight ? $equalizer_el.outerHeight(true) : maxHeight; 424 }); 425 $equalize[i].height(maxHeight); 426 } 427 } 428} 429jQuery(window).on('load', function () { 430 equalHeight(); 431 432 var target_ = window.location.hash; 433 if (target_ != '') { 434 if ($(target_).length) { 435 window.scrollTo(0,0) 436 $('html, body').animate( 437 { 438 scrollTop: $(target_).offset().top - $('.header-main').outerHeight(), 439 }, 440 1000 441 ); 442 return false; 443 } 444 } 445 446 447}).resize(function () { 448 setTimeout(function () { 449 equalHeight(); 450 }, 501); 451}); 452/* Header Sticky js starts ends here*/ 453function stickTheHeader() { 454 var myHeight = jQuery(".site-header").outerHeight(); 455 if (jQuery(window).scrollTop() > jQuery(".site-header").outerHeight()) { 456 jQuery(".header-main").addClass("sticky"); 457 } else { 458 jQuery(".header-main").removeClass("sticky"); 459 } 460} 461/* Header Sticky js ends here*/
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.