function LibraryFive(options){
var self=this;
this.options=$.extend({
"preloaderImage":WPURL.theme + "js/img/five-preloader.svg",
"messageIdName": "five-message-popup",
"timeShowMessage": 3000
}, options)
this.startLoading=function (){
self.stopLoading();
$("<div />")
.attr("id", "five-loading")
.addClass("five-preloader")
.append("<img src='" + self.options.preloaderImage + "'>")
.appendTo($("body"));
};
this.startLoadingContainer=function (container){
self.stopLoading();
$("<div />")
.attr("id", "five-loading")
.addClass("five-preloader")
.css("position", "absolute")
.append("<img src='" + self.options.preloaderImage + "'>")
.appendTo(container);
}
this.stopLoading=function (){
$("#five-loading").remove();
};
this.setSvgColor=function(imgSvg){
imgSvg.find("img").each(function(){
var $img=$(this);
var imgID=$img.attr('id');
var imgClass=$img.attr('class');
var imgURL=$img.attr('src');
var $imgW=$img.width();
$.get(imgURL, function(data){
var $svg=$(data).find('svg');
if(typeof imgID!=='undefined'){
$svg=$svg.attr('id', imgID);
}
if(typeof imgClass!=='undefined'){
$svg=$svg.attr('class', imgClass+' replaced-svg');
}
$svg=$svg.removeAttr('xmlns:a');
if(!$svg.attr('viewBox')&&$svg.attr('height')&&$svg.attr('width')){
$svg.attr('viewBox', '0 0 ' + $imgW + ' ' + $imgW)
}
$img.replaceWith($svg);
}, 'xml');
});
}
this.showMessage=function(message, hide, next){
if(typeof next==="undefined") next=true;
if(typeof hide==="undefined") hide=true;
if(next){
self.hideMessage();
}
var messagePopup=$("<div />")
.attr("id",self.options.messageIdName)
.appendTo($("body"))
.html(message);
var messagePopupClose=$("<div />")
.attr("id","five-message-popup-close")
.appendTo(messagePopup)
.html("<i class='fas fa-times'></i>").
on("click", function(){
self.hideMessage();
});
var w=$("#" + self.options.messageIdName).width();
var h=$("#" + self.options.messageIdName).height();
$("#" + self.options.messageIdName).css({marginTop:-h/2+"px",marginLeft:-w/2+"px"})
if(hide){
setTimeout(function(){
self.hideMessage();
}, self.options.timeShowMessage);
}}
this.hideMessage=function (){
$("#" + self.options.messageIdName).remove();
};
this.validEmail=function(email){
var reg=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])/
return reg.test(email);
}
this.validPhone=function(phone){
var reg=/^\+([0-9 ]{11,15})$/
return reg.test(phone);
}
this.validName=function(name){
var reg=/^([A-ZÄšĹ ÄŚĹĹ˝ĂťĂĂŤĂ‰a-zÄ›ĹˇÄŤĹ™ĹľĂ˝ĂˇĂ­Ă©Đ-ĐŻĐ†Đ‡Đ„a-zĐ°-ŃŹŃ–Ń—Ń”]{1})+([A-ZÄšĹ ÄŚĹĹ˝ĂťĂĂŤĂ‰a-zÄ›ĹˇÄŤĹ™ĹľĂ˝ĂˇĂ­Ă©Đ-ĐŻĐ†Đ‡Đ„a-zĐ°-ŃŹŃ–Ń—Ń”\' ]{2,20})$/
return reg.test(name);
}
this.validText=function(text){
var reg=reg=/\<.+\>.+\<\/.+\>/gm;
return !reg.test(text);
}
this.validSelect=function(select){
if(select==0) return false;
return true;
}
this.showErrorInput=function(div, message, time){
self.hideErrorInput(div);
if(typeof time==="undefined") time=self.options.timeShowMessage;
div.addClass("five-require-error-input")//"border-left", "3px solid #f00")
if(div.parent().find(".five-require-error-message").length==0){
div.parent().append("<div class='five-require-error-message'>" + message + "</div>");
}
self.outTime=setTimeout(function(){
self.hideErrorInput();
}, time);
}
this.hideErrorInput=function(div){
clearTimeout(self.outTime);
if(typeof div==="undefined"){
$(".five-require-error-input").removeClass("five-require-error-input");
$(".five-require-error-message").remove();
}else{
div.find(".five-require-error-input").removeClass("five-require-error-input");
div.find(".five-require-error-message").remove();
}};
this.placeholderSelectBox=function(box){
var selectLabel;
$(box).change(function(){
var value=$(this).find("option:selected").val();
selectLabel=$(" + label", this);
if(value==0){
selectLabel.stop().animate({top:"0", fontSize:"14px"}, 200);
}else{
selectLabel.stop().animate({top:"-10px", fontSize:"10px"}, 200);
};});
}
this.placeholderInputBox=function(box){
$(box).each(function(){
var label;
var $this=this;
$($this).stop().focus(function(){
label=$("+ label", this);
label.stop().animate({top:"-10px", fontSize:"10px"}, 200)
})
$($this).stop().blur(function(event){
setTimeout(function(){
if($($this).val()==""){
label.stop().animate({top:"0", fontSize:"14px"}, 200)
}},200)
});
})
}
this.existClass=function(cl){
if($(cl).length > 0){
return true;
}
return false;
}
this.getQueryParams=function(){
qs=document.location.search.split('+').join(' ');
var params={},
tokens,
re=/[?&]?([^=]+)=([^&]*)/g;
while (tokens=re.exec(qs)){
params[decodeURIComponent(tokens[1])]=decodeURIComponent(tokens[2]);
}
return params;
}
this.qTranslate=function (str){
var reg=new RegExp("\\[:" + $.cookie('qtrans_front_language') + "\\]([^\\[]*)");
var test=str.match(reg);
return test[1];
}
this.showErrorMessage=function(add, message){
if(typeof add==="undefined"){
add=false;
}
if(typeof message==="undefined"&&!add){
$("#five-error-message-div").remove();
return;
}
var errorDivElement, errorDivMessage, messagePopupClose;
if($("#five-error-message-div").length==0){
errorDivElement=$("<div />")
.attr("id", "five-error-message-div")
.appendTo($("body"));
errorDivMessage=$("<span />")
.appendTo(errorDivElement);
messagePopupClose=$("<div />")
.attr("id","five-error-message-div-close")
.prependTo(errorDivElement)
.html("<i class='fas fa-times'></i>").
on("click", function(){
errorDivElement.remove();
});
}
if(add){
$("<div>" + message + "</div>").appendTo("#five-error-message-div span")
}else{
$("#five-error-message-div span").html("<div>" + message + "</div>")
}}
}
var FIVE=new LibraryFive();
(function($){
"use strict";
$.fn.showErrorInput=function(options){
options=$.extend({
message: "",
time: 5000
}, options);
FIVE.showErrorInput($(this), options.message, options.time);
}
$.fn.hideErrorInput=function(options){
FIVE.hideErrorInput();
}
$.fn.maskPhone=function(options){
options=$.extend({
mask: "+888 888 888 888"
}, options);
var id=$(this).attr("id");
var maskNemberLength=(options.mask.match(/8/g)||[]).length;
var maskAllLength=options.mask.length;
$(this)
.focus(function(){
if($(this).val()==""){
$(this).val("+")
}}).keydown(function(event){
var charCode=event.keyCode;
var count=$(this).val().length;
if(charCode >=65&&charCode <=90){
return false;
}
if(count==1&&$(this).val()!="+"){
var v="+" + $(this).val();
$(this).val(v)
}
if((count==4||count==8||count==12)&&charCode!=8){
var v=$(this).val() + " ";
$(this).val(v)
}
if(count < maskAllLength){
if(((charCode >=48&&charCode <=57)||(charCode >=96&&charCode <=105)||charCode==187||charCode==8||charCode==46||charCode==9)){
return;
}else{event.preventDefault(); }}else{
if(charCode==8||(charCode >=37&&charCode <=40)||charCode==8||charCode==9){
return;
}else{event.preventDefault(); }}
}).bind('focus click', function (){
if($(this).val().length===0){
$(this).val('+');
}else{
var v=$(this).val();
$(this).val('').val(v);
}}).blur(function (){
if($(this)==='+'){
$(this).val('');
}});;
}})(jQuery);
function popUp(element, options){
var defaults={
close: '[data-dismiss="windowjs"]',
trigger: '[data-toggle="windowjs"]',
display:'flex',
position:'fixed',
width:'100%',
height:'100%',
viewport: false,
top:'0px',
left:'0px',
zIndexIn: '9999',
zIndexOut: '-9999',
backgroundColor: '#fff',
opacityIn:'1',
opacityOut:'0',
autostart: false,
animatedIn:'zoomIn',
animatedOut:'zoomOut',
animationDuration:'.5s',
beforeOpen: function(){},
afterOpen: function(){},
beforeClose: function(){},
afterClose: function(){}};
var plugin=this;
plugin.settings={}
var $element=$(element);
plugin.init=function(){
plugin.settings=$.extend({}, defaults, options);
var stylesInit={
'display': plugin.settings.display,
'position': plugin.settings.position,
'width': plugin.settings.width,
'height': plugin.settings.height,
'background-color': plugin.settings.backgroundColor,
'z-index': plugin.settings.zIndexOut,
'opacity': plugin.settings.opacityOut,
'-webkit-animation-duration': plugin.settings.animationDuration,
'-moz-animation-duration': plugin.settings.animationDuration,
'-ms-animation-duration': plugin.settings.animationDuration,
'animation-duration': plugin.settings.animationDuration
};
if(parseInt(plugin.settings.top)!=NaN&&parseInt(plugin.settings.top) > 0||plugin.settings.top=="auto"){
stylesInit.top=(plugin.settings.top=='auto' ?($(window).height() - $element.height() - parseInt($element.css("padding-top")) * 2) / 2:plugin.settings.top);
}else{
stylesInit.bottom=parseInt(plugin.settings.top) * (-1) + "px";
}
if(parseInt(plugin.settings.left)!=NaN&&parseInt(plugin.settings.left) > 0||plugin.settings.left=="auto"){
console.log($element.width())
stylesInit.left=(plugin.settings.left=='auto' ?($(window).width() - $element.width() - parseInt($element.css("padding-left")) * 2) / 2:plugin.settings.left);
}else{
stylesInit.right=parseInt(plugin.settings.left) * (-1) + "px";
}
$element.css(stylesInit);
if(plugin.settings.viewport){
resize();
$(window).resize(resize);
}
$(document).on('click', plugin.settings.trigger, function(event){
event.preventDefault();
start();
});
$element.find(plugin.settings.close).bind('click', function(event){
event.preventDefault();
if(plugin.settings.viewport){
$('body').removeAttr('style');
}
plugin.settings.beforeClose();
$element.removeClass('animated ' + plugin.settings.animatedIn).addClass('animated ' + plugin.settings.animatedOut);
$element.one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', afterClose);
});
if(plugin.settings.autostart){
start();
}
function start(){
var stylesOnLoad={
'opacity': plugin.settings.opacityIn,
'z-index': plugin.settings.zIndexIn
};
if(plugin.settings.viewport){
$('body').css('overflow', 'hidden');
}
plugin.settings.beforeOpen();
$element.css(stylesOnLoad);
$element.removeClass('animated ' + plugin.settings.animatedOut).addClass('animated ' + plugin.settings.animatedIn);
$element.one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', afterOpen);
}
function resize(){
$element.css('height', $(window).height());
}
function afterClose(){
var stylesOnClose={
'opacity': plugin.settings.opacityOut,
'z-index': plugin.settings.zIndexOut
};
$element.css(stylesOnClose);
plugin.settings.afterClose();
}
function afterOpen(){
plugin.settings.afterOpen();
}}
plugin.open=function(){
var stylesOnLoad={
'opacity': plugin.settings.opacityIn,
'z-index': plugin.settings.zIndexIn
};
if(plugin.settings.viewport){
$('body').css('overflow', 'hidden');
}
plugin.settings.beforeOpen();
$element.css(stylesOnLoad);
$element.removeClass('animated ' + plugin.settings.animatedOut).addClass('animated ' + plugin.settings.animatedIn);
$element.one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', plugin.settings.afterOpen);
}
plugin.init();
};
$.fn.isInViewport=function(){
var elementTop=$(this).offset().top;
var elementBottom=elementTop + $(this).outerHeight();
var viewportTop=$(window).scrollTop();
var viewportBottom=viewportTop + $(window).height();
return elementBottom > viewportTop&&elementTop < viewportBottom;
};
function o_HidePagination(){
var t;
var delay=5000;
$(window).on("mousemove, scroll", function(){
clearTimeout(t);
$(".pagination_service").removeClass("out");
var t=setTimeout(function(){
$(".pagination_service").addClass("out");
}, delay);
});
}
function o_ShowPagination(){
setTimeout(function(){
$(".pagination_service").addClass("out");
}, 5000)
}
$(document).on('gform_page_loaded', (event, form_id, current_page)=> {
console.log(current_page);
});
$(document).ready(function(){
o_Video_post("video_wrapper");
o_Slim_select_price();
o_Review_carousel();
o_Header_fix();
o_Align_blocks($("#mega-menu-wrap-primary #mega-menu-primary .menu-our-works .mega-sub-menu > .mega-menu-column"));
o_Align_blocks($("#mega-menu-wrap-primary #mega-menu-primary .menu-services .mega-sub-menu > .mega-menu-column"));
o_Align_image_blocks($(".service-wrapper .rounded-circle"));
o_Display_search();
o_Service_main_image();
o_Btn_booking();
o_Mobile_menu_after_header();
o_Custom_antispam();
o_Fb_next();
o_readMore();
if($(window).width() > 570){
o_Open_image();
}
if($("#input_2_16").length > 0){
var today=new Date();
var dd=String(today.getDate()).padStart(2, '0');
var mm=String(today.getMonth() + 1).padStart(2, '0');
var yyyy=today.getFullYear();
today=dd + '.' + mm + '.' + yyyy;
$.datetimepicker.setLocale(WPURL.pll_current_language);
$("#input_2_16").datetimepicker({
format:'d.m.Y H:i',
allowTimes:[
'8:00', '8:30', '9:00', '9:30', '10:00', '10:30', '11:00', '11:30', '12:00', '12:30', '13:00', '13:30', '14:00', '14:30', '15:00', '15:30',
'16:00', '16:30', '17:00', '17:30', '18:00', '18:30', '19:00', '19:30'
],
disabledWeekDays: [0],
minDate: today,
dayOfWeekStart: 1,
});
}
$("#booking").contents().find("body").css({"background-image": "none", "background-color": "transparent"});
/*
const canvas=document.getElementById("canvas");
const ctx=canvas.getContext("2d");
window.onload=window.onresize=function(){
const scale=window.devicePixelRatio;
setup();
if(typeof running=='undefined') window.requestAnimationFrame(draw);
running=true;
}
function setup(){
ctx.fillStyle='#efefef';
ctx.fillRect(0,0,canvas.width,canvas.height);
ctx.strokeStyle='hsl(40,'+(Math.random()*100)+'%,70%)';
ctx.lineJoin='round';
ctx.lineWidth=2;
ctx.lineTo(0,50);
ribbonA=new SimplexNoise();
ribbonB=new SimplexNoise();
numLines=(Math.random() * 64) + 32;
sectorSize=canvas.width / numLines;
offset=(canvas.width % sectorSize) / 2;
t=Math.random();
y=Math.random();
}
function draw(){
window.requestAnimationFrame(draw);
t +=0.002;
y +=0.001;
ctx.fillRect(0,0,canvas.width,canvas.height);
ctx.strokeStyle='hsl(40,40%,70%)';
ctx.beginPath();
for (let i=0; i <=numLines; i++){
let x=i * sectorSize + offset;
ctx.lineTo(x, (1+ribbonA.noise2D(t+i/196,y))/2*canvas.height);
}
ctx.stroke();
}
setup();
*/
$(".smooth-appearance").css({"opacity": 1, "top":0});
})
$(window).scroll(function (){
o_Scroll_button_display();
})
$(window).resize(function (){
o_Align_image_blocks($(".service-wrapper .rounded-circle"));
o_Btn_booking();
o_Mobile_menu_after_header();
})
function o_Service_main_image(){
if($(".service-main-image").length > 0){
var w=$(".service-main-image").width();
$(".service-main-image").height(w);
}}
function o_Align_blocks(block, mobile){
if(block.length==0) return;
if(typeof mobile==="undefined") mobile=false;
if($("body.mobile").length!=0&&!mobile) return;
var height=0;
block.each(function(){
var currentBlockHeight=$(this).height();
if(currentBlockHeight > height){
height=currentBlockHeight;
}});
block.height(height);
return height;
}
function o_Align_image_blocks(block){
var height=0;
block.each(function(){
var currentBlockHeight=$(this).width();
if(currentBlockHeight > height){
height=currentBlockHeight;
}});
block.height(height);
}
function focus(){
$(".search-form-wrapper").find("input").focus();
}
function o_Display_search(){
$(".search-form-wrapper").find("input").focus();
$(".search-btn").click(function(){
$(".search-form-wrapper").addClass("display");
setTimeout(function(){
$(".search-form-wrapper").find("input").focus();
},1000)
$(document).mouseup(function(e){
var container=$(".search-form-wrapper");
if(!container.is(e.target)&&container.has(e.target).length===0){
container.removeClass("display");
}});
})
}
function o_Open_image(){
function click_by_image(self, index){
$(".five-overlay-wrapper").css({"z-index": "99999", "position": "relative"});
$(".five-lightbox-pictures").html("");
var link=self.parent().attr("data-link");
var popup_work_image=$("<div />")
.addClass("popup-work-image")
.css({
"width": "90%",
"height": "90%",
"margin-left": "5%",
"margin-top": "5%"})
.appendTo($(".five-lightbox-pictures"));
$("<img src='" + link + "' class='zoom-image'>").appendTo(popup_work_image);
$(".five-lightbox-pictures").removeClass("five-lightbox-pictures-hidden");
$(".five-close-modal").addClass("five-close-icon-show").css({"color":"#000","position":"absolute"}).appendTo($(".five-lightbox-pictures")).click(function(){
$(".five-lightbox-pictures").addClass("five-lightbox-pictures-hidden");
$(".five-close-modal").removeClass("five-close-icon-show").appendTo($(".five-overlay-wrapper")).css({"position":"fixed"});
$(".five-lightbox-pictures").html("");
});
var zoomImages=$('.zoom-image');
zoomImages.each(function(){
if($("body.desktop").length!=0){
$(this).imageZoom({zoom: 250});
}else{
}});
}
function images_as_gallery(index){
$(".five-overlay-wrapper").css({"z-index": "99999", "position": "relative"});
$(".five-lightbox-pictures").html("");
var popup_work_image=$("<div />")
.addClass("popup-work-image")
.css({
"width": "90%",
"height": "90%",
"margin-left": "5%",
"margin-top": "5%"})
.appendTo($(".five-lightbox-pictures"));
var slider="<div class='our-wrapper'><ul class='our-slider'>";
$(".our-work").each(function(i){
if(i!=0){
var link=$(this).find(".image-block").parent().attr("data-link");
slider +="<li><img src='" + link + "' class='zoom-image'></li>";
}})
slider +="</ul></div>"
$(slider).appendTo(popup_work_image);
var hand=false;
if($(".mobile").length!=0){
hand=true;
}
var work_carousel=$(".our-wrapper").fiveCarousel({
animateTime: 500,
autoTimer: 15000,
bullets: false,
slider:'our-slider',
arrows:true,
auto:true,
number: 1,
hand: hand,
start: index,
carousel:true,
prev:"our-prev",
next:"our-next",
})
$(".five-lightbox-pictures").removeClass("five-lightbox-pictures-hidden");
$(".five-close-modal").addClass("five-close-icon-show").css({"color":"#000","position":"absolute"}).appendTo($(".five-lightbox-pictures")).click(function(){
$(".five-lightbox-pictures").addClass("five-lightbox-pictures-hidden");
$(".five-close-modal").removeClass("five-close-icon-show").appendTo($(".five-overlay-wrapper")).css({"position":"fixed"});
$(".five-lightbox-pictures").html("");
});
if($(".mobile").length==0){
var zoomImages=$('.zoom-image');
zoomImages.each(function(){
if($("body.mobile").length!=0){
$(this).imageZoom({zoom: 250});
}else{
$(this).imageZoom();
}});
}}
$(".our-work").find(".image-block").each(function(index){
$(this).click(function(){
images_as_gallery(index);
})
})
}
function o_Header_fix(){
if($(window).width() < 780){return}
var tPos=$("header .menu").offset().top;
function fix(){
if($(window).scrollTop() > tPos){
$("header .menu").addClass("menu-fixed");
}else{
$("header .menu").removeClass("menu-fixed");
}}
fix();
$(window).scroll(function (){
fix();
})
}
if($("menu").length > 0){
c_Header_fix();
}
function o_Review_carousel(){
if($(".review-wrapper").length > 0){
var hand=false,
bullets=false,
number=2,
arrows=true;
if($(".mobile").length!=0){
hand=true;
bullets=true;
number=1;
arrows=false;
}
$(".review-wrapper").fiveCarousel({
animateTime: 500,
autoTimer: 15000,
autoHeight: true,
bullets: true,
slider:'review-slider',
margin:30,
arrows:arrows,
auto:true,
number: number,
carousel:true,
hand:hand,
prev:"review-prev",
next:"review-next",
})
}}
function o_Slim_select_price(){
setTimeout(function(){
if($("#fieldname4_1").length!=0){
new SlimSelect({
select: '#fieldname4_1',
placeholder: 'Select a treatment',
deselectLabel: '<span class="red">✖</span>'
});
}},500)
}
function o_Scroll_button_display(){
var tScroll=$(window).scrollTop();
if(tScroll > 300){
$(".btn-up").fadeIn();
}else{
$(".btn-up").fadeOut();
}}
function o_Video_post(wrap){
if(typeof wrap==="undefined"){return;}
$("." + wrap).each(function(i){
$(this).on('click', function(e){
e.preventDefault();
var data={
action: 'video_post',
link: $(this).data('link')
};
if($(this).data('link')==""){
return;
}
$.ajax({
type: "POST",
url: WPURL.adminAjax,
data:data,
beforeSend: function(response){
$('.five-overlay-body').addClass("five-overlay-body-show");
$('#five-close-lightbox').addClass("five-close-icon-show");
$('.five-lightbox-pictures').html('').removeClass('five-lightbox-pictures-hidden');
},
success: function(response){
$('.five-lightbox-pictures').append(response);
$('#five-close-lightbox').on('click', function(){
o_ActionClosePopup();
});
$(document).keydown(function(e){
if(e.keyCode==27){
o_ActionClosePopup();
}});
}})
})
})
}
function o_ActionClosePopup(){
$('.five-overlay-body').removeClass("five-overlay-body-show");
$('.five-lightbox-pictures').addClass('five-lightbox-pictures-hidden');
$('.five-lightbox-pictures').html('');
$('#five-close-lightbox').removeClass("five-close-icon-show");
$(document).off('keyup keydown keypress');
}
function o_Visible_block(){
$(".container").each(function(){
if($(this).hasClass("table-price-row")||$(this).hasClass("table-price-header")){
return;
}
if(!$(this).hasClass("visible")&&$(this).isInViewport()){
var self=this;
$(self).addClass("visible")
}})
}
function o_Btn_booking(){
if($(window).width() < 578){
console.log("o_Btn_booking")
$(".btn-booking").prependTo($(".lang-dropdown")).removeClass("btn-fixed");
var top_menu=$(".menu").offset().top;
$(window).scroll(function (){
if($(window).scrollTop() > 0){
$("#page").addClass("menu-mob-fixed");
}else{
$("#page").removeClass("menu-mob-fixed");
}})
}else{
$(".btn-booking").addClass("btn-fixed");
}}
function o_Mobile_menu_after_header(){
var hHeader=$("header").height();
$(".side-nav").offset({top: hHeader});
}
function o_Custom_antispam(){
$("#gform_submit_button_10, #gform_submit_button_2").click(function(e){
$(".antispam").find("input").val("1");
})
$("#gform_2, #gform_10").submit(function(e){
if($(".antispam").find("input").val()!="1"){
return false;
}})
}
function o_Fb_next(){
$(window).on('resize scroll', function(){
if($('.fb-more').length > 0&&$('.fb-more').isInViewport()){
$("<div class='text-center fb-load'><img src='https://oxisecret.com/wp-content/themes/oxisecret/assets/img/reply.svg'></div>").appendTo($(".fb-container"));
var data={
action: 'fb_next',
url: $('.fb-more').attr('data-url')
};
$('.fb-more').remove();
$.ajax({
type: "POST",
url: WPURL.adminAjax,
data:data
}).done(function(response){
$(".fb-load").remove();
$(response).appendTo($(".fb-container"));
o_Fb_next();
o_readMore();
})
}})
}
function o_readMore(){
$('.readmore').each(function(){
$(this).readmore();
})
}
function c_Popup_cert(){
if(typeof $.cookie("popup")==="undefined"){
$.cookie("popup", "0", { expires: 1, path:'/' });
}
if($.cookie("popup")!="1"){
var top='-20px',
left='30px',
width='500px',
height='auto';
if($(window).width() < 567){
top='-30px';
left='5%';
width='90%';
height='auto'
}
new popUp($("#popup-3495.excl-popup"), {
top: top,
left: left,
width: width,
height: height,
trigger: '.excl-popup-open',
close: '.excl-popup-close',
beforeOpen: function(){
$("#popup-3495").parent().addClass("open");
},
beforeClose: function(){
$("#popup-3495").parent().removeClass("open");
$("#popup-3495").addClass("zoomOut");
$("#popup-3495").removeClass("zoomIn");
$.cookie("popup", "1", { expires: 1, path:'/' });
}})
$('#popup-3495 .excl-popup-open').click();
}}
setTimeout(function(){
c_Popup_cert();
}, 3000);
(function ($){
'use strict';
function initCourseTabs(){
$('.oxi-course-tabs').each(function (){
var $container=$(this);
var $buttons=$container.find('.oxi-tab-btn');
var $panels=$container.find('.oxi-tab-panel');
$buttons.on('click', function (){
var targetId=$(this).data('tab');
$buttons.removeClass('active').attr('aria-selected', 'false');
$panels.removeClass('active');
$(this).addClass('active').attr('aria-selected', 'true');
$container.find('#' + targetId).addClass('active');
});
});
}
$(document).ready(function (){
initCourseTabs();
});
})(jQuery);