Warning: The magic method Vc_Manager::__wakeup() must have public visibility in /home/webpages/lima-city/stylebattle/liga-schmierfinkg/wp-content/plugins/js_composer_salient/include/classes/core/class-vc-manager.php on line 205

Warning: Cannot modify header information - headers already sent by (output started at /home/webpages/lima-city/stylebattle/liga-schmierfinkg/wp-content/plugins/js_composer_salient/include/classes/core/class-vc-manager.php:205) in /home/webpages/lima-city/stylebattle/liga-schmierfinkg/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 385

Warning: Cannot modify header information - headers already sent by (output started at /home/webpages/lima-city/stylebattle/liga-schmierfinkg/wp-content/plugins/js_composer_salient/include/classes/core/class-vc-manager.php:205) in /home/webpages/lima-city/stylebattle/liga-schmierfinkg/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 385

Warning: Cannot modify header information - headers already sent by (output started at /home/webpages/lima-city/stylebattle/liga-schmierfinkg/wp-content/plugins/js_composer_salient/include/classes/core/class-vc-manager.php:205) in /home/webpages/lima-city/stylebattle/liga-schmierfinkg/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 385

Warning: Cannot modify header information - headers already sent by (output started at /home/webpages/lima-city/stylebattle/liga-schmierfinkg/wp-content/plugins/js_composer_salient/include/classes/core/class-vc-manager.php:205) in /home/webpages/lima-city/stylebattle/liga-schmierfinkg/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 385

Warning: Cannot modify header information - headers already sent by (output started at /home/webpages/lima-city/stylebattle/liga-schmierfinkg/wp-content/plugins/js_composer_salient/include/classes/core/class-vc-manager.php:205) in /home/webpages/lima-city/stylebattle/liga-schmierfinkg/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 385

Warning: Cannot modify header information - headers already sent by (output started at /home/webpages/lima-city/stylebattle/liga-schmierfinkg/wp-content/plugins/js_composer_salient/include/classes/core/class-vc-manager.php:205) in /home/webpages/lima-city/stylebattle/liga-schmierfinkg/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 385

Warning: Cannot modify header information - headers already sent by (output started at /home/webpages/lima-city/stylebattle/liga-schmierfinkg/wp-content/plugins/js_composer_salient/include/classes/core/class-vc-manager.php:205) in /home/webpages/lima-city/stylebattle/liga-schmierfinkg/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 385

