1/*! 2 * WPBakery Page Builder v6.0.0 (https://wpbakery.com) 3 * Copyright 2011-2019 Michael M, WPBakery 4 * License: Commercial. More details: http://go.wpbakery.com/licensing 5 */ 6 7// jscs:disable 8// jshint ignore: start 9 10((document.documentElement.className += ' js_active '), 11 (document.documentElement.className += 12 'ontouchstart' in document.documentElement 13 ? ' vc_mobile ' 14 : ' vc_desktop '), 15 (function () { 16 for ( 17 var prefix = ['-webkit-', '-moz-', '-ms-', '-o-', ''], i = 0; 18 i < prefix.length; 19 i++ 20 ) 21 prefix[i] + 'transform' in document.documentElement.style && 22 (document.documentElement.className += ' vc_transform '); 23 })(), 24 (function ($) { 25 ('function' != typeof window.vc_js && 26 (window.vc_js = function () { 27 'use strict'; 28 (vc_toggleBehaviour(), 29 vc_tabsBehaviour(), 30 vc_accordionBehaviour(), 31 vc_teaserGrid(), 32 vc_carouselBehaviour(), 33 vc_slidersBehaviour(), 34 vc_prettyPhoto(), 35 vc_pinterest(), 36 vc_progress_bar(), 37 vc_plugin_flexslider(), 38 vc_gridBehaviour(), 39 vc_rowBehaviour(), 40 vc_prepareHoverBox(), 41 vc_googleMapsPointer(), 42 vc_ttaActivation(), 43 jQuery(document).trigger('vc_js'), 44 window.setTimeout(vc_waypoints, 500)); 45 }), 46 'function' != typeof window.vc_plugin_flexslider && 47 (window.vc_plugin_flexslider = function ($parent) { 48 ($parent 49 ? $parent.find('.wpb_flexslider') 50 : jQuery('.wpb_flexslider') 51 ).each(function () { 52 var this_element = jQuery(this), 53 sliderTimeout = 54 1e3 * parseInt(this_element.attr('data-interval'), 10), 55 sliderFx = this_element.attr('data-flex_fx'), 56 slideshow = !0; 57 (0 === sliderTimeout && (slideshow = !1), 58 this_element.is(':visible') && 59 this_element.flexslider({ 60 animation: sliderFx, 61 slideshow: slideshow, 62 slideshowSpeed: sliderTimeout, 63 sliderSpeed: 800, 64 smoothHeight: !0, 65 })); 66 }); 67 }), 68 'function' != typeof window.vc_googleplus && 69 (window.vc_googleplus = function () { 70 0 < jQuery('.wpb_googleplus').length && 71 (function () { 72 var po = document.createElement('script'); 73 ((po.type = 'text/javascript'), 74 (po.async = !0), 75 (po.src = 'https://apis.google.com/js/plusone.js')); 76 var s = document.getElementsByTagName('script')[0]; 77 s.parentNode.insertBefore(po, s); 78 })(); 79 }), 80 'function' != typeof window.vc_pinterest && 81 (window.vc_pinterest = function () { 82 0 < jQuery('.wpb_pinterest').length && 83 (function () { 84 var po = document.createElement('script'); 85 ((po.type = 'text/javascript'), 86 (po.async = !0), 87 (po.src = 'https://assets.pinterest.com/js/pinit.js')); 88 var s = document.getElementsByTagName('script')[0]; 89 s.parentNode.insertBefore(po, s); 90 })(); 91 }), 92 'function' != typeof window.vc_progress_bar && 93 (window.vc_progress_bar = function () { 94 void 0 !== jQuery.fn.vcwaypoint && 95 jQuery('.vc_progress_bar').each(function () { 96 var $el = jQuery(this); 97 $el.vcwaypoint( 98 function () { 99 $el.find('.vc_single_bar').each(function (index) { 100 var bar = jQuery(this).find('.vc_bar'), 101 val = bar.data('percentage-value'); 102 setTimeout(function () { 103 bar.css({ width: val + '%' }); 104 }, 200 * index); 105 }); 106 }, 107 { offset: '85%' } 108 ); 109 }); 110 }), 111 'function' != typeof window.vc_waypoints && 112 (window.vc_waypoints = function () { 113 void 0 !== jQuery.fn.vcwaypoint && 114 jQuery( 115 '.wpb_animate_when_almost_visible:not(.wpb_start_animation)' 116 ).each(function () { 117 var $el = jQuery(this); 118 $el.vcwaypoint( 119 function () { 120 $el.addClass('wpb_start_animation animated'); 121 }, 122 { offset: '85%' } 123 ); 124 }); 125 }), 126 'function' != typeof window.vc_toggleBehaviour && 127 (window.vc_toggleBehaviour = function ($el) { 128 function event(e) { 129 e && e.preventDefault && e.preventDefault(); 130 var element = jQuery(this).closest('.vc_toggle'), 131 content = element.find('.vc_toggle_content'); 132 element.hasClass('vc_toggle_active') 133 ? content.slideUp({ 134 duration: 300, 135 complete: function () { 136 element.removeClass('vc_toggle_active'); 137 }, 138 }) 139 : content.slideDown({ 140 duration: 300, 141 complete: function () { 142 element.addClass('vc_toggle_active'); 143 }, 144 }); 145 } 146 $el 147 ? $el.hasClass('vc_toggle_title') 148 ? $el.unbind('click').on('click', event) 149 : $el.find('.vc_toggle_title').off('click').on('click', event) 150 : jQuery('.vc_toggle_title').off('click').on('click', event); 151 }), 152 'function' != typeof window.vc_tabsBehaviour && 153 (window.vc_tabsBehaviour = function ($tab) { 154 if (jQuery.ui) { 155 var $call = $tab || jQuery('.wpb_tabs, .wpb_tour'), 156 ver = 157 jQuery.ui && jQuery.ui.version 158 ? jQuery.ui.version.split('.') 159 : '1.10', 160 old_version = 161 1 === parseInt(ver[0], 10) && parseInt(ver[1], 10) < 9; 162 $call.each(function (index) { 163 var $tabs, 164 interval = jQuery(this).attr('data-interval'), 165 tabs_array = []; 166 if ( 167 (($tabs = jQuery(this) 168 .find('.wpb_tour_tabs_wrapper') 169 .tabs({ 170 show: function (event, ui) { 171 wpb_prepare_tab_content(event, ui); 172 }, 173 activate: function (event, ui) { 174 wpb_prepare_tab_content(event, ui); 175 }, 176 })), 177 interval && 0 < interval) 178 ) 179 try { 180 $tabs.tabs('rotate', 1e3 * interval); 181 } catch (err) { 182 window.console && 183 window.console.warn && 184 console.warn('tabs behaviours error', err); 185 } 186 (jQuery(this) 187 .find('.wpb_tab') 188 .each(function () { 189 tabs_array.push(this.id); 190 }), 191 jQuery(this) 192 .find('.wpb_tabs_nav li') 193 .on('click', function (e) { 194 return ( 195 e && e.preventDefault && e.preventDefault(), 196 old_version 197 ? $tabs.tabs('select', jQuery('a', this).attr('href')) 198 : $tabs.tabs('option', 'active', jQuery(this).index()), 199 !1 200 ); 201 }), 202 jQuery(this) 203 .find('.wpb_prev_slide a, .wpb_next_slide a') 204 .on('click', function (e) { 205 var index, length; 206 (e && e.preventDefault && e.preventDefault(), 207 old_version 208 ? ((index = $tabs.tabs('option', 'selected')), 209 jQuery(this).parent().hasClass('wpb_next_slide') 210 ? index++ 211 : index--, 212 index < 0 213 ? (index = $tabs.tabs('length') - 1) 214 : index >= $tabs.tabs('length') && (index = 0), 215 $tabs.tabs('select', index)) 216 : ((index = $tabs.tabs('option', 'active')), 217 (length = $tabs.find('.wpb_tab').length), 218 (index = jQuery(this) 219 .parent() 220 .hasClass('wpb_next_slide') 221 ? length <= index + 1 222 ? 0 223 : index + 1 224 : index - 1 < 0 225 ? length - 1 226 : index - 1), 227 $tabs.tabs('option', 'active', index))); 228 })); 229 }); 230 } 231 }), 232 'function' != typeof window.vc_accordionBehaviour && 233 (window.vc_accordionBehaviour = function () { 234 jQuery('.wpb_accordion').each(function (index) { 235 var $tabs, 236 active_tab, 237 collapsible, 238 $this = jQuery(this); 239 ($this.attr('data-interval'), 240 (collapsible = 241 !1 === 242 (active_tab = 243 !isNaN(jQuery(this).data('active-tab')) && 244 0 < parseInt($this.data('active-tab'), 10) && 245 parseInt($this.data('active-tab'), 10) - 1) || 246 'yes' === $this.data('collapsible')), 247 ($tabs = $this.find('.wpb_accordion_wrapper').accordion({ 248 header: '> div > h3', 249 autoHeight: !1, 250 heightStyle: 'content', 251 active: active_tab, 252 collapsible: collapsible, 253 navigation: !0, 254 activate: vc_accordionActivate, 255 change: function (event, ui) { 256 (void 0 !== jQuery.fn.isotope && 257 ui.newContent.find('.isotope').isotope('layout'), 258 vc_carouselBehaviour(ui.newPanel)); 259 }, 260 })), 261 !0 === $this.data('vcDisableKeydown') && 262 ($tabs.data('uiAccordion')._keydown = function () {})); 263 }); 264 }), 265 'function' != typeof window.vc_teaserGrid && 266 (window.vc_teaserGrid = function () { 267 var layout_modes = { fitrows: 'fitRows', masonry: 'masonry' }; 268 jQuery( 269 '.wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)' 270 ).each(function () { 271 var $container = jQuery(this), 272 $thumbs = $container.find('.wpb_thumbnails'), 273 layout_mode = $thumbs.attr('data-layout-mode'); 274 ($thumbs.isotope({ 275 itemSelector: '.isotope-item', 276 layoutMode: 277 void 0 === layout_modes[layout_mode] 278 ? 'fitRows' 279 : layout_modes[layout_mode], 280 }), 281 $container 282 .find('.categories_filter a') 283 .data('isotope', $thumbs) 284 .on('click', function (e) { 285 e && e.preventDefault && e.preventDefault(); 286 var $thumbs = jQuery(this).data('isotope'); 287 (jQuery(this) 288 .parent() 289 .parent() 290 .find('.active') 291 .removeClass('active'), 292 jQuery(this).parent().addClass('active'), 293 $thumbs.isotope({ 294 filter: jQuery(this).attr('data-filter'), 295 })); 296 }), 297 jQuery(window).bind('load resize', function () { 298 $thumbs.isotope('layout'); 299 })); 300 }); 301 }), 302 'function' != typeof window.vc_carouselBehaviour && 303 (window.vc_carouselBehaviour = function ($parent) { 304 ($parent 305 ? $parent.find('.wpb_carousel') 306 : jQuery('.wpb_carousel') 307 ).each(function () { 308 var $this = jQuery(this); 309 if (!0 !== $this.data('carousel_enabled') && $this.is(':visible')) { 310 $this.data('carousel_enabled', !0); 311 getColumnsCount(jQuery(this)); 312 jQuery(this).hasClass('columns_count_1') && 900; 313 var carousel_li = jQuery(this).find('.wpb_thumbnails-fluid li'); 314 carousel_li.css({ 315 'margin-right': carousel_li.css('margin-left'), 316 'margin-left': 0, 317 }); 318 var fluid_ul = jQuery(this).find('ul.wpb_thumbnails-fluid'); 319 (fluid_ul.width(fluid_ul.width() + 300), 320 jQuery(window).on('resize', function () { 321 screen_size != (screen_size = getSizeName()) && 322 window.setTimeout(function () { 323 location.reload(); 324 }, 20); 325 })); 326 } 327 }); 328 }), 329 'function' != typeof window.vc_slidersBehaviour && 330 (window.vc_slidersBehaviour = function () { 331 jQuery('.wpb_gallery_slides').each(function (index) { 332 var $imagesGrid, 333 this_element = jQuery(this); 334 if (this_element.hasClass('wpb_slider_nivo')) { 335 var sliderTimeout = 1e3 * this_element.attr('data-interval'); 336 (0 === sliderTimeout && (sliderTimeout = 9999999999), 337 this_element.find('.nivoSlider').nivoSlider({ 338 effect: 339 'boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse', 340 slices: 15, 341 boxCols: 8, 342 boxRows: 4,
343 animSpeed: 800, 344 pauseTime: sliderTimeout, 345 startSlide: 0, 346 directionNav: !0, 347 directionNavHide: !0, 348 controlNav: !0, 349 keyboardNav: !1, 350 pauseOnHover: !0, 351 manualAdvance: !1, 352 prevText: 'Prev', 353 nextText: 'Next', 354 })); 355 } else 356 this_element.hasClass('wpb_image_grid') && 357 (jQuery.fn.imagesLoaded 358 ? ($imagesGrid = this_element 359 .find('.wpb_image_grid_ul') 360 .imagesLoaded(function () { 361 $imagesGrid.isotope({ 362 itemSelector: '.isotope-item', 363 layoutMode: 'fitRows', 364 }); 365 })) 366 : this_element.find('.wpb_image_grid_ul').isotope({ 367 itemSelector: '.isotope-item', 368 layoutMode: 'fitRows', 369 })); 370 }); 371 }), 372 'function' != typeof window.vc_prettyPhoto && 373 (window.vc_prettyPhoto = function () { 374 try { 375 jQuery && 376 jQuery.fn && 377 jQuery.fn.prettyPhoto && 378 jQuery( 379 'a.prettyphoto, .gallery-icon a[href*=".jpg"]' 380 ).prettyPhoto({ 381 animationSpeed: 'normal', 382 hook: 'data-rel', 383 padding: 15, 384 opacity: 0.7, 385 showTitle: !0, 386 allowresize: !0, 387 counter_separator_label: '/', 388 hideflash: !1, 389 deeplinking: !1, 390 modal: !1, 391 callback: function () { 392 -1 < location.href.indexOf('#!prettyPhoto') && 393 (location.hash = ''); 394 }, 395 social_tools: '', 396 }); 397 } catch (err) { 398 window.console && 399 window.console.warn && 400 window.console.warn('vc_prettyPhoto initialize error', err); 401 } 402 }), 403 'function' != typeof window.vc_google_fonts && 404 (window.vc_google_fonts = function () { 405 return ( 406 window.console && 407 window.console.warn && 408 window.console.warn( 409 'function vc_google_fonts is deprecated, no need to use it' 410 ), 411 !1 412 ); 413 }), 414 (window.vcParallaxSkroll = !1), 415 'function' != typeof window.vc_rowBehaviour && 416 (window.vc_rowBehaviour = function () { 417 var vcSkrollrOptions, 418 callSkrollInit, 419 $ = window.jQuery; 420 function fullWidthRow() { 421 var $elements = $('[data-vc-full-width="true"]'); 422 ($.each($elements, function (key, item) { 423 var $el = $(this); 424 //$el.addClass('vc_hidden'); 425 var $el_full = $el.next('.vc_row-full-width'); 426 if ( 427 ($el_full.length || 428 ($el_full = $el.parent().next('.vc_row-full-width')), 429 $el_full.length) 430 ) { 431 var padding, 432 paddingRight, 433 el_margin_left = parseInt($el.css('margin-left'), 10), 434 el_margin_right = parseInt($el.css('margin-right'), 10), 435 offset = 0 - $el_full.offset().left - el_margin_left, 436 width = $(window).width(); 437 if ( 438 ('rtl' === $el.css('direction') && 439 ((offset -= $el_full.width()), 440 (offset += width), 441 (offset += el_margin_left), 442 (offset += el_margin_right)), 443 $el.css({ 444 position: 'relative', 445 left: offset, 446 'box-sizing': 'border-box', 447 width: width, 448 }), 449 !$el.data('vcStretchContent')) 450 ) 451 ('rtl' === $el.css('direction') 452 ? ((padding = offset) < 0 && (padding = 0), 453 (paddingRight = offset) < 0 && (paddingRight = 0)) 454 : ((padding = -1 * offset) < 0 && (padding = 0), 455 (paddingRight = 456 width - 457 padding - 458 $el_full.width() + 459 el_margin_left + 460 el_margin_right) < 0 && (paddingRight = 0)), 461 $el.css({ 462 'padding-left': padding + 'px', 463 'padding-right': paddingRight + 'px', 464 })); 465 ($el.attr('data-vc-full-width-init', 'true'), 466 //$el.removeClass('vc_hidden'), 467 $(document).trigger('vc-full-width-row-single', { 468 el: $el, 469 offset: offset, 470 marginLeft: el_margin_left, 471 marginRight: el_margin_right, 472 elFull: $el_full, 473 width: width, 474 })); 475 } 476 }), 477 $(document).trigger('vc-full-width-row', $elements)); 478 } 479 function fullHeightRow() { 480 var windowHeight, 481 offsetTop, 482 fullHeight, 483 $element = $('.vc_row-o-full-height:first'); 484 $element.length && 485 ((windowHeight = $(window).height()), 486 (offsetTop = $element.offset().top) < windowHeight && 487 ((fullHeight = 100 - offsetTop / (windowHeight / 100)), 488 $element.css('min-height', fullHeight + 'vh'))); 489 $(document).trigger('vc-full-height-row', $element); 490 } 491 ($(window) 492 .off('resize.vcRowBehaviour') 493 .on('resize.vcRowBehaviour', fullWidthRow) 494 .on('resize.vcRowBehaviour', fullHeightRow), 495 fullWidthRow(), 496 fullHeightRow(), 497 (0 < window.navigator.userAgent.indexOf('MSIE ') || 498 navigator.userAgent.match(/Trident.*rv\:11\./)) && 499 $('.vc_row-o-full-height').each(function () { 500 'flex' === $(this).css('display') && 501 $(this).wrap('<div class="vc_ie-flexbox-fixer"></div>'); 502 }),
503 vc_initVideoBackgrounds(), 504 (callSkrollInit = !1), 505 window.vcParallaxSkroll && window.vcParallaxSkroll.destroy(), 506 $('.vc_parallax-inner').remove(), 507 $('[data-5p-top-bottom]').removeAttr( 508 'data-5p-top-bottom data-30p-top-bottom' 509 ), 510 $('[data-vc-parallax]').each(function () { 511 var skrollrSize, 512 skrollrStart, 513 $parallaxElement, 514 parallaxImage, 515 youtubeId; 516 ((callSkrollInit = !0), 517 'on' === $(this).data('vcParallaxOFade') && 518 $(this) 519 .children() 520 .attr('data-5p-top-bottom', 'opacity:0;') 521 .attr('data-30p-top-bottom', 'opacity:1;'), 522 (skrollrSize = 100 * $(this).data('vcParallax')), 523 ($parallaxElement = $('<div />') 524 .addClass('vc_parallax-inner') 525 .appendTo($(this))).height(skrollrSize + '%'), 526 (parallaxImage = $(this).data('vcParallaxImage')), 527 (youtubeId = vcExtractYoutubeId(parallaxImage)) 528 ? insertYoutubeVideoAsBackground($parallaxElement, youtubeId) 529 : void 0 !== parallaxImage && 530 $parallaxElement.css( 531 'background-image', 532 'url(' + parallaxImage + ')' 533 ), 534 (skrollrStart = -(skrollrSize - 100)), 535 $parallaxElement 536 .attr('data-bottom-top', 'top: ' + skrollrStart + '%;') 537 .attr('data-top-bottom', 'top: 0%;')); 538 }), 539 callSkrollInit && 540 window.skrollr && 541 ((vcSkrollrOptions = { 542 forceHeight: !1, 543 smoothScrolling: !1, 544 mobileCheck: function () { 545 return !1; 546 }, 547 }), 548 (window.vcParallaxSkroll = skrollr.init(vcSkrollrOptions)), 549 window.vcParallaxSkroll)); 550 }), 551 'function' != typeof window.vc_gridBehaviour && 552 (window.vc_gridBehaviour = function () { 553 jQuery.fn.vcGrid && jQuery('[data-vc-grid]').vcGrid(); 554 }), 555 'function' != typeof window.getColumnsCount && 556 (window.getColumnsCount = function (el) { 557 for (var find = !1, i = 1; !1 === find; ) { 558 if (el.hasClass('columns_count_' + i)) return ((find = !0), i); 559 i++; 560 } 561 })); 562 var screen_size = getSizeName(); 563 function getSizeName() { 564 var screen_w = jQuery(window).width(); 565 return 1170 < screen_w 566 ? 'desktop_wide' 567 : 960 < screen_w && screen_w < 1169 568 ? 'desktop' 569 : 768 < screen_w && screen_w < 959 570 ? 'tablet' 571 : 300 < screen_w && screen_w < 767 572 ? 'mobile' 573 : screen_w < 300 574 ? 'mobile_portrait' 575 : ''; 576 } 577 ('function' != typeof window.wpb_prepare_tab_content && 578 (window.wpb_prepare_tab_content = function (event, ui) { 579 var $ui_panel, 580 $google_maps, 581 panel = ui.panel || ui.newPanel, 582 $pie_charts = panel.find('.vc_pie_chart:not(.vc_ready)'), 583 $round_charts = panel.find('.vc_round-chart'), 584 $line_charts = panel.find('.vc_line-chart'), 585 $carousel = panel.find('[data-ride="vc_carousel"]'); 586 if ( 587 (vc_carouselBehaviour(), 588 vc_plugin_flexslider(panel), 589 ui.newPanel.find('.vc_masonry_media_grid, .vc_masonry_grid').length && 590 ui.newPanel 591 .find('.vc_masonry_media_grid, .vc_masonry_grid') 592 .each(function () { 593 var grid = jQuery(this).data('vcGrid'); 594 grid && 595 grid.gridBuilder && 596 grid.gridBuilder.setMasonry && 597 grid.gridBuilder.setMasonry(); 598 }), 599 panel.find('.vc_masonry_media_grid, .vc_masonry_grid').length && 600 panel 601 .find('.vc_masonry_media_grid, .vc_masonry_grid') 602 .each(function () { 603 var grid = jQuery(this).data('vcGrid'); 604 grid && 605 grid.gridBuilder && 606 grid.gridBuilder.setMasonry && 607 grid.gridBuilder.setMasonry(); 608 }), 609 $pie_charts.length && jQuery.fn.vcChat && $pie_charts.vcChat(), 610 $round_charts.length && 611 jQuery.fn.vcRoundChart && 612 $round_charts.vcRoundChart({ reload: !1 }), 613 $line_charts.length && 614 jQuery.fn.vcLineChart && 615 $line_charts.vcLineChart({ reload: !1 }), 616 $carousel.length && 617 jQuery.fn.carousel && 618 $carousel.carousel('resizeAction'), 619 ($ui_panel = panel.find('.isotope, .wpb_image_grid_ul')), 620 ($google_maps = panel.find('.wpb_gmaps_widget')), 621 0 < $ui_panel.length && $ui_panel.isotope('layout'), 622 $google_maps.length && !$google_maps.is('.map_ready')) 623 ) { 624 var $frame = $google_maps.find('iframe'); 625 ($frame.attr('src', $frame.attr('src')), 626 $google_maps.addClass('map_ready')); 627 } 628 panel.parents('.isotope').length && 629 panel.parents('.isotope').each(function () { 630 jQuery(this).isotope('layout'); 631 }); 632 }), 633 'function' != typeof window.vc_ttaActivation && 634 (window.vc_ttaActivation = function () { 635 jQuery('[data-vc-accordion]').on('show.vc.accordion', function (e) { 636 var $ = window.jQuery, 637 ui = {}; 638 ((ui.newPanel = $(this).data('vc.accordion').getTarget()), 639 window.wpb_prepare_tab_content(e, ui)); 640 }); 641 }), 642 'function' != typeof window.vc_accordionActivate && 643 (window.vc_accordionActivate = function (event, ui) { 644 if (ui.newPanel.length && ui.newHeader.length) { 645 var $pie_charts = ui.newPanel.find('.vc_pie_chart:not(.vc_ready)'), 646 $round_charts = ui.newPanel.find('.vc_round-chart'), 647 $line_charts = ui.newPanel.find('.vc_line-chart'), 648 $carousel = ui.newPanel.find('[data-ride="vc_carousel"]'); 649 (void 0 !== jQuery.fn.isotope && 650 ui.newPanel 651 .find('.isotope, .wpb_image_grid_ul') 652 .isotope('layout'), 653 ui.newPanel.find('.vc_masonry_media_grid, .vc_masonry_grid') 654 .length && 655 ui.newPanel 656 .find('.vc_masonry_media_grid, .vc_masonry_grid') 657 .each(function () { 658 var grid = jQuery(this).data('vcGrid'); 659 grid && 660 grid.gridBuilder && 661 grid.gridBuilder.setMasonry && 662 grid.gridBuilder.setMasonry(); 663 }), 664 vc_carouselBehaviour(ui.newPanel), 665 vc_plugin_flexslider(ui.newPanel), 666 $pie_charts.length && jQuery.fn.vcChat && $pie_charts.vcChat(), 667 $round_charts.length && 668 jQuery.fn.vcRoundChart && 669 $round_charts.vcRoundChart({ reload: !1 }), 670 $line_charts.length && 671 jQuery.fn.vcLineChart && 672 $line_charts.vcLineChart({ reload: !1 }), 673 $carousel.length && 674 jQuery.fn.carousel && 675 $carousel.carousel('resizeAction'), 676 ui.newPanel.parents('.isotope').length && 677 ui.newPanel.parents('.isotope').each(function () { 678 jQuery(this).isotope('layout'); 679 })); 680 } 681 }),
682 'function' != typeof window.initVideoBackgrounds && 683 (window.initVideoBackgrounds = function () { 684 return ( 685 window.console && 686 window.console.warn && 687 window.console.warn( 688 'this function is deprecated use vc_initVideoBackgrounds' 689 ), 690 vc_initVideoBackgrounds() 691 ); 692 }), 693 'function' != typeof window.vc_initVideoBackgrounds && 694 (window.vc_initVideoBackgrounds = function () { 695 jQuery('[data-vc-video-bg]').each(function () { 696 var youtubeUrl, 697 youtubeId, 698 $element = jQuery(this); 699 $element.data('vcVideoBg') 700 ? ((youtubeUrl = $element.data('vcVideoBg')), 701 (youtubeId = vcExtractYoutubeId(youtubeUrl)) && 702 ($element.find('.vc_video-bg').remove(), 703 insertYoutubeVideoAsBackground($element, youtubeId)), 704 jQuery(window).on('grid:items:added', function (event, $grid) { 705 $element.has($grid).length && 706 vcResizeVideoBackground($element); 707 })) 708 : $element.find('.vc_video-bg').remove(); 709 }); 710 }), 711 'function' != typeof window.insertYoutubeVideoAsBackground && 712 (window.insertYoutubeVideoAsBackground = function ( 713 $element, 714 youtubeId, 715 counter 716 ) { 717 if ('undefined' == typeof YT || void 0 === YT.Player) 718 return 100 < (counter = void 0 === counter ? 0 : counter) 719 ? void console.warn('Too many attempts to load YouTube api') 720 : void setTimeout(function () { 721 insertYoutubeVideoAsBackground( 722 $element, 723 youtubeId, 724 counter++ 725 ); 726 }, 100); 727 var $container = $element 728 .prepend( 729 '<div class="vc_video-bg vc_hidden-xs"><div class="inner"></div></div>' 730 ) 731 .find('.inner'); 732 (new YT.Player($container[0], { 733 width: '100%', 734 height: '100%', 735 videoId: youtubeId, 736 playerVars: { 737 playlist: youtubeId, 738 iv_load_policy: 3, 739 enablejsapi: 1, 740 disablekb: 1, 741 autoplay: 1, 742 controls: 0, 743 showinfo: 0, 744 rel: 0, 745 loop: 1, 746 wmode: 'transparent', 747 }, 748 events: { 749 onReady: function (event) { 750 event.target.mute().setLoop(!0); 751 }, 752 }, 753 }), 754 vcResizeVideoBackground($element), 755 jQuery(window).bind('resize', function () { 756 vcResizeVideoBackground($element); 757 })); 758 }), 759 'function' != typeof window.vcResizeVideoBackground && 760 (window.vcResizeVideoBackground = function ($element) { 761 var iframeW, 762 iframeH, 763 marginLeft, 764 marginTop, 765 containerW = $element.innerWidth(), 766 containerH = $element.innerHeight(); 767 (containerW / containerH < 16 / 9 768 ? ((iframeW = containerH * (16 / 9)), 769 (iframeH = containerH), 770 (marginLeft = -Math.round((iframeW - containerW) / 2) + 'px'), 771 (marginTop = -Math.round((iframeH - containerH) / 2) + 'px')) 772 : ((iframeH = (iframeW = containerW) * (9 / 16)), 773 (marginTop = -Math.round((iframeH - containerH) / 2) + 'px'), 774 (marginLeft = -Math.round((iframeW - containerW) / 2) + 'px')), 775 (iframeW += 'px'), 776 (iframeH += 'px'), 777 $element.find('.vc_video-bg iframe').css({ 778 maxWidth: '1000%', 779 marginLeft: marginLeft, 780 marginTop: marginTop, 781 width: iframeW, 782 height: iframeH, 783 })); 784 }), 785 'function' != typeof window.vcExtractYoutubeId && 786 (window.vcExtractYoutubeId = function (url) { 787 if (void 0 === url) return !1; 788 var id = url.match( 789 /(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/ 790 ); 791 return null !== id && id[1]; 792 }), 793 'function' != typeof window.vc_googleMapsPointer && 794 (window.vc_googleMapsPointer = function () { 795 var $ = window.jQuery, 796 $wpbGmapsWidget = $('.wpb_gmaps_widget'); 797 ($wpbGmapsWidget.on('click', function () { 798 $('iframe', this).css('pointer-events', 'auto'); 799 }), 800 $wpbGmapsWidget.on('mouseleave', function () {
801 $('iframe', this).css('pointer-events', 'none'); 802 }), 803 $('.wpb_gmaps_widget iframe').css('pointer-events', 'none')); 804 }), 805 'function' != typeof window.vc_setHoverBoxPerspective && 806 (window.vc_setHoverBoxPerspective = function (hoverBox) { 807 hoverBox.each(function () { 808 var $this = jQuery(this), 809 perspective = 4 * $this.width() + 'px'; 810 $this.css('perspective', perspective); 811 }); 812 }), 813 'function' != typeof window.vc_setHoverBoxHeight && 814 (window.vc_setHoverBoxHeight = function (hoverBox) { 815 hoverBox.each(function () { 816 var $this = jQuery(this), 817 hoverBoxInner = $this.find('.vc-hoverbox-inner'); 818 hoverBoxInner.css('min-height', 0); 819 var frontHeight = $this 820 .find('.vc-hoverbox-front-inner') 821 .outerHeight(), 822 backHeight = $this.find('.vc-hoverbox-back-inner').outerHeight(), 823 hoverBoxHeight = 824 backHeight < frontHeight ? frontHeight : backHeight; 825 (hoverBoxHeight < 250 && (hoverBoxHeight = 250), 826 hoverBoxInner.css('min-height', hoverBoxHeight + 'px')); 827 }); 828 }), 829 'function' != typeof window.vc_prepareHoverBox && 830 (window.vc_prepareHoverBox = function () { 831 var hoverBox = jQuery('.vc-hoverbox'); 832 (vc_setHoverBoxHeight(hoverBox), vc_setHoverBoxPerspective(hoverBox)); 833 }), 834 jQuery(document).ready(window.vc_prepareHoverBox), 835 jQuery(window).resize(window.vc_prepareHoverBox), 836 jQuery(document).ready(function ($) { 837 window.vc_js(); 838 })); 839 })(window.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.