! function($){
'use strict';
Codevz_Plus.parallax=function(){
var body=$(document.body);
$('[class*="cz_mparallax_"]').codevzPlus('mparallax', function(x){
$(window).on('mousemove', function(e){
if(Codevz_Plus.inview(x, 750)){
var sp=-(( parseInt(x.attr("class").replace(/[^\d-]/g, ""))||50) * 10),
xx=e.pageX - x.offset().left -(x.width() / 2),
yy=e.pageY - x.offset().top -(x.height() / 2),
xx=xx / $(this).width(),
yy=yy / $(this).height();
x.css('transform', 'translate3d(' + Math.round(xx * sp) + 'px,' + Math.round(yy * sp) + 'px, 0px)');
}});
});
var par=$('[class*="cz_parallax_"]'),
all=par.length - 1;
par.codevzPlus('parallax', function(x, i){
var c=x.attr('class'),
f=c ? parseInt(c.replace(/[^\d-]/g, '')) / 100:'undefined',
g=(x.outerHeight(), f)||0,
j=x.data('offset')||0;
$(window).on('scroll.parallax', function(){
var e=(x.outerHeight(), $(this).scrollTop()) + 250,
r=Math.round(( x.offset().top - $(this).height() / 2 - e) * g - j);
if(x.hasClass('cz_parallax_stop')){
r=r < 0 ? 0:r;
}
e < $(document).height()&&x.css('transform', 'translate' +(c.indexOf('_v_') >=0 ? 'Y':'X') + '(' + r + 'px)');
});
all===i&&$(window).trigger('scroll.parallax');
});
};
Codevz_Plus.parallax();
}(jQuery);
! function($){
"use strict";
Codevz_Plus.accordion=function(wpb){
wpb&&$('.cz_acc').removeData('codevz');
$('.cz_acc').codevzPlus('acc', function(x){
var arrows=x.data('arrows');
x.find('.cz_acc_open_icon, .cz_acc_close_icon').remove();
x.find('.cz_acc_child').append('<i class="cz_acc_open_icon ' + arrows.open + '"></i><i class="cz_acc_close_icon ' + arrows.close + '"></i>');
if(x.hasClass('cz_acc_first_open')){
x.find('> div > div:first').addClass('cz_isOpen').find('.cz_acc_child_content').show();
x.find('> div > div:first .cz_acc_open_icon').hide().next('i').show();
}
x.find('.cz_acc_child').off('click').on('click', function(e){
var dis=$(this),
clo=dis.closest('.cz_acc'),
con=dis.next();
if(con.is(':visible')){
dis.find('.cz_acc_open_icon').show().next('i').hide();
con.slideUp().parent().removeClass('cz_isOpen');
return;
}
if(! clo.hasClass('cz_acc_toggle')){
clo.find('.cz_acc_open_icon').show().next('i').hide();
clo.find('.cz_acc_child_content').slideUp().parent().removeClass('cz_isOpen');
}
dis.find('.cz_acc_open_icon').hide().next('i').show();
con.slideToggle().parent().toggleClass('cz_isOpen');
if(con.find('.cz_grid').data('isotope')){
setTimeout(function(){
con.find('.cz_grid').isotope('layout');
}, 250);
}
return false;
});
});
};
Codevz_Plus.accordion();
}(jQuery);
! function($){
"use strict";
Codevz_Plus.image=function(wpb){
wpb&&Codevz_Plus.lightGallery($('#' + wpb).closest('.cz_wrap'));
$(document.body).on('mouseenter mousemove mouseleave', '.cz_image_caption_sticky', function(e){
if(e.type==='mouseleave'){
$(this).find('.cz_image_caption').fadeOut(100);
}else{
$(this).find('.cz_image_caption').fadeIn(100).css({
top: e.offsetY + 30,
left: e.offsetX
}
);
}});
};
Codevz_Plus.image();
}(jQuery);
!function(){"use strict";var s,t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};s=function(g){return g.fn.tilt=function(i){function s(){this.ticking||(requestAnimationFrame(t.bind(this)),this.ticking=!0)}function e(){var t=this;void 0!==this.timeout&&clearTimeout(this.timeout),g(this).css({transition:this.settings.speed+"ms "+this.settings.easing}),this.settings.glare&&this.glareElement.css({transition:"opacity "+this.settings.speed+"ms "+this.settings.easing}),this.timeout=setTimeout(function(){g(t).css({transition:""}),t.settings.glare&&t.glareElement.css({transition:""})},this.settings.speed)}function n(t){return void 0===t&&(t={pageX:g(this).offset().left+g(this).outerWidth()/2,pageY:g(this).offset().top+g(this).outerHeight()/2}),{x:t.pageX,y:t.pageY}}function a(){var t=g(this).outerWidth(),i=g(this).outerHeight(),s=g(this).offset().left,e=g(this).offset().top,n=(this.mousePositions.x-s)/t,a=(this.mousePositions.y-e)/i;return{tiltX:(this.settings.maxTilt/2-n*this.settings.maxTilt).toFixed(2),tiltY:(a*this.settings.maxTilt-this.settings.maxTilt/2).toFixed(2),percentageX:100*n,percentageY:100*a,angle:Math.atan2(this.mousePositions.x-(s+t/2),-(this.mousePositions.y-(e+i/2)))*(180/Math.PI)}}var r=function(t){this.ticking=!1,g(this).css({"will-change":"transform"}),e.call(this),g(this).trigger("tilt.mouseEnter")},o=function(t){this.mousePositions=n(t),s.call(this)},h=function(){e.call(this),this.reset=!0,s.call(this),g(this).trigger("tilt.mouseLeave")},t=function(){return this.transforms=a.call(this),this.reset?(this.reset=!1,g(this).css("transform","perspective("+this.settings.perspective+"px) rotateX(0deg) rotateY(0deg)"),void(this.settings.glare&&(this.glareElement.css("transform","rotate(180deg) translate(-50%, -50%)"),this.glareElement.css("opacity","0")))):(g(this).css("transform","perspective("+this.settings.perspective+"px) rotateX("+("x"===this.settings.axis?0:this.transforms.tiltY)+"deg) rotateY("+("y"===this.settings.axis?0:this.transforms.tiltX)+"deg) scale3d("+this.settings.scale+","+this.settings.scale+","+this.settings.scale+")"),this.settings.glare&&(this.glareElement.css("transform","rotate("+this.transforms.angle+"deg) translate(-50%, -50%)"),this.glareElement.css("opacity",""+this.transforms.percentageY*this.settings.maxGlare/100)),g(this).trigger("change",[this.transforms]),void(this.ticking=!1))},l=function(){this.glareElement.css({width:""+2*g(this).outerWidth(),height:""+2*g(this).outerWidth()})};return g.fn.tilt.destroy=function(){g(this).each(function(){g(this).find(".js-tilt-glare").remove(),g(this).css({"will-change":"",transform:""}),g(this).off("mousemove mouseenter mouseleave")})},g.fn.tilt.getValues=function(){var t=[];return g(this).each(function(){this.mousePositions=n.call(this),t.push(a.call(this))}),t},g.fn.tilt.reset=function(){g(this).each(function(){var t=this;this.mousePositions=n.call(this),this.settings=g(this).data("settings"),h.call(this),setTimeout(function(){t.reset=!1},this.settings.transition)})},this.each(function(){var t=this;this.settings=g.extend({maxTilt:g(this).is("[data-tilt-max]")?g(this).data("tilt-max"):20,perspective:g(this).is("[data-tilt-perspective]")?g(this).data("tilt-perspective"):300,easing:g(this).is("[data-tilt-easing]")?g(this).data("tilt-easing"):"cubic-bezier(.03,.98,.52,.99)",scale:g(this).is("[data-tilt-scale]")?g(this).data("tilt-scale"):"1",speed:g(this).is("[data-tilt-speed]")?g(this).data("tilt-speed"):"400",transition:!g(this).is("[data-tilt-transition]")||g(this).data("tilt-transition"),axis:g(this).is("[data-tilt-axis]")?g(this).data("tilt-axis"):null,reset:!g(this).is("[data-tilt-reset]")||g(this).data("tilt-reset"),glare:!!g(this).is("[data-tilt-glare]")&&g(this).data("tilt-glare"),maxGlare:g(this).is("[data-tilt-maxglare]")?g(this).data("tilt-maxglare"):1},i),this.init=function(){g(t).data("settings",t.settings),t.settings.glare&&function(){var t=this.settings.glarePrerender;t||g(this).append('<div class="js-tilt-glare"><div class="js-tilt-glare-inner"></div></div>'),this.glareElementWrapper=g(this).find(".js-tilt-glare"),this.glareElement=g(this).find(".js-tilt-glare-inner"),t||(this.glareElementWrapper.css({position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}).css({overflow:"hidden"}),this.glareElement.css({position:"absolute",top:"50%",left:"50%","pointer-events":"none","background-image":"linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%)",width:""+2*g(this).outerWidth(),height:""+2*g(this).outerWidth(),transform:"rotate(180deg) translate(-50%, -50%)","transform-origin":"0% 0%",opacity:"0"}))}.call(t),function(){g(this).on("mousemove",o),g(this).on("mouseenter",r),this.settings.reset&&g(this).on("mouseleave",h),this.settings.glare&&g(window).on("resize",l.bind(this))}.call(t)},this.init()})},g("[data-tilt]").tilt(),!0},"function"==typeof define&&define.amd?define(["jquery"],s):"object"===("undefined"==typeof module?"undefined":t(module))&&module.exports?module.exports=function(t,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(t)),s(i),i}:s(jQuery)}(jQuery);
! function($){
"use strict";
Codevz_Plus.tilt=function(){
$('[data-tilt]').codevzPlus('tilt', function(x){
var tilt=x.tilt({ maxTilt: 6 });
tilt.on('tilt.mouseEnter', function(){
$(this).css('animation-name', 'none');
});
});
};
Codevz_Plus.tilt();
}(jQuery);
jQuery(function($){
$('header .cz_elm_info_box').each(function(){
var x=$(this),
breakpoint=960,
timeout;
if(x.parent().parent().find('.cz_elm_info_box').length > 1){
breakpoint=1024;
}
$(window).on('resize.icon_text', function(){
clearTimeout(timeout);
timeout=setTimeout(function(){
x[($(this).width() < breakpoint) ? 'addClass':'removeClass' ]('xtra-hide-text');
}, 1000);
});
});
});
jQuery(function($){
if($('.outer_search').length){
var body=$(document.body);
body.on('keyup', '.cz_ajax_search [name="s"]', function(e, time){
clearTimeout(time);
var form=$(this).parent(),
results=form.next('.ajax_search_results'),
icon=$('button i', form),
org='fa ' + icon.data('xtra-icon'),
iLoader='fa fa-superpowers fa-pulse';
if($(this).val().length < 3){
$('.ajax_search_results').slideUp('fast');
icon.removeClass(iLoader).addClass(org);
return;
}else{
icon.removeClass(org).addClass(iLoader);
}
time=setTimeout(
function(){
$.ajax({
type: "GET",
url: body.data('ajax')||ajaxurl,
dataType: 'html',
data: "action=codevz_ajax_search&" + form.serialize(),
success: function(data){
results.html(data).slideDown('fast');
icon.removeClass(iLoader).addClass(org);
},
error: function(xhr, status, error){
results.html('<b class="ajax_search_error">' + error + '</b>').slideDown('fast');
icon.removeClass(iLoader).addClass(org);
console.log(xhr, status, error);
}});
},
1000
);
}).on('click', '.search_with_icon', function(e){
e.stopPropagation();
}).on('click', '.search_with_icon [name="s"]', function(){
if($(this).val()){
$('.ajax_search_results').slideDown('fast');
}}).on('click', '.search_style_icon_dropdown .xtra-search-icon', function(){
var x=$(this),
outer=x.parent().find('.outer_search'),
row_h=x.closest('.row').height(),
clr=x.closest('.clr');
if(outer.is(':visible')){
outer.fadeOut('fast');
}else{
outer.fadeIn('fast').find('input').trigger('focus');
}}).on('mouseenter', '.search_style_icon_dropdown', function(){
var x=$(this),
iconX=x.find('.xtra-search-icon'),
iconWidth=iconX.outerWidth(),
dropdown=x.find('.outer_search');
if(( $(window).width() / 2) >(x.offset().left + 100)){
x.addClass('inview_right');
var iconMl=parseFloat(iconX.css('marginLeft'));
if(body.hasClass('rtl')){
dropdown.css('left',(( iconWidth / 2) - 38 + iconMl));
}else{
dropdown.css('left', -(( iconWidth / 2) - 36 + iconMl));
}}else{
dropdown.css('right',(( iconWidth / 2) - 36 + parseFloat(iconX.css('marginRight'))));
}}).on('click', '.search_style_icon_full .xtra-search-icon', function(e){
var x=$(this);
x.parent().find('.outer_search').fadeIn('fast').find('input').trigger('focus');
$(window).on('resize.search', function(){
var t=$(this),
w=t.width(),
h=t.height(),
s=t.find('.outer_search .search');
s.css({
'top': h / 4 - s.height() / 2,
'left': w / 2 - s.width() / 2
});
});
x.parent().find('.xtra-close-icon').toggleClass('hide').off().on('click', function(e){
$(this).addClass('hide').parent().find('.outer_search').fadeOut('fast');
});
}).on('click', '#layout, .outer_search', function(e){
if($(e.target).closest('.outer_search .search').length){
return;
}
body.find('.ajax_search_results').fadeOut('fast');
body.find('.search_style_icon_dropdown, .search_style_icon_full').find('.outer_search').fadeOut('fast');
body.find('.search_style_icon_full .xtra-close-icon').addClass('hide');
});
}});
jQuery(window).on('elementor/frontend/init', function(){
class XtraElementor extends elementorModules.frontend.handlers.Base {
onInit(name, event){
this.onElementChange('', this.getWidgetType());
};
onElementChange(name, event){
var widget=name ? event._parent.model.attributes.widgetType:event;
if(widget&&widget.indexOf('cz_')==0&&name.indexOf('sk_') < 0){
widget=widget.replace('cz_', '');
setTimeout(function(){
typeof Codevz_Plus.css!='undefined'&&Codevz_Plus.css();
typeof Codevz_Plus[ widget ]!='undefined'&&Codevz_Plus[ widget ]();
typeof Codevz_Plus.parallax!='undefined'&&Codevz_Plus.parallax();
typeof Codevz_Plus.tilt!='undefined'&&Codevz_Plus.tilt();
}, 150);
}}
}
elementorFrontend.hooks.addAction('frontend/element_ready/widget', function($element){
elementorFrontend.elementsHandler.addHandler(XtraElementor, { $element });
});
});
function xtraElementorTilt(settings){
var tilt='';
if(settings.tilt){
tilt=' data-tilt';
tilt=tilt +(settings.glare ? ' data-tilt-maxGlare="' + settings.glare + '" data-tilt-glare="true"':'');
tilt=tilt +(settings.scale ? ' data-tilt-scale="' + settings.scale + '"':'');
}
return tilt;
}
function xtraElementorParallax(settings, close){
var html='';
if(close){
if(pm){
html +='</div>';
}
if(ph){
html +='</div>';
}}else{
var ph=settings.parallax ? settings.parallax:'',
pp=settings.parallax_speed ? settings.parallax_speed:'',
pp=pp +(settings.parallax_stop ? ' cz_parallax_stop':''),
pm=settings.mouse_speed&&ph.includes('mouse');
if(pm){
html +='<div class="cz_mparallax_' + settings.mouse_speed + '">';
}
if(ph){
var d=(ph=='true'||ph==='truemouse') ? 'h':'v';
html +='<div class="clr cz_parallax_' + d + '_' + pp + '">';
}}
return html;
};