Warning: Cannot modify header information - headers already sent by (output started at /home/webpages/lima-city/stylebattle/liga-schmierfinkg/wp-content/plugins/js_composer_salient/include/classes/core/class-vc-manager.php:205) in /home/webpages/lima-city/stylebattle/liga-schmierfinkg/wp-content/plugins/w3-total-cache/lib/Minify/Minify.php on line 385
function um_init_datetimepicker(){jQuery(".um-datepicker:not(.picker__input)").each(function(){var e=jQuery(this),t=!1;void 0!==e.attr("data-disabled_weekdays")&&""!==e.attr("data-disabled_weekdays")&&(t=JSON.parse(e.attr("data-disabled_weekdays")));var a=null;void 0!==e.attr("data-years")&&(a=e.attr("data-years"));var i=e.attr("data-date_min"),r=e.attr("data-date_max"),n=[],u=[];void 0!==i&&(n=i.split(",")),void 0!==r&&(u=r.split(","));var o=n.length?new Date(n):null,d=n.length?new Date(u):null;if(o&&"Invalid Date"==o.toString()&&3==n.length){var s=n[1]+"/"+n[2]+"/"+n[0];o=new Date(Date.parse(s))}if(d&&"Invalid Date"==d.toString()&&3==u.length){var l=u[1]+"/"+u[2]+"/"+u[0];d=new Date(Date.parse(l))}var c={disable:t,format:e.attr("data-format"),formatSubmit:"yyyy/mm/dd",hiddenName:!0,onOpen:function(){e.blur()},onClose:function(){e.blur()}};null!==a&&(c.selectYears=a),null!==o&&(c.min=o),null!==d&&(c.max=d),e.pickadate(c)}),jQuery(".um-timepicker:not(.picker__input)").each(function(){var e=jQuery(this);e.pickatime({format:e.attr("data-format"),interval:parseInt(e.attr("data-intervals")),formatSubmit:"HH:i",hiddenName:!0,onOpen:function(){e.blur()},onClose:function(){e.blur()}})})}function init_tipsy(){"function"==typeof jQuery.fn.tipsy&&(jQuery(".um-tip-n").tipsy({gravity:"n",opacity:1,live:"a.live",offset:3}),jQuery(".um-tip-w").tipsy({gravity:"w",opacity:1,live:"a.live",offset:3}),jQuery(".um-tip-e").tipsy({gravity:"e",opacity:1,live:"a.live",offset:3}),jQuery(".um-tip-s").tipsy({gravity:"s",opacity:1,live:"a.live",offset:3}))}jQuery(document).ready(function(){function a(e){var a=jQuery(e.currentTarget),t=a.find(":selected");1'),um_responsive(),user_id=jQuery(this).attr("data-user_id"),metakey="cover_photo",jQuery.ajax({url:wp.ajax.settings.url,type:"post",data:{action:"um_delete_cover_photo",metakey:metakey,user_id:user_id,nonce:um_scripts.nonce},success:function(e){r.hide()}}),UM.dropdown.hideAll(),!1}),jQuery(document.body).on("change, keyup",'textarea[id="um-meta-bio"]',function(){if(void 0!==jQuery(this).val()){var e=jQuery(this).attr("data-character-limit")-jQuery(this).val().length;jQuery("span.um-meta-bio-character span.um-bio-limit").text(e),e<5?jQuery("span.um-meta-bio-character").css("color","red"):jQuery("span.um-meta-bio-character").css("color","")}}),jQuery('textarea[id="um-meta-bio"]').trigger("change"),jQuery(".um-profile-edit a.um_delete-item").on("click",function(e){if(e.preventDefault(),!confirm(wp.i18n.__("Are you sure that you want to delete this user?","ultimate-member")))return!1}),jQuery(".um-profile-nav a").on("touchend",function(e){jQuery(e.currentTarget).trigger("click")})}); ;jQuery(document).ready(function(){var a=jQuery(".um-account-main").attr("data-current_tab");a&&(jQuery('.um-account-tab[data-tab="'+a+'"]').show(),jQuery(".um-account-tab:not(:visible)").find("input, select, textarea").not(":disabled").addClass("um_account_inactive").prop("disabled",!0).attr("disabled",!0)),jQuery(document.body).on("click",".um-account-side li a",function(a){a.preventDefault();var e=jQuery(this);e.parents("ul").find("li a").removeClass("current"),e.addClass("current");var t=jQuery(this).attr("href"),u=jQuery(this).attr("data-tab");return jQuery('input[id="_um_account_tab"]:hidden').val(u),window.history.pushState("","",t),jQuery(".um-account-tab").hide(),jQuery('.um-account-tab[data-tab="'+u+'"]').fadeIn(),jQuery(".um-account-tab:visible").find("input, select, textarea").filter(".um_account_inactive:disabled").removeClass("um_account_inactive").prop("disabled",!1).attr("disabled",!1),jQuery(".um-account-tab:not(:visible)").find("input, select, textarea").not(":disabled").addClass("um_account_inactive").prop("disabled",!0).attr("disabled",!0),jQuery(".um-account-nav a").removeClass("current"),jQuery('.um-account-nav a[data-tab="'+u+'"]').addClass("current"),wp.hooks.doAction("um_after_account_tab_changed",u),!1}),jQuery(document.body).on("click",".um-account-nav a",function(a){a.preventDefault();var e=jQuery(this).attr("data-tab"),t=jQuery(this).parents("div"),u=jQuery(this);return jQuery('input[id="_um_account_tab"]:hidden').val(e),jQuery(".um-account-tab").hide(),u.hasClass("current")?(t.next(".um-account-tab").slideUp(),u.removeClass("current")):(t.next(".um-account-tab").slideDown(),u.parents("div").find("a").removeClass("current"),u.addClass("current")),jQuery(".um-account-tab:visible").find("input, select, textarea").filter(".um_account_inactive:disabled").removeClass("um_account_inactive").prop("disabled",!1).attr("disabled",!1),jQuery(".um-account-tab:not(:visible)").find("input, select, textarea").not(":disabled").addClass("um_account_inactive").prop("disabled",!0).attr("disabled",!0),jQuery(".um-account-side li a").removeClass("current"),jQuery('.um-account-side li a[data-tab="'+e+'"]').addClass("current"),wp.hooks.doAction("um_after_account_tab_changed",e),!1}),jQuery(document.body).on("click",".um-request-button",function(a){a.preventDefault();var e=jQuery(this).data("action"),t=jQuery("#"+e).val();if(jQuery(".um-field-area-response."+e).hide(),jQuery("#"+e).length&&""===t)jQuery(".um-field-error."+e).show();else{jQuery(".um-field-error."+e).hide();var u={request_action:e,nonce:um_scripts.nonce};jQuery("#"+e).length&&(u.password=t),wp.ajax.send("um_request_user_data",{data:u,success:function(a){jQuery(".um-field-area-response."+e).text(a.answer).show()},error:function(a){console.log(a)}})}})}); ;/*! This file is auto-generated */ !function(d,l){"use strict";var e=!1,n=!1;if(l.querySelector)if(d.addEventListener)e=!0;if(d.wp=d.wp||{},!d.wp.receiveEmbedMessage)if(d.wp.receiveEmbedMessage=function(e){var t=e.data;if(t)if(t.secret||t.message||t.value)if(!/[^a-zA-Z0-9]/.test(t.secret)){for(var r,i,a,s=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),n=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),o=new RegExp("^https?:$","i"),c=0;c= $tabs.tabs("length") && (index = 0), $tabs.tabs("select", index)) : (index = $tabs.tabs("option", "active"), length = $tabs.find(".wpb_tab").length, index = jQuery(this).parent().hasClass("wpb_next_slide") ? length <= index + 1 ? 0 : index + 1 : index - 1 < 0 ? length - 1 : index - 1, $tabs.tabs("option", "active", index)) }) }) } }), "function" != typeof window.vc_accordionBehaviour && (window.vc_accordionBehaviour = function() { jQuery(".wpb_accordion").each(function(index) { var $tabs, active_tab, collapsible, $this = jQuery(this); $this.attr("data-interval"), collapsible = !1 === (active_tab = !isNaN(jQuery(this).data("active-tab")) && 0 < parseInt($this.data("active-tab"), 10) && parseInt($this.data("active-tab"), 10) - 1) || "yes" === $this.data("collapsible"), $tabs = $this.find(".wpb_accordion_wrapper").accordion({ header: "> div > h3", autoHeight: !1, heightStyle: "content", active: active_tab, collapsible: collapsible, navigation: !0, activate: vc_accordionActivate, change: function(event, ui) { void 0 !== jQuery.fn.isotope && ui.newContent.find(".isotope").isotope("layout"), vc_carouselBehaviour(ui.newPanel) } }), !0 === $this.data("vcDisableKeydown") && ($tabs.data("uiAccordion")._keydown = function() {}) }) }), "function" != typeof window.vc_teaserGrid && (window.vc_teaserGrid = function() { var layout_modes = { fitrows: "fitRows", masonry: "masonry" }; jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function() { var $container = jQuery(this), $thumbs = $container.find(".wpb_thumbnails"), layout_mode = $thumbs.attr("data-layout-mode"); $thumbs.isotope({ itemSelector: ".isotope-item", layoutMode: void 0 === layout_modes[layout_mode] ? "fitRows" : layout_modes[layout_mode] }), $container.find(".categories_filter a").data("isotope", $thumbs).on("click", function(e) { e && e.preventDefault && e.preventDefault(); var $thumbs = jQuery(this).data("isotope"); jQuery(this).parent().parent().find(".active").removeClass("active"), jQuery(this).parent().addClass("active"), $thumbs.isotope({ filter: jQuery(this).attr("data-filter") }) }), jQuery(window).bind("load resize", function() { $thumbs.isotope("layout") }) }) }), "function" != typeof window.vc_carouselBehaviour && (window.vc_carouselBehaviour = function($parent) { ($parent ? $parent.find(".wpb_carousel") : jQuery(".wpb_carousel")).each(function() { var $this = jQuery(this); if (!0 !== $this.data("carousel_enabled") && $this.is(":visible")) { $this.data("carousel_enabled", !0); getColumnsCount(jQuery(this)); jQuery(this).hasClass("columns_count_1") && 0; var carousel_li = jQuery(this).find(".wpb_thumbnails-fluid li"); carousel_li.css({ "margin-right": carousel_li.css("margin-left"), "margin-left": 0 }); var fluid_ul = jQuery(this).find("ul.wpb_thumbnails-fluid"); fluid_ul.width(fluid_ul.width() + 300), jQuery(window).on("resize", function() { screen_size != (screen_size = getSizeName()) && window.setTimeout(function() { location.reload() }, 20) }) } }) }), "function" != typeof window.vc_slidersBehaviour && (window.vc_slidersBehaviour = function() { jQuery(".wpb_gallery_slides").each(function(index) { var $imagesGrid, this_element = jQuery(this); if (this_element.hasClass("wpb_slider_nivo")) { var sliderTimeout = 1e3 * this_element.attr("data-interval"); 0 === sliderTimeout && (sliderTimeout = 9999999999), this_element.find(".nivoSlider").nivoSlider({ effect: "boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse", slices: 15, boxCols: 8, boxRows: 4, animSpeed: 800, pauseTime: sliderTimeout, startSlide: 0, directionNav: !0, directionNavHide: !0, controlNav: !0, keyboardNav: !1, pauseOnHover: !0, manualAdvance: !1, prevText: "Prev", nextText: "Next" }) } else this_element.hasClass("wpb_image_grid") && (jQuery.fn.imagesLoaded ? $imagesGrid = this_element.find(".wpb_image_grid_ul").imagesLoaded(function() { $imagesGrid.isotope({ itemSelector: ".isotope-item", layoutMode: "fitRows" }) }) : this_element.find(".wpb_image_grid_ul").isotope({ itemSelector: ".isotope-item", layoutMode: "fitRows" })) }) }), "function" != typeof window.vc_prettyPhoto && (window.vc_prettyPhoto = function() { try { jQuery && jQuery.fn && jQuery.fn.prettyPhoto && jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({ animationSpeed: "normal", hook: "data-rel", padding: 15, opacity: .7, showTitle: !0, allowresize: !0, counter_separator_label: "/", hideflash: !1, deeplinking: !1, modal: !1, callback: function() { -1 < location.href.indexOf("#!prettyPhoto") && (location.hash = "") }, social_tools: "" }) } catch (err) { window.console && window.console.warn && window.console.warn("vc_prettyPhoto initialize error", err) } }), "function" != typeof window.vc_google_fonts && (window.vc_google_fonts = function() { return window.console && window.console.warn && window.console.warn("function vc_google_fonts is deprecated, no need to use it"), !1 }), window.vcParallaxSkroll = !1, "function" != typeof window.vc_rowBehaviour && (window.vc_rowBehaviour = function() { var vcSkrollrOptions, callSkrollInit, $ = window.jQuery; function fullWidthRow() { var $elements = $('[data-vc-full-width="true"]'); $.each($elements, function(key, item) { var $el = $(this); $el.addClass("vc_hidden"); var $el_full = $el.next(".vc_row-full-width"); if ($el_full.length || ($el_full = $el.parent().next(".vc_row-full-width")), $el_full.length) { var padding, paddingRight, el_margin_left = parseInt($el.css("margin-left"), 10), el_margin_right = parseInt($el.css("margin-right"), 10), offset = 0 - $el_full.offset().left - el_margin_left, width = $(window).width(); if ("rtl" === $el.css("direction") && (offset -= $el_full.width(), offset += width, offset += el_margin_left, offset += el_margin_right), $el.css({ position: "relative", left: offset, "box-sizing": "border-box", width: width }), !$el.data("vcStretchContent")) "rtl" === $el.css("direction") ? ((padding = offset) < 0 && (padding = 0), (paddingRight = offset) < 0 && (paddingRight = 0)) : ((padding = -1 * offset) < 0 && (padding = 0), (paddingRight = width - padding - $el_full.width() + el_margin_left + el_margin_right) < 0 && (paddingRight = 0)), $el.css({ "padding-left": padding + "px", "padding-right": paddingRight + "px" }); $el.attr("data-vc-full-width-init", "true"), $el.removeClass("vc_hidden"), $(document).trigger("vc-full-width-row-single", { el: $el, offset: offset, marginLeft: el_margin_left, marginRight: el_margin_right, elFull: $el_full, width: width }) } }), $(document).trigger("vc-full-width-row", $elements) } function fullHeightRow() { var windowHeight, offsetTop, fullHeight, $element = $(".vc_row-o-full-height:first"); $element.length && (windowHeight = $(window).height(), (offsetTop = $element.offset().top) < windowHeight && (fullHeight = 100 - offsetTop / (windowHeight / 100), $element.css("min-height", fullHeight + "vh"))); $(document).trigger("vc-full-height-row", $element) } $(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour", fullWidthRow).on("resize.vcRowBehaviour", fullHeightRow), fullWidthRow(), fullHeightRow(), (0 < window.navigator.userAgent.indexOf("MSIE ") || navigator.userAgent.match(/Trident.*rv\:11\./)) && $(".vc_row-o-full-height").each(function() { "flex" === $(this).css("display") && $(this).wrap('
') }), vc_initVideoBackgrounds(), callSkrollInit = !1, window.vcParallaxSkroll && window.vcParallaxSkroll.destroy(), $(".vc_parallax-inner").remove(), $("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"), $("[data-vc-parallax]").each(function() { var skrollrSize, skrollrStart, $parallaxElement, parallaxImage, youtubeId; callSkrollInit = !0, "on" === $(this).data("vcParallaxOFade") && $(this).children().attr("data-5p-top-bottom", "opacity:0;").attr("data-30p-top-bottom", "opacity:1;"), skrollrSize = 100 * $(this).data("vcParallax"), ($parallaxElement = $("
").addClass("vc_parallax-inner").appendTo($(this))).height(skrollrSize + "%"), parallaxImage = $(this).data("vcParallaxImage"), (youtubeId = vcExtractYoutubeId(parallaxImage)) ? insertYoutubeVideoAsBackground($parallaxElement, youtubeId) : void 0 !== parallaxImage && $parallaxElement.css("background-image", "url(" + parallaxImage + ")"), skrollrStart = -(skrollrSize - 100), $parallaxElement.attr("data-bottom-top", "top: " + skrollrStart + "%;").attr("data-top-bottom", "top: 0%;") }), callSkrollInit && window.skrollr && (vcSkrollrOptions = { forceHeight: !1, smoothScrolling: !1, mobileCheck: function() { return !1 } }, window.vcParallaxSkroll = skrollr.init(vcSkrollrOptions), window.vcParallaxSkroll) }), "function" != typeof window.vc_gridBehaviour && (window.vc_gridBehaviour = function() { jQuery.fn.vcGrid && jQuery("[data-vc-grid]").vcGrid() }), "function" != typeof window.getColumnsCount && (window.getColumnsCount = function(el) { for (var find = !1, i = 1; !1 === find;) { if (el.hasClass("columns_count_" + i)) return find = !0, i; i++ } }); var screen_size = getSizeName(); function getSizeName() { var screen_w = jQuery(window).width(); return 1170 < screen_w ? "desktop_wide" : 960 < screen_w && screen_w < 1169 ? "desktop" : 768 < screen_w && screen_w < 959 ? "tablet" : 300 < screen_w && screen_w < 767 ? "mobile" : screen_w < 300 ? "mobile_portrait" : "" } "function" != typeof window.wpb_prepare_tab_content && (window.wpb_prepare_tab_content = function(event, ui) { var $ui_panel, $google_maps, panel = ui.panel || ui.newPanel, $pie_charts = panel.find(".vc_pie_chart:not(.vc_ready)"), $round_charts = panel.find(".vc_round-chart"), $line_charts = panel.find(".vc_line-chart"), $carousel = panel.find('[data-ride="vc_carousel"]'); if (vc_carouselBehaviour(), vc_plugin_flexslider(panel), ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length && ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function() { var grid = jQuery(this).data("vcGrid"); grid && grid.gridBuilder && grid.gridBuilder.setMasonry && grid.gridBuilder.setMasonry() }), panel.find(".vc_masonry_media_grid, .vc_masonry_grid").length && panel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function() { var grid = jQuery(this).data("vcGrid"); grid && grid.gridBuilder && grid.gridBuilder.setMasonry && grid.gridBuilder.setMasonry() }), $pie_charts.length && jQuery.fn.vcChat && $pie_charts.vcChat(), $round_charts.length && jQuery.fn.vcRoundChart && $round_charts.vcRoundChart({ reload: !1 }), $line_charts.length && jQuery.fn.vcLineChart && $line_charts.vcLineChart({ reload: !1 }), $carousel.length && jQuery.fn.carousel && $carousel.carousel("resizeAction"), $ui_panel = panel.find(".isotope, .wpb_image_grid_ul"), $google_maps = panel.find(".wpb_gmaps_widget"), 0 < $ui_panel.length && $ui_panel.isotope("layout"), $google_maps.length && !$google_maps.is(".map_ready")) { var $frame = $google_maps.find("iframe"); $frame.attr("src", $frame.attr("src")), $google_maps.addClass("map_ready") } panel.parents(".isotope").length && panel.parents(".isotope").each(function() { jQuery(this).isotope("layout") }) }), "function" != typeof window.vc_ttaActivation && (window.vc_ttaActivation = function() { jQuery("[data-vc-accordion]").on("show.vc.accordion", function(e) { var $ = window.jQuery, ui = {}; ui.newPanel = $(this).data("vc.accordion").getTarget(), window.wpb_prepare_tab_content(e, ui) }) }), "function" != typeof window.vc_accordionActivate && (window.vc_accordionActivate = function(event, ui) { if (ui.newPanel.length && ui.newHeader.length) { var $pie_charts = ui.newPanel.find(".vc_pie_chart:not(.vc_ready)"), $round_charts = ui.newPanel.find(".vc_round-chart"), $line_charts = ui.newPanel.find(".vc_line-chart"), $carousel = ui.newPanel.find('[data-ride="vc_carousel"]'); void 0 !== jQuery.fn.isotope && ui.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"), ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length && ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function() { var grid = jQuery(this).data("vcGrid"); grid && grid.gridBuilder && grid.gridBuilder.setMasonry && grid.gridBuilder.setMasonry() }), vc_carouselBehaviour(ui.newPanel), vc_plugin_flexslider(ui.newPanel), $pie_charts.length && jQuery.fn.vcChat && $pie_charts.vcChat(), $round_charts.length && jQuery.fn.vcRoundChart && $round_charts.vcRoundChart({ reload: !1 }), $line_charts.length && jQuery.fn.vcLineChart && $line_charts.vcLineChart({ reload: !1 }), $carousel.length && jQuery.fn.carousel && $carousel.carousel("resizeAction"), ui.newPanel.parents(".isotope").length && ui.newPanel.parents(".isotope").each(function() { jQuery(this).isotope("layout") }) } }), "function" != typeof window.initVideoBackgrounds && (window.initVideoBackgrounds = function() { return window.console && window.console.warn && window.console.warn("this function is deprecated use vc_initVideoBackgrounds"), vc_initVideoBackgrounds() }), "function" != typeof window.vc_initVideoBackgrounds && (window.vc_initVideoBackgrounds = function() { jQuery("[data-vc-video-bg]").each(function() { var youtubeUrl, youtubeId, $element = jQuery(this); $element.data("vcVideoBg") ? (youtubeUrl = $element.data("vcVideoBg"), (youtubeId = vcExtractYoutubeId(youtubeUrl)) && ($element.find(".vc_video-bg").remove(), insertYoutubeVideoAsBackground($element, youtubeId)), jQuery(window).on("grid:items:added", function(event, $grid) { $element.has($grid).length && vcResizeVideoBackground($element) })) : $element.find(".vc_video-bg").remove() }) }), "function" != typeof window.insertYoutubeVideoAsBackground && (window.insertYoutubeVideoAsBackground = function($element, youtubeId, counter) { if ("undefined" == typeof YT || void 0 === YT.Player) return 100 < (counter = void 0 === counter ? 0 : counter) ? void console.warn("Too many attempts to load YouTube api") : void setTimeout(function() { insertYoutubeVideoAsBackground($element, youtubeId, counter++) }, 100); var $container = $element.prepend('
').find(".inner"); new YT.Player($container[0], { width: "100%", height: "100%", videoId: youtubeId, playerVars: { playlist: youtubeId, iv_load_policy: 3, enablejsapi: 1, disablekb: 1, autoplay: 1, controls: 0, showinfo: 0, rel: 0, loop: 1, wmode: "transparent" }, events: { onReady: function(event) { event.target.mute().setLoop(!0) } } }), vcResizeVideoBackground($element), jQuery(window).bind("resize", function() { vcResizeVideoBackground($element) }) }), "function" != typeof window.vcResizeVideoBackground && (window.vcResizeVideoBackground = function($element) { var iframeW, iframeH, marginLeft, marginTop, containerW = $element.innerWidth(), containerH = $element.innerHeight(); containerW / containerH < 16 / 9 ? (iframeW = containerH * (16 / 9), iframeH = containerH, marginLeft = -Math.round((iframeW - containerW) / 2) + "px", marginTop = -Math.round((iframeH - containerH) / 2) + "px") : (iframeH = (iframeW = containerW) * (9 / 16), marginTop = -Math.round((iframeH - containerH) / 2) + "px", marginLeft = -Math.round((iframeW - containerW) / 2) + "px"), iframeW += "px", iframeH += "px", $element.find(".vc_video-bg iframe").css({ maxWidth: "1000%", marginLeft: marginLeft, marginTop: marginTop, width: iframeW, height: iframeH }) }), "function" != typeof window.vcExtractYoutubeId && (window.vcExtractYoutubeId = function(url) { if (void 0 === url) return !1; var id = url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/); return null !== id && id[1] }), "function" != typeof window.vc_googleMapsPointer && (window.vc_googleMapsPointer = function() { var $ = window.jQuery, $wpbGmapsWidget = $(".wpb_gmaps_widget"); $wpbGmapsWidget.on("click", function() { $("iframe", this).css("pointer-events", "auto") }), $wpbGmapsWidget.on("mouseleave", function() { $("iframe", this).css("pointer-events", "none") }), $(".wpb_gmaps_widget iframe").css("pointer-events", "none") }), "function" != typeof window.vc_setHoverBoxPerspective && (window.vc_setHoverBoxPerspective = function(hoverBox) { hoverBox.each(function() { var $this = jQuery(this), perspective = 4 * $this.width() + "px"; $this.css("perspective", perspective) }) }), "function" != typeof window.vc_setHoverBoxHeight && (window.vc_setHoverBoxHeight = function(hoverBox) { hoverBox.each(function() { var $this = jQuery(this), hoverBoxInner = $this.find(".vc-hoverbox-inner"); hoverBoxInner.css("min-height", 0); var frontHeight = $this.find(".vc-hoverbox-front-inner").outerHeight(), backHeight = $this.find(".vc-hoverbox-back-inner").outerHeight(), hoverBoxHeight = backHeight < frontHeight ? frontHeight : backHeight; hoverBoxHeight < 250 && (hoverBoxHeight = 250), hoverBoxInner.css("min-height", hoverBoxHeight + "px") }) }), "function" != typeof window.vc_prepareHoverBox && (window.vc_prepareHoverBox = function() { var hoverBox = jQuery(".vc-hoverbox"); vc_setHoverBoxHeight(hoverBox), vc_setHoverBoxPerspective(hoverBox) }), jQuery(document).ready(window.vc_prepareHoverBox), jQuery(window).resize(window.vc_prepareHoverBox), jQuery(document).ready(function($) { window.vc_js() }) }(window.jQuery);