PageSourceSearch

https://southernautomobiles.co.nz/_jb_static/??e8f74e3ead

js southernautomobiles.co.nz collected 2026-10-04 07:53:54 UTC 69,745 bytes, 105 lines download raw bytes

1!function(e){"use strict";const s="morphext",i={animation:"bounce",speed:2e3,autoInit:!0,phrases:[],animateCssVersion:"4.1.1",autoAttachAnimateCss:!0};function n(t){this.element=e(t),this._settings=e.extend({},i,JSON.parse(this.element.attr("data-morphext-options"))),this._defaults=i,this._init()}n.prototype={_init:function(){var t;this.element.addClass("morphext"),this._settings.autoAttachAnimateCss&&(t=`https://cdnjs.cloudflare.com/ajax/libs/animate.css/${this._settings.animateCssVersion}/animate.min.css`,e(`link[href='${t}']`).length||e(`<link href="${t}" rel="stylesheet">`).appendTo("head")),this._index=0,this.animate(),this.start()},animate:function(){this._index=this._index%this._settings.phrases.length;const t=document.createElement("span");t.classList.add("morphext__animated","animate__animated",`animate__${this._settings.animation}`),e(t).text(this._settings.phrases[this._index]),this.element.html(e(t).prop("outerHTML")),this._index+=1},start:function(){var t=this;this._interval=setInterval(function(){t.animate()},this._settings.speed)},stop:function(){this._interval=clearInterval(this._interval)}},e.fn[s]=function(t){return this.each(function(){e.data(this,"plugin_"+s)||e.data(this,"plugin_"+s,new n(this))})}}(jQuery);;
2jQuery(document).ready(function($){var x='';var adminBarHeight=0;if($("#wpadminbar").length!=0){adminBarHeight=$('#wpadminbar').height()}
3jQuery('.welcomebar-hidden-sliding-text').each(function(){var sliding_text_width=jQuery(this).outerWidth();var sliding_text_height=jQuery(this).outerHeight();if(!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){jQuery(this).parent().css('min-width',sliding_text_width+'px')}
4jQuery(this).parent().css('min-height',sliding_text_height+'px')});jQuery('.mysticky-welcomebar-fixed').each(function(){var welcomebar_widget=jQuery(this).data('welcomebar-widget');if(jQuery('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('position')=='top'){jQuery('.mysticky-welcomebar-entry-effect-slide-in.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).css('top','-'+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).outerHeight()+'px')}else{jQuery('.mysticky-welcomebar-entry-effect-slide-in.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).css('bottom','-'+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).outerHeight()+'px')}
5var welcombar_aftersubmission=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('aftersubmission');if(welcombar_aftersubmission=='dont_show_welcomebar'){var welcomebar_storage=localStorage.getItem("welcomebar_close_"+welcomebar_widget)}else if(welcombar_aftersubmission=='show_welcomebar_next_visit'){var welcomebar_storage=sessionStorage.getItem("welcomebar_close_"+welcomebar_widget)}else{sessionStorage.removeItem('welcomebar_close_'+welcomebar_widget);localStorage.removeItem('welcomebar_close_'+welcomebar_widget);var welcomebar_storage=null}
6var is_close_trigger=localStorage.getItem("is_close_trigger_"+welcomebar_widget);var is_button_trigger=localStorage.getItem("is_button_trigger_"+welcomebar_widget);if(jQuery(this).data("isenablecoupon")==1&&welcomebar_storage!==null&&jQuery(this).data("btn-click-action")=='show_coupon'&&is_close_trigger==null&&is_button_trigger=='yes'){welcomebar_storage=null;jQuery(this).find(".mysticky-welcomebar-content").hide();jQuery(this).find(".mysticky-welcomebar-btn").hide();jQuery(this).find(".mysticky-couponbar-content").show();jQuery(".mysticky-welcomebar-widget-"+welcomebar_widget+" .count-down-timer-box").hide();if(jQuery(".mysticky-welcomebar-fixed.mysticky-welcomebar-widget-"+welcomebar_widget+" .mysticky-welcomebar-lead-content").length>0){jQuery(".mysticky-welcomebar-fixed.mysticky-welcomebar-widget-"+welcomebar_widget+" .mysticky-welcomebar-lead-content").hide()}}
7if(welcomebar_storage===null){var after_trigger=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('after-triger');if(after_trigger=='after_a_few_seconds'){if($('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).hasClass('mysticky-welcomebar-display-desktop')){if($(window).width()>1024){var trigger_sec=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('triger-sec')*1000;var welcombar_position=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('position');var welcombar_height=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).outerHeight();var divi_topbar_height=$('.et_fixed_nav #top-header').outerHeight();var divi_total_height=welcombar_height+divi_topbar_height;setTimeout(function(){if(jQuery('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).find(".mysticky-welcomebar-fixed-wrap").attr("data-widget-analytics")=="on"){var viewStatus;var widgetId=jQuery('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).find(".mysticky-welcomebar-fixed-wrap").attr("data-welcomebar-widget");var widgetNonce=jQuery('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).find(".mysticky-welcomebar-fixed-wrap").attr("data-widget-nonce");viewStatus=checkASECookieExpired(widgetId,'v-welcomebar');if(viewStatus){saveASECookieString(widgetId,"v-welcomebar");viewStatus=checkASECookieExpired(widgetId,"v-welcomebar");updateChannelViewkAjax(widgetId,widgetNonce)}}
8$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).addClass('mysticky-welcomebar-animation');$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).addClass('entry-effect');$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).removeClass('mysticky-welcomebar-notpresent');$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget+' .mysticky-welcomebar-animation-text').morphext();$('html,body').addClass('mysticky-welcomebar-apper');var new_welcombar_height_top=new_welcombar_height_bottom=new_welcombar_margin_top=new_welcombar_padding_bottom=0;$('.mysticky-welcomebar-fixed').not(".mysticky-welcomebar-notpresent").each(function(index){var welcomebar_widget_index=$(this).data('welcomebar-widget');var welcomebar_widget_ready=$(this).data('welcomebar-widget');var welcombar_position_ready=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget_ready).data('position');var welcombar_height_ready=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget_ready).outerHeight();if(!$(this).hasClass('mysticky-welcomebar-notpresent')&&!$(this).hasClass('mysticky-welcomebar-notapper')){if(welcombar_position_ready=='top'){var new_welcombar_position=adminBarHeight+welcomebar_widget_index+new_welcombar_height_top;if(index!=0){var new_welcombar_position=0+new_welcombar_height_top}else{var new_welcombar_position=adminBarHeight+0+new_welcombar_height_top}
9$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget_ready).css('top',new_welcombar_position);$('.et_fixed_nav #top-header').css('top',new_welcombar_position+'px');new_welcombar_height_top=new_welcombar_position+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget_ready).outerHeight();var new_welcomebar_height=adminBarHeight+welcombar_height_ready+new_welcombar_margin_top;
9$("html").animate({"margin-top":new_welcomebar_height+"px"},500,function(){$("html").css("cssText","margin-top:"+new_welcomebar_height+"px!important;")});$('#mysticky-nav').css('top',new_welcomebar_height+'px');new_welcombar_margin_top=new_welcombar_margin_top+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget_ready).outerHeight()}else{var new_welcombar_position=0+new_welcombar_height_bottom;$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget_ready).css('bottom',new_welcombar_position);new_welcombar_height_bottom=new_welcombar_position+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget_ready).outerHeight();var new_welcomebar_height=welcombar_height_ready+new_welcombar_padding_bottom;$('head').append('<style class="mysticky_bottom_style" type="text/css">html.mysticky-welcomebar-apper {padding-bottom: '+new_welcomebar_height+'px}</style>');new_welcombar_padding_bottom=new_welcombar_padding_bottom+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget_ready).outerHeight()}}});if(welcombar_position=='top'){$('#mysticky_divi_style').remove();$('head').append('<style id="mysticky_divi_style" type="text/css">.et_fixed_nav #main-header {top: '+welcombar_height+'px !important}.et_fixed_nav #top-header + #main-header{top: '+divi_total_height+'px !important}</style>');$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).css('opacity','1')}else{$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).css('opacity','1');$('#mysticky_divi_style').remove();$('.et_fixed_nav #top-header').css('top','')}},trigger_sec)}}}
10if($(window).width()<=1024){if(after_trigger=='after_a_few_seconds'){if($('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).hasClass('mysticky-welcomebar-display-mobile')){var trigger_sec=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('triger-sec')*1000;var welcombar_position=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('position');var welcombar_height=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).outerHeight();setTimeout(function(){if(jQuery('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).find(".mysticky-welcomebar-fixed-wrap").attr("data-widget-analytics")=="on"){var viewStatus;var widgetId=jQuery('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).find(".mysticky-welcomebar-fixed-wrap").attr("data-welcomebar-widget");var widgetNonce=jQuery('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).find(".mysticky-welcomebar-fixed-wrap").attr("data-widget-nonce");viewStatus=checkASECookieExpired(widgetId,'v-welcomebar');if(viewStatus){saveASECookieString(widgetId,"v-welcomebar");viewStatus=checkASECookieExpired(widgetId,"v-welcomebar");updateChannelViewkAjax(widgetId,widgetNonce)}}
11$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).addClass('mysticky-welcomebar-animation');$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).addClass('entry-effect');$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).removeClass('mysticky-welcomebar-notpresent');$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget+' .mysticky-welcomebar-animation-text').morphext();$('html,body').addClass('mysticky-welcomebar-apper');$('#mysticky_divi_style').remove();$('.et_fixed_nav #top-header').css('top','');var new_welcombar_height_top=new_welcombar_height_bottom=new_welcombar_margin_top=new_welcombar_padding_bottom=0;$('.mysticky-welcomebar-fixed').not(".mysticky-welcomebar-notpresent").each(function(index){var welcomebar_widget_ready=$(this).data('welcomebar-widget');var welcombar_position_ready=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget_ready).data('position');var welcombar_height_ready=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget_ready).outerHeight();if(!$(this).hasClass('mysticky-welcomebar-notpresent')&&!$(this).hasClass('mysticky-welcomebar-notapper')){if(welcombar_position_ready=='top'){if(index==0){var new_welcombar_position=0+adminBarHeight+new_welcombar_height_top;var new_welcomebar_height=welcombar_height_ready+adminBarHeight+new_welcombar_margin_top}else{var new_welcombar_position=0+new_welcombar_height_top;var new_welcomebar_height=welcombar_height_ready+new_welcombar_margin_top+adminBarHeight}
12$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget_ready).css('top',new_welcombar_position);$('.et_fixed_nav #top-header').css('top',new_welcombar_position+'px');new_welcombar_height_top=new_welcombar_position+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget_ready).outerHeight();
12$("html").animate({"margin-top":new_welcomebar_height+"px"},500,function(){$("html").css("cssText","margin-top:"+new_welcomebar_height+"px!important;")});$('#mysticky-nav').css('top',new_welcomebar_height+'px');new_welcombar_margin_top=new_welcombar_margin_top+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget_ready).outerHeight()}else{var new_welcombar_position=0+new_welcombar_height_bottom;$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget_ready).css('bottom',new_welcombar_position);new_welcombar_height_bottom=new_welcombar_position+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget_ready).outerHeight();var new_welcomebar_height=welcombar_height_ready+new_welcombar_padding_bottom;$('head').append('<style class="mysticky_bottom_style" type="text/css">html.mysticky-welcomebar-apper {padding-bottom: '+new_welcomebar_height+'px}</style>');new_welcombar_padding_bottom=new_welcombar_padding_bottom+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget_ready).outerHeight()}}});if(welcombar_position=='top'){$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).addClass('mysticky-welcomebar-animation');$('head').append('<style id="mysticky_divi_style" type="text/css">.et_fixed_nav #main-header {top: '+welcombar_height+'px !important}.et_fixed_nav #top-header + #main-header{top: '+divi_total_height+'px !important}</style>');$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).css('opacity','1')}else{$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).css('opacity','1');$('.et_fixed_nav #top-header').css('top','')}},trigger_sec)}}}
13mystickyelements_present(welcomebar_widget)}
14jQuery('.count-down-timer-box').each(function(){var txtdays=$(this).data('txtdays');var txthours=$(this).data('txthours');var txtminutes=$(this).data('txtminutes');var txtseconds=$(this).data('txtseconds');var timerBgColor=$(this).data('timerbgcolor');var timerTxtColor=$(this).data('timertxtcolor');var welcomebarTextColor=$(this).data('welcombar-textcolor');var divId="#"+$(this).attr('id');var expiredDate='';var expiredTime='';var timer_from=$(this).data('timerfrom');var timezone='';var data_endTime='';txtdays=(txtdays!='')?txtdays:welcomebar_frontjs.days;txthours=(txthours!='')?txthours:welcomebar_frontjs.hours;txtminutes=(txtminutes!='')?txtminutes:welcomebar_frontjs.minutes;txtseconds=(txtseconds!='')?txtseconds:welcomebar_frontjs.seconds;if(timer_from=='timer_apperance'){expiredDate=$(this).data('enddate');expiredTime=$(this).data('endtime');expiredDate=new Date(expiredDate+' '+expiredTime);data_endTime=$(this).data('endtime');timezone=$(this).data('timezone')}else{expiredDate=new Date();var expirHour=$(this).data('hour');var expirMinute=$(this).data('minute');var expirSecond=$(this).data('second');var expire_time=readMyStickyMenuCookie('welcombar-countdowntime-'+welcomebar_widget);if(expire_time!=null){expiredDate=new Date(expire_time)}else{createMyStickyMenuCookie('welcombar-countdowntime-'+welcomebar_widget,expiredDate,1)}
15expirHour=parseInt(expirHour)+parseInt(expiredDate.getHours());expirMinute=parseInt(expirMinute)+parseInt(expiredDate.getMinutes());expirSecond=parseInt(expirSecond)+parseInt(expiredDate.getSeconds()+2);var trigger_sec=($(".mysticky-welcomebar-widget-"+welcomebar_widget).data("triger-sec")!=''&&$(".mysticky-welcomebar-widget-"+welcomebar_widget).data("after-triger")=='after_a_few_seconds')?$(".mysticky-welcomebar-widget-"+welcomebar_widget).data("triger-sec"):'3';expirSecond=expirSecond+parseInt(trigger_sec);expiredDate.setHours(parseInt(expirHour));expiredDate.setMinutes(parseInt(expirMinute));expiredDate.setSeconds(parseInt(expirSecond))}
16var num=/^[-+]?[0-9]+\.[0-9]+$/;var plus_number=/^[-+]?[0-9]+$/;if(expiredDate=='Invalid Date'){jQuery(window).trigger('resize');jQuery(divId).html("");return}
17var checkTimerSet=setInterval(function(){if(jQuery(divId+" .counter-main-block").length>0){jQuery(window).trigger('resize');clearInterval(checkTimerSet)}},1000);var timer=setInterval(function(){var position=0;if($('.mysticky-welcomebar-widget-'+welcomebar_widget).hasClass('mysticky-welcomebar-position-top')){position=parseInt($('.mysticky-welcomebar-widget-'+welcomebar_widget).css('top'));var welcombar_height_ready=$('.mysticky-welcomebar-widget-'+welcomebar_widget).outerHeight();$("html").css("cssText","margin-top:"+welcombar_height_ready+"px!important;")}
18if($('.mysticky-welcomebar-widget-'+welcomebar_widget).hasClass('mysticky-welcomebar-position-bottom')){position=parseInt($('.mysticky-welcomebar-widget-'+welcomebar_widget).css('bottom'))}
19if(position>=0){var nowDate=new Date();if(timer_from=='timer_apperance'){if(num.test(timezone)==!0||plus_number.test(timezone)==!0){nowDate=getCurrentDateTimeGMT(timezone);console.log(timezone+" == "+nowDate)}
19else{nowDate=new Date(nowDate.toLocaleString('en-US',{timeZone:timezone}))}}
20var hourss=Math.abs(expiredDate.getTime()-nowDate.getTime())/3600000;var diffrenceDate=expiredDate-nowDate;var diffrenceDate=expiredDate-nowDate;if(diffrenceDate<0){jQuery(window).trigger('resize');jQuery(divId).html("");clearInterval(timer);return}
21var days=Math.floor(diffrenceDate/(1000*60*60*24));var hours=Math.floor((diffrenceDate%(1000*60*60*24))/(1000*60*60));var minute=Math.floor((diffrenceDate%(1000*60*60))/(1000*60));var seconds=Math.floor((diffrenceDate%(1000*60))/1000);if(Math.floor(hourss)==24){hours=Math.floor(hourss);days=0}
22days=(days>9)?days:'0'+days;hours=(hours>9)?hours:'0'+hours;minute=(minute>9)?minute:'0'+minute;seconds=(seconds>9)?seconds:'0'+seconds;if(timer_from=='timer_apperance'){if(days==0&&hours==0&&minute==0&&seconds==0){jQuery(rightDivId).html("")}else{jQuery(divId).html("<div class='counter-main-block'><div class='counter-timer' style='color:"+timerTxtColor+";'><span style='background-color:"+timerBgColor+";color:"+timerTxtColor+"'>"+parseInt(days/10)+"</span></div> <div class='counter-timer' style='color:"+timerTxtColor+";'><span style='background-color:"+timerBgColor+";color:"+timerTxtColor+"'>"+parseInt(days%10)+"</span></div><label>"+txtdays+"</label></div> : <div class='counter-main-block'><div class='counter-timer' style='color:"+timerTxtColor+";'> <span style='background-color:"+timerBgColor+";color:"+timerTxtColor+"'>"+parseInt(hours/10)+"</span></div> <div class='counter-timer' style='color:"+timerTxtColor+";'> <span style='background-color:"+timerBgColor+";color:"+timerTxtColor+"'>"+parseInt(hours%10)+"</span></div><label>"+txthours+"</label></div> : <div class='counter-main-block'><div class='counter-timer' style='color:"+timerTxtColor+";'><span style='background-color:"+timerBgColor+";color:"+timerTxtColor+"'>"+parseInt(minute/10)+"</span></div> <div class='counter-timer' style='color:"+timerTxtColor+";'><span style='background-color:"+timerBgColor+";color:"+timerTxtColor+"'>"+parseInt(minute%10)+"</span></div> <label>"+txtminutes+"</label></div> : <div class='counter-main-block'><div class='counter-timer' style='color:"+timerTxtColor+";'><span style='background-color:"+timerBgColor+";color:"+timerTxtColor+"'>"+parseInt(seconds/10)+"</span></div> <div class='counter-timer' style='color:"+timerTxtColor+";'><span style='background-color:"+timerBgColor+";color:"+timerTxtColor+"'>"+parseInt(seconds%10)+"</span></div><label>"+txtseconds+"</label></div>")}}else{if(hours>0){jQuery(divId).html("<div class='counter-main-block'><div class='counter-timer' style='color:"+timerTxtColor+";'><span style='background-color:"+timerBgColor+";color:"+timerTxtColor+"'>"+parseInt(hours/10)+"</span></div> <div class='counter-timer' style='color:"+timerTxtColor+";'><span style='background-color:"+timerBgColor+";color:"+timerTxtColor+"'>"+parseInt(hours%10)+"</span></div> <label>"+txthours+"</label></div> : <div class='counter-main-block'><div class='counter-timer' style='color:"+timerTxtColor+";'><span style='background-color:"+timerBgColor+";color:"+timerTxtColor+"'>"+parseInt(minute/10)+"</span></div> <div class='counter-timer' style='color:"+timerTxtColor+";'><span style='background-color:"+timerBgColor+";color:"+timerTxtColor+"'>"+parseInt(minute%10)+"</span></div> <label>"+txtminutes+"</label></div> : <div class='counter-main-block'><div class='counter-timer' style='color:"+timerTxtColor+";'><span style='background-color:"+timerBgColor+";color:"+timerTxtColor+"'>"+parseInt(seconds/10)+"</span></div> <div class='counter-timer' style='color:"+timerTxtColor+";'><span style='background-color:"+timerBgColor+";color:"+timerTxtColor+"'>"+parseInt(seconds%10)+"</span></div><label>"+txtseconds+"</label></div>")}else{jQuery(divId).html("<div class='counter-main-block'><div class='counter-timer' style='color:"+timerTxtColor+";'><span style='background-color:"+timerBgColor+";color:"+timerTxtColor+"'>"+parseInt(minute/10)+"</span></div> <div class='counter-timer' style='color:"+timerTxtColor+";'><span style='background-color:"+timerBgColor+";
22color:"+timerTxtColor+"'>"+parseInt(minute%10)+"</span></div> <label>"+txtminutes+"</label></div> : <div class='counter-main-block'><div class='counter-timer' style='color:"+timerTxtColor+";'><span style='background-color:"+timerBgColor+";color:"+timerTxtColor+"'>"+parseInt(seconds/10)+"</span></div> <div class='counter-timer' style='color:"+timerTxtColor+";'><span style='background-color:"+timerBgColor+";color:"+timerTxtColor+"'>"+parseInt(seconds%10)+"</span></div><label>"+txtseconds+"</label></div>")}}
23jQuery(divId+" span").css('color',timerTxtColor);jQuery(divId).css('color',welcomebarTextColor)}},1000)})});function createMyStickyMenuCookie(name,value,days){if(days){var expiry=new Date();expiry.setTime(expiry.getTime()+(days*24*60*60*1000));var expires="; expires="+expiry.toGMTString()}else{var expires=""}
24document.cookie=escape(name)+"="+escape(value)+expires+"; path=/"}
25function readMyStickyMenuCookie(name){var nameEQ=escape(name)+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')
26c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)
27return unescape(c.substring(nameEQ.length,c.length));}
28return null}
29function getCurrentDateTimeGMT(timezone){var localDate=new Date();var localTime=localDate.getTime();var localOffset=localDate.getTimezoneOffset()*60000;var utc=localTime+localOffset;var offset=timezone;var utc_offset=utc+(3600000*offset);localDate=new Date(utc_offset);return localDate}
30$(window).resize(function(){jQuery('.welcomebar-hidden-sliding-text').each(function(){var sliding_text_width=jQuery(this).outerWidth();var sliding_text_height=jQuery(this).outerHeight();if(!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){jQuery(this).parent().css('min-width',sliding_text_width+'px')}
31jQuery(this).parent().css('min-height',sliding_text_height+'px')});var adminBarHeight=new_welcombar_height_top=new_welcombar_height_bottom=new_welcombar_margin_top=new_welcombar_padding_bottom=0;if($("#wpadminbar").length!=0){adminBarHeight=$('#wpadminbar').height()}});$(window).on('scroll',function(){if($("#wpadminbar").length!=0){adminBarHeight=$('#wpadminbar').height()}
32$('.mysticky-welcomebar-fixed').each(function(){var welcomebar_widget=$(this).data('welcomebar-widget');var welcombar_aftersubmission=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('aftersubmission');var after_trigger=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('after-triger');if(welcombar_aftersubmission=='dont_show_welcomebar'){var welcomebar_storage=localStorage.getItem("welcomebar_close_"+welcomebar_widget)}else if(welcombar_aftersubmission=='show_welcomebar_next_visit'){var welcomebar_storage=sessionStorage.getItem("welcomebar_close_"+welcomebar_widget)}else{sessionStorage.removeItem('welcomebar_close_'+welcomebar_widget);localStorage.removeItem('welcomebar_close_'+welcomebar_widget);var welcomebar_storage=null}
33if(welcomebar_storage===null){var welcombar_height=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).outerHeight();var welcombar_position=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('position');var divi_topbar_height=$('.et_fixed_nav #top-header').outerHeight();var divi_total_height=welcombar_height+divi_topbar_height;if(after_trigger==='after_scroll'){var scroll=100*$(window).scrollTop()/($(document).height()-$(window).height());var after_scroll_val=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('triger-sec');if(scroll>after_scroll_val){if(!$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).hasClass('mysticky-welcomebar-notapper')){$('html,body').addClass('mysticky-welcomebar-apper')}else{$('html,body').removeClass('mysticky-welcomebar-apper')}
34if($('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).hasClass('mysticky-welcomebar-display-desktop')){if($(window).width()>1024){if(jQuery('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).find(".mysticky-welcomebar-fixed-wrap").attr("data-widget-analytics")=="on"){var viewStatus;var widgetId=jQuery('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).find(".mysticky-welcomebar-fixed-wrap").attr("data-welcomebar-widget");var widgetNonce=jQuery('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).find(".mysticky-welcomebar-fixed-wrap").attr("data-widget-nonce");viewStatus=checkASECookieExpired(widgetId,'v-welcomebar');if(viewStatus){saveASECookieString(widgetId,"v-welcomebar");viewStatus=checkASECookieExpired(widgetId,"v-welcomebar");updateChannelViewkAjax(widgetId,widgetNonce)}}
35$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).addClass('mysticky-welcomebar-animation');$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).addClass('entry-effect');if($('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).hasClass('mysticky-welcomebar-notpresent')){var new_welcombar_height_top=new_welcombar_height_bottom=new_welcombar_margin_top=new_welcombar_padding_bottom=0;$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).removeClass('mysticky-welcomebar-notpresent');$('.mysticky-welcomebar-fixed').not(".mysticky-welcomebar-notpresent").each(function(index){var new_welcomebar_widget=$(this).data('welcomebar-widget');var test_welcombar_position=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).data('position');var welcombar_height_scroll=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).outerHeight();if(!$(this).hasClass('mysticky-welcomebar-notpresent')&&!$(this).hasClass('mysticky-welcomebar-notapper')){if(test_welcombar_position=='top'){new_welcombar_margin_top=new_welcombar_margin_top+adminBarHeight+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).outerHeight();if($(window).scrollTop()==0){var new_welcombar_position=0+new_welcombar_height_top}else{if(index!=0){var new_welcombar_position=0+new_welcombar_height_top}else{var new_welcombar_position=adminBarHeight+0+new_welcombar_height_top}}
36$('.mysticky-welcomebar-apper .mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).css('top',new_welcombar_position);new_welcombar_height_top=new_welcombar_position+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).outerHeight();var new_welcomebar_height=new_welcombar_margin_top;jQuery('.mysticky-welcomebar-apper.et_fixed_nav #top-header').css('top',new_welcomebar_height+'px');jQuery('head').append('<style id="mysticky_divi_style" type="text/css">.mysticky-welcomebar-apper.et_fixed_nav #main-header {top: '+new_welcomebar_height+'px !important}.mysticky-welcomebar-apper.et_fixed_nav #top-header + #main-header{top: '+divi_total_height+'px !important}</style>');
36$("html").animate({"margin-top":new_welcomebar_height+"px"},500,function(){$("html").css("cssText","margin-top:"+new_welcomebar_height+"px!important;")});$('.mysticky-welcomebar-apper #mysticky-nav').css('top',new_welcomebar_height+'px');new_welcombar_margin_top=new_welcombar_margin_top+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).outerHeight()}else{var new_welcombar_position=0+new_welcombar_height_bottom;$('.mysticky-welcomebar-apper .mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).css('bottom',new_welcombar_position);new_welcombar_height_bottom=new_welcombar_position+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).outerHeight();var new_welcomebar_height=welcombar_height_scroll+new_welcombar_padding_bottom;$('head').append('<style class="mysticky_bottom_style" type="text/css">html.mysticky-welcomebar-apper {padding-bottom: '+new_welcomebar_height+'px}</style>');new_welcombar_padding_bottom=new_welcombar_padding_bottom+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).outerHeight()}}})}
37if(welcombar_position=='top'){$('.mysticky-welcomebar-apper .mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).css('opacity','1');jQuery('#mysticky_divi_style').remove()}else{jQuery('.mysticky-welcomebar-apper .mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).css('opacity','1');jQuery('#mysticky_divi_style').remove();jQuery('.et_fixed_nav #top-header').css('top','')}}}
38if($('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).hasClass('mysticky-welcomebar-display-mobile')){if($(window).width()<=1024){if(jQuery('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).find(".mysticky-welcomebar-fixed-wrap").attr("data-widget-analytics")=="on"){var viewStatus;var widgetId=jQuery('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).find(".mysticky-welcomebar-fixed-wrap").attr("data-welcomebar-widget");var widgetNonce=jQuery('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).find(".mysticky-welcomebar-fixed-wrap").attr("data-widget-nonce");viewStatus=checkASECookieExpired(widgetId,'v-welcomebar');if(viewStatus){saveASECookieString(widgetId,"v-welcomebar");viewStatus=checkASECookieExpired(widgetId,"v-welcomebar");updateChannelViewkAjax(widgetId,widgetNonce)}}
39$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).addClass('mysticky-welcomebar-animation');$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).addClass('entry-effect');$('#mysticky_divi_style').remove();$('.et_fixed_nav #top-header').css('top','');if($('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).hasClass('mysticky-welcomebar-notpresent')){$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).removeClass('mysticky-welcomebar-notpresent');var new_welcombar_height_top=new_welcombar_height_bottom=new_welcombar_margin_top=new_welcombar_padding_bottom=0;$('.mysticky-welcomebar-fixed').not(".mysticky-welcomebar-notpresent").each(function(){var new_welcomebar_widget=$(this).data('welcomebar-widget');var test_welcombar_position=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).data('position');var welcombar_height_scroll=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).outerHeight();if(!$(this).hasClass('mysticky-welcomebar-notpresent')&&!$(this).hasClass('mysticky-welcomebar-notapper')){if(test_welcombar_position=='top'){if(new_welcomebar_widget==0){if($(window).width()<=600){var new_welcombar_position=0+new_welcombar_height_top}else{var new_welcombar_position=0+new_welcombar_height_top+adminBarHeight}
40new_welcombar_height_top=new_welcombar_position+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).outerHeight();var new_welcomebar_height=welcombar_height_scroll+new_welcombar_margin_top+adminBarHeight}else{var new_welcombar_position=0+new_welcombar_height_top;new_welcombar_height_top=new_welcombar_position+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).outerHeight();var new_welcomebar_height=welcombar_height_scroll+new_welcombar_margin_top}
41$('.mysticky-welcomebar-apper .mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).css('top',new_welcombar_position);jQuery('.mysticky-welcomebar-apper.et_fixed_nav #top-header').css('top',new_welcomebar_height+'px');jQuery('head').append('<style id="mysticky_divi_style" type="text/css">.mysticky-welcomebar-apper.et_fixed_nav #main-header {top: '+new_welcomebar_height+'px !important}.mysticky-welcomebar-apper.et_fixed_nav #top-header + #main-header{top: '+divi_total_height+'px !important}</style>');
41$("html").animate({"margin-top":new_welcomebar_height+"px"},500,function(){$("html").css("cssText","margin-top:"+new_welcomebar_height+"px!important;")});$('.mysticky-welcomebar-apper #mysticky-nav').css('top',new_welcomebar_height+'px');new_welcombar_margin_top=new_welcombar_margin_top+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).outerHeight()}else{var new_welcombar_position=0+new_welcombar_height_bottom;$('.mysticky-welcomebar-apper .mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).css('bottom',new_welcombar_position);new_welcombar_height_bottom=new_welcombar_position+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).outerHeight();var new_welcomebar_height=welcombar_height_scroll+new_welcombar_padding_bottom;jQuery('head').append('<style class="mysticky_bottom_style" type="text/css">html.mysticky-welcomebar-apper {padding-bottom: '+new_welcomebar_height+'px}</style>');new_welcombar_padding_bottom=new_welcombar_padding_bottom+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).outerHeight()}}})}
42if(welcombar_position=='top'){jQuery('.mysticky-welcomebar-apper .mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).css('opacity','1')}else{jQuery('.mysticky-welcomebar-apper .mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).css('opacity','1')}}}}else if($(window).scrollTop()==0){if($(window).width()<=600){if($('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).hasClass('mysticky-welcomebar-display-mobile')){$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).addClass('mysticky-welcomebar-notpresent');var new_welcombar_height_top=0;$('.mysticky-welcomebar-fixed').each(function(index){var new_welcomebar_widget=$(this).data('welcomebar-widget');var test_welcombar_position=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).data('position');if(test_welcombar_position=='top'){if(index==0){var new_welcombar_position=0+adminBarHeight+new_welcombar_height_top}else{var new_welcombar_position=0+new_welcombar_height_top}
43$('.mysticky-welcomebar-apper .mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).css('top',new_welcombar_position);new_welcombar_height_top=new_welcombar_position+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).outerHeight()}})}}}}else{if($('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).hasClass('mysticky-welcomebar-display-mobile')){if($(window).width()<=600){var new_welcombar_height_top=0;$('.mysticky-welcomebar-fixed').not(".mysticky-welcomebar-notpresent").each(function(index){var new_welcomebar_widget=$(this).data('welcomebar-widget');var test_welcombar_position=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).data('position');if(!$(this).hasClass('mysticky-welcomebar-notpresent')&&!$(this).hasClass('mysticky-welcomebar-notapper')){if(test_welcombar_position=='top'){if($(window).scrollTop()>0){var new_welcombar_position=0+new_welcombar_height_top}else{if(index==0){var new_welcombar_position=0+adminBarHeight+new_welcombar_height_top}else{var new_welcombar_position=0+new_welcombar_height_top}}
44$('.mysticky-welcomebar-apper .mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).css('top',new_welcombar_position);new_welcombar_height_top=new_welcombar_position+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+new_welcomebar_widget).outerHeight()}}})}}}
45mystickyelements_present(welcomebar_widget)}})});$('.mysticky-welcomebar-close').on('click',function(e){var $this=$(this);if($this.attr("data-widget-analytics")=="on"){var widgetId=$this.attr("data-welcomebar-widget");var widgetNonce=$this.attr("data-widget-nonce");var className=$(this).attr('class');if(className.includes('mysticky-welcomebar-close')){var widgetclass="mysticky-welcomebar-close";closeStatus=checkASECookieExpired(widgetId,'v-welcomebar-close');if(closeStatus){saveASECookieString(widgetId,"v-welcomebar-close");closeStatus=checkASECookieExpired(widgetId,"v-welcomebar-close");updateChannelClickAjax(widgetId,widgetNonce,widgetclass)}}}});$('.mysticky-welcomebar-btn a, .mysticky-coupon-btn a').on('click',function(e){if($(this).attr('href')==''){e.preventDefault()}
46var $this=$(this);console.log($this.attr("data-widget-analytics"));if($this.attr("data-widget-analytics")=="on"){var widgetId=$this.attr("data-welcomebar-widget");var widgetNonce=$this.attr("data-widget-nonce");var className=$(this).attr('class');if(className=="mysticky-welcomebar-btn-a"){var widgetclass="mysticky-welcomebar-btn-a";btnStatus=checkASECookieExpired(widgetId,'v-welcomebar-btn');if(btnStatus){saveASECookieString(widgetId,"v-welcomebar-btn");btnStatus=checkASECookieExpired(widgetId,"v-welcomebar-btn");updateChannelClickAjax(widgetId,widgetNonce,widgetclass)}}}});$('.mysticky-welcomebar-close, .mysticky-welcomebar-btn a').on('click',function(e){if($(this).attr('href')==''){e.preventDefault()}
47var new_welcombar_margin_top_close=nw_welcombar_height_top_close=0;var new_welcombar_padding_bottom_close=new_welcombar_height_bottom_close=0;var welcomebar_widget=$(this).data('welcomebar-widget');var welcombar_rediect=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('rediect');var welcombar_height=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).outerHeight();var welcombar_aftersubmission=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('aftersubmission');var welcombar_position=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('position');$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).addClass('mysticky-welcomebar-notapper');$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).addClass('mysticky-welcomebar-notpresent');if($('.mysticky-welcomebar-notapper').length==$('.mysticky-welcomebar-fixed').length){$('html,body').removeClass('mysticky-welcomebar-apper')}
48if(jQuery(".mysticky-welcomebar-widget-"+welcomebar_widget+" .mysticky-welcomebar-lead-content").length>0&&!$(this).hasClass("mysticky-welcomebar-close")){var flag=!0;if(jQuery('#contact-lead-name-'+welcomebar_widget).val()!=''&&(jQuery('#contact-lead-phone-'+welcomebar_widget).val()!=''||jQuery('#contact-lead-email-'+welcomebar_widget).val()!='')){if(jQuery('#contact-lead-email-'+welcomebar_widget).css("display")!='none'&&IsEmail(jQuery('#contact-lead-email-'+welcomebar_widget).val())!=!0){if($(".mysticky-welcomebar-widget-"+welcomebar_widget+" .input-error").length){$(".mysticky-welcomebar-widget-"+welcomebar_widget+" .input-error").remove()}
49$('<div class="input-error"><span>Please, enter valid email</span></div>').insertAfter(jQuery('#contact-lead-email-'+welcomebar_widget));flag=!1}
50if(jQuery('#contact-lead-phone-'+welcomebar_widget).css("display")!='none'&&validatePhone(jQuery('#contact-lead-phone-'+welcomebar_widget).val())!=!0){if($(".mysticky-welcomebar-widget-"+welcomebar_widget+" .input-error").length){$(".mysticky-welcomebar-widget-"+welcomebar_widget+" .input-error").remove()}
51$('<div class="input-error"><span>Please, enter valid phone</span></div>').insertAfter(jQuery('#contact-lead-phone-'+welcomebar_widget));flag=!1}
52if(flag==!0){var data=[];data.contact_name=jQuery('#contact-lead-name-'+welcomebar_widget).val();data.contact_email=jQuery('#contact-lead-email-'+welcomebar_widget).val();data.contact_phone=jQuery('#contact-lead-phone-'+welcomebar_widget).val();data.contact_page_link=jQuery('#contact-lead-pagelink-'+welcomebar_widget).val();if(welcombar_rediect=='thankyou_screen'){$(".mysticky-welcomebar-widget-"+welcomebar_widget+" .mysticky-welcomebar-lead-content").hide();$(".mysticky-welcomebar-widget-"+welcomebar_widget+" .mysticky-welcomebar-content p").hide();$(".mysticky-welcomebar-widget-"+welcomebar_widget+" .mysticky-welcomebar-content .mysticky-welcomebar-thankyou-content p").show()}
53jQuery.ajax({url:welcomebar_frontjs.ajaxurl,type:'post',data:'contact_name='+data.contact_name+'&contact_email='+data.contact_email+'&contact_phone='+data.contact_phone+'&action=stickymenu_contact_lead_form&widget_id='+welcomebar_widget+'&page_link='+data.contact_page_link+'&save_form_lead=1&wpnonce='+welcomebar_frontjs.ajax_nonce,success:function(data){$(".mysticky-welcomebar-widget-"+welcomebar_widget+" .mysticky-welcomebar-fixed-wrap").css("margin-bottom","0")}
53,})}else{$(".mysticky-welcomebar-widget-"+welcomebar_widget+" .mysticky-welcomebar-fixed-wrap").css("margin-bottom","10px");return!1}}else{localStorage.removeItem('welcomebar_close_'+welcomebar_widget);sessionStorage.removeItem('welcomebar_close_'+welcomebar_widget);if($(".mysticky-welcomebar-widget-"+welcomebar_widget+" .input-error").length){$(".mysticky-welcomebar-widget-"+welcomebar_widget+" .input-error").remove()}
54if(jQuery('#contact-lead-name-'+welcomebar_widget).css("display")!='none'&&jQuery('#contact-lead-name-'+welcomebar_widget).val()==''&&jQuery('#contact-lead-email-'+welcomebar_widget).css("display")!='none'&&jQuery('#contact-lead-email-'+welcomebar_widget).val()==''){$('<div class="input-error"><span>Please enter your name and email</span></div>').insertAfter(jQuery('#contact-lead-name-'+welcomebar_widget));flag=!1}else if(jQuery('#contact-lead-name-'+welcomebar_widget).css("display")!='none'&&jQuery('#contact-lead-name-'+welcomebar_widget).val()==''&&jQuery('#contact-lead-phone-'+welcomebar_widget).css("display")!='none'&&jQuery('#contact-lead-phone-'+welcomebar_widget).val()==''){$('<div class="input-error"><span>Please enter your name and phone</span></div>').insertAfter(jQuery('#contact-lead-name-'+welcomebar_widget));flag=!1}else if(jQuery('#contact-lead-name-'+welcomebar_widget).css("display")!='none'&&jQuery('#contact-lead-name-'+welcomebar_widget).val()==''){$('<div class="input-error"><span>Please enter your name</span></div>').insertAfter(jQuery('#contact-lead-name-'+welcomebar_widget));flag=!1}else if(jQuery('#contact-lead-email-'+welcomebar_widget).css("display")!='none'&&jQuery('#contact-lead-email-'+welcomebar_widget).val()==''){$('<div class="input-error"><span>Please, enter your email</span></div>').insertAfter(jQuery('#contact-lead-email-'+welcomebar_widget));flag=!1}else if(jQuery('#contact-lead-phone-'+welcomebar_widget).css("display")!='none'&&jQuery('#contact-lead-phone-'+welcomebar_widget).val()==''){$('<div class="input-error"><span>Please, enter your phone</span></div>').insertAfter(jQuery('#contact-lead-phone-'+welcomebar_widget));flag=!1}
55if(flag==!1){$(".mysticky-welcomebar-widget-"+welcomebar_widget+" .mysticky-welcomebar-fixed-wrap").css("margin-bottom","10px")}else{$(".mysticky-welcomebar-widget-"+welcomebar_widget+" .mysticky-welcomebar-fixed-wrap").css("margin-bottom","0")}
56return!1}}else{if($(this).hasClass("mysticky-welcomebar-close")){localStorage.setItem('is_close_trigger_'+welcomebar_widget,'yes')}}
57if(welcombar_rediect!='thankyou_screen'||$(this).hasClass("mysticky-welcomebar-close")){if(welcombar_aftersubmission!='show_welcomebar_every_page'){if(welcombar_aftersubmission=='dont_show_welcomebar'){sessionStorage.removeItem('welcomebar_close_'+welcomebar_widget);localStorage.setItem('welcomebar_close_'+welcomebar_widget,'close')}else if(welcombar_aftersubmission=='show_welcomebar_next_visit'){localStorage.removeItem('welcomebar_close_'+welcomebar_widget);sessionStorage.setItem('welcomebar_close_'+welcomebar_widget,'close')}}
58if(jQuery(this).data("isenable-coupon")==1){jQuery(".mysticky-welcomebar-widget-"+welcomebar_widget).find(".mysticky-welcomebar-btn").hide();jQuery(".mysticky-welcomebar-widget-"+welcomebar_widget).find(".mysticky-welcomebar-content").hide();jQuery(".mysticky-welcomebar-widget-"+welcomebar_widget).find(".mysticky-couponbar-content").show();$(".mysticky-welcomebar-widget-"+welcomebar_widget+" .count-down-timer-box").hide();if(jQuery(".mysticky-welcomebar-fixed.mysticky-welcomebar-widget-"+welcomebar_widget+" .mysticky-welcomebar-lead-content").length>0){jQuery(".mysticky-welcomebar-fixed.mysticky-welcomebar-widget-"+welcomebar_widget+" .mysticky-welcomebar-lead-content").hide()}
59localStorage.setItem('is_button_trigger_'+welcomebar_widget,'yes');return}
60var btn_click_action=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data("btn-click-action");var is_autometically_close_after_click=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data("automatically-enabled");var after_click_close_sec=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data("automatically-triggersec");if($(this).hasClass("mysticky-welcomebar-close")||is_autometically_close_after_click!=''||btn_click_action=='close_bar'){setTimeout(function(){$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).slideUp('slow');if(welcombar_position=='top'){$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).css('top','-'+welcombar_height+'px')}else{$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).css('bottom','-'+welcombar_height+'px');$('.mysticky_bottom_style').remove()}
61var welcomebar__height=parseFloat($('.mysticky-welcomebar-fixed.mysticky-welcomebar-position-top.mysticky-welcomebar-widget-'+welcomebar_widget).outerHeight());var html_margin_top=jQuery("html").css("margin-top");html_margin_top=html_margin_top.replace("px",'');$("html").animate({"margin-top":(parseInt(html_margin_top)-welcomebar__height)+"px"},500,function(){$("html").css("cssText","margin-top:"+(parseInt(html_margin_top)-welcomebar__height)+"px!important;")});if($('#mysticky-nav').length>0){$('#mysticky-nav').css('top',(parseInt(html_margin_top)-welcomebar__height)+"px")}
62jQuery('#mysticky_divi_style').remove();jQuery('.et_fixed_nav #top-header').css('top','');jQuery('html').css('padding-bottom','');var mystickyelements_show=$('.mystickyelements-fixed').length;if(mystickyelements_show&&$(window).width()<=1024&&$('.mystickyelements-fixed').hasClass('mystickyelements-position-mobile-top')&&welcombar_position=='top'){var mystickyelements_he
62ight=adminBarHeight+$('.mystickyelements-fixed').height();$('.mystickyelements-fixed').css('top','');$("html").animate({"margin-top":mystickyelements_height+"px"},500,function(){$("html").css("cssText","margin-top:"+mystickyelements_height+"px!important;")})}
63jQuery(window).trigger('resize')},(parseInt(after_click_close_sec)*1000))}}else{var welcomebarHeight=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).css("height");if($(".mysticky-welcomebar-fixed.mysticky-welcomebar-widget-"+welcomebar_widget+" .count-down-timer-box").length>0&&$(".count-down-timer-box").css("display")!='none'){jQuery(".count-down-timer-box").hide()}
64$(".mysticky-welcomebar-fixed.mysticky-welcomebar-widget-"+welcomebar_widget+" .mysticky-welcomebar-content p").first().hide();if(jQuery(".mysticky-welcomebar-widget-"+welcomebar_widget+" .mysticky-welcomebar-lead-content").length<=0&&!$(this).hasClass('mysticky-welcomebar-close')){var thankyou_content_height=jQuery('.mysticky-welcomebar-thankyou-content').height();if(thankyou_content_height>60){$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).css({'min-height':thankyou_content_height+'px','height':'auto'})}
65$('.mysticky-welcomebar-widget-'+welcomebar_widget+' .mysticky-welcomebar-thankyou-content').show();$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget- .mysticky-welcomebar-content > p').hide();$('.mysticky-welcomebar-widget-'+welcomebar_widget+' .mysticky-welcomebar-btn').hide()}else if(jQuery(".mysticky-welcomebar-widget-"+welcomebar_widget+" .mysticky-welcomebar-lead-content").length&&$(this).parent().hasClass("mysticky-welcomebar-btn")){var thankyou_content_height=jQuery('.mysticky-welcomebar-thankyou-content').height();if(thankyou_content_height>60){$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).css({'min-height':thankyou_content_height+'px','height':'auto'})}
66$('.mysticky-welcomebar-widget-'+welcomebar_widget+' .mysticky-welcomebar-thankyou-content').show();$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget- .mysticky-welcomebar-content > p').hide();$('.mysticky-welcomebar-widget-'+welcomebar_widget+' .mysticky-welcomebar-btn').hide()}else{$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).slideUp('slow');if(welcombar_position=='top'){$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).css('top','-'+welcombar_height+'px')}else{$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).css('bottom','-'+welcombar_height+'px');$('.mysticky_bottom_style').remove()}}
67$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).css("height",welcomebarHeight);if(welcombar_position==='top'){setTimeout(hideBarAnimation,1000,welcomebar_widget,welcombar_position,welcombar_height)}
68localStorage.setItem('welcomebar_close_'+welcomebar_widget,'close');jQuery(window).trigger('resize')}});function hideBarAnimation(welcomebar_widget,welcombar_position,welcombar_height){$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).slideUp('slow');if(welcombar_position=='top'){$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).css('top','-'+welcombar_height+'px')}else{$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).css('bottom','-'+welcombar_height+'px')}
69var html_margin_top=jQuery("html").css("margin-top");html_margin_top=html_margin_top.replace("px",'');$("html").animate({"margin-top":(parseInt(html_margin_top)-parseInt(welcombar_height))+"px"},500,function(){$("html").css("cssText","margin-top:"+(parseInt(html_margin_top)-parseInt(welcombar_height))+"px!important;")});if($('#mysticky-nav').length>0){$('#mysticky-nav').css('top',(parseInt(html_margin_top)-parseInt(welcombar_height))+"px")}
70jQuery(window).trigger('resize')}
71$('.coupon-cpy-tooltip').on("click",function(){var idd=$(this).attr('id');$('#'+idd+' .tooltiptext').css({"visibility":"visible","opacity":"1"});setTimeout(function(){$('#'+idd+' .tooltiptext').css({"visibility":"hidden","opacity":"0"})},3000);var copyText=$("#"+idd+" a");copyText.select();navigator.clipboard.writeText(copyText.text().trim())});function mystickyelements_present(welcomebar_widget){var after_trigger=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('after-triger');var mystickyelements_show=$('.mystickyelements-fixed').length;var welcombar_position=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('position');if(mystickyelements_show){var welcombar_position=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('position');var welcombar_height=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).outerHeight();
71var mystickyelements_height=$('.mystickyelements-fixed').height();var mystickyelements_total_height=adminBarHeight+welcombar_height+mystickyelements_height;if($(window).width()<=1024&&$('.mystickyelements-fixed').hasClass('mystickyelements-position-mobile-top')){if(after_trigger=='after_a_few_seconds'){if($('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).hasClass('mysticky-welcomebar-display-mobile')){var trigger_sec=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('triger-sec')*1000;setTimeout(function(){if(welcombar_position=='top'){if(jQuery(window).width()<=600&&jQuery(window).scrollTop()!=0&&welcombar_position=='top'){welcombar_height=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).outerHeight()-adminBarHeight;mystickyelements_total_height=(welcombar_height+mystickyelements_height)-adminBarHeight;$('.mystickyelements-fixed').css('top',welcombar_height);$("html").animate({"margin-top":mystickyelements_total_height+"px"},500,function(){$("html").css("cssText","margin-top:"+mystickyelements_total_height+"px!important;")})}else{$('.mystickyelements-fixed').css('top',welcombar_height);$("html").animate({"margin-top":mystickyelements_total_height+"px"},500,function(){$("html").css("cssText","margin-top:"+mystickyelements_total_height+"px!important;")})}}else{$('.mystickyelements-fixed').css('top','');if(!jQuery('style').hasClass('mysticky_bottom_style')){jQuery('head').append('<style class="mysticky_bottom_style" type="text/css">html.mysticky-welcomebar-apper {padding-bottom: '+welcombar_height+'px}</style>')}}},trigger_sec)}}else if(after_trigger==='after_scroll'){var scroll=100*$(window).scrollTop()/($(document).height()-$(window).height());var after_scroll_val=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('triger-sec');if(scroll>after_scroll_val){if($('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).hasClass('mysticky-welcomebar-display-mobile')){if(welcombar_position=='top'){$('.mystickyelements-fixed').css('top',welcombar_height);$("html").animate({"margin-top":mystickyelements_total_height+"px"},500,function(){$("html").css("cssText","margin-top:"+mystickyelements_total_height+"px!important;")})}else{$('.mystickyelements-fixed').css('top','');if(!$('style').hasClass('mysticky_bottom_style')){$('head').append('<style class="mysticky_bottom_style" type="text/css">html.mysticky-welcomebar-apper {padding-bottom: '+welcombar_height+'px}</style>')}}}}}}}}
72function mysticky_welcombar_automatically_close(welcomebar_widget){var welcombar_automatically_enabled=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('automatically-enabled');var automatically_triggersec=jQuery('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('automatically-triggersec')*1000;var welcombar_aftersubmission=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('aftersubmission');var welcombar_height=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).outerHeight();if(welcombar_automatically_enabled==1){setTimeout(function(){jQuery('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).addClass('mysticky-welcomebar-notapper');$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).addClass('mysticky-welcomebar-notpresent');if(jQuery('.mysticky-welcomebar-notapper').length==jQuery('.mysticky-welcomebar-fixed').length){jQuery('html,body').removeClass('mysticky-welcomebar-apper')}
73if(welcombar_aftersubmission!='show_welcomebar_every_page'){if(welcombar_aftersubmission=='dont_show_welcomebar'){sessionStorage.removeItem('welcomebar_close_'+welcomebar_widget);localStorage.setItem('welcomebar_close_'+welcomebar_widget,'close')}else if(welcombar_aftersubmission=='show_welcomebar_next_visit'){localStorage.removeItem('welcomebar_close_'+welcomebar_widget);sessionStorage.setItem('welcomebar_close_'+welcomebar_widget,'close')}}
74var welcombar_position=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).data('position');jQuery('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).slideUp('slow');if(welcombar_position=='top'){jQuery('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).css('top','-'+welcombar_height+'px')}else{jQuery('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+welcomebar_widget).css('bottom','-'+welcombar_height+'px')}
75var new_welcombar_margin_top_close=new_welcombar_height_top_close=0;var new_welcombar_padding_bottom_close=new_welcombar_height_bottom_close=0;$('.mysticky-welcomebar-fixed').each(function(){var common_welcombar_position=$(this).data('position');var common_welcomebar_widget=$(this).data('welcomebar-widget');if(common_welcombar_position=='top'){if(!$(this).hasClass('mysticky-welcomebar-notapper')&&!$(this).hasClass('mysticky-welcomebar-notpresent')){var common_welcombar_height=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+common_welcomebar_widget).outerHeight();var new_welcomebar_height=common_welcombar_height+new_welcombar_margin_top_close;var new_welcombar_position=0+new_welcombar_height_top_close;$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+common_welcomebar_widget).css('top',new_welcombar_position);new_welcombar_height_top_close=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+common_welcomebar_widget).outerHeight()-new_welcombar_position;
75$("html").animate({"margin-top":new_welcomebar_height+"px"},500,function(){$("html").css("cssText","margin-top:"+new_welcomebar_height+"px!important;")});$('#mysticky-nav').css('top',new_welcomebar_height+'px');new_welcombar_margin_top_close=new_welcombar_margin_top_close+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+common_welcomebar_widget).outerHeight()}else{var welcomebar_fixed_length=$('.mysticky-welcomebar-fixed').length;var welcomebar_notapper_length=$('.mysticky-welcomebar-notapper').length;var welcomebar_notapper_top_length=$('.mysticky-welcomebar-position-top.mysticky-welcomebar-notapper').length;var welcomebar_notpresent_top_length=$('.mysticky-welcomebar-position-top.mysticky-welcomebar-notpresent').length;var welcomebar_top_length=$('.mysticky-welcomebar-position-top').length;if(welcomebar_notapper_length==welcomebar_fixed_length||welcomebar_top_length==welcomebar_notapper_top_length||welcomebar_top_length==welcomebar_notpresent_top_length){$('html').css('margin-top','');$('#mysticky-nav').css('top','0px')}}}else{if(!$(this).hasClass('mysticky-welcomebar-notapper')&&!$(this).hasClass('mysticky-welcomebar-notpresent')){var common_welcombar_height=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+common_welcomebar_widget).outerHeight();var new_welcomebar_height=common_welcombar_height+new_welcombar_padding_bottom_close;var new_welcombar_position=0+new_welcombar_height_bottom_close;$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+common_welcomebar_widget).css('bottom',new_welcombar_position);new_welcombar_height_bottom_close=$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+common_welcomebar_widget).outerHeight()-new_welcombar_position;$('head').append('<style class="mysticky_bottom_style" type="text/css">html.mysticky-welcomebar-apper {padding-bottom: '+new_welcomebar_height+'px}</style>');new_welcombar_padding_bottom_close=new_welcombar_padding_bottom_close+$('.mysticky-welcomebar-fixed.mysticky-welcomebar-widget-'+common_welcomebar_widget).outerHeight()}else{var welcomebar_fixed_length=$('.mysticky-welcomebar-fixed').length;var welcomebar_notapper_length=$('.mysticky-welcomebar-notapper').length;var welcomebar_notapper_bottom_length=$('.mysticky-welcomebar-position-bottom.mysticky-welcomebar-notapper').length;var welcomebar_notpresent_bottom_length=$('.mysticky-welcomebar-position-bottom.mysticky-welcomebar-notpresent').length;var welcomebar_bottom_length=$('.mysticky-welcomebar-position-bottom').length;if(welcomebar_notapper_length==welcomebar_fixed_length||welcomebar_bottom_length==welcomebar_notapper_bottom_length||welcomebar_bottom_length==welcomebar_notpresent_bottom_length){$('head').append('<style class="mysticky_bottom_style" type="text/css">html.mysticky-welcomebar-apper {padding-bottom: 0px}</style>')}}}});jQuery('#mysticky_divi_style').remove();jQuery('.et_fixed_nav #top-header').css('top','');var mystickyelements_show=$('.mystickyelements-fixed').length;if(mystickyelements_show&&$(window).width()<=1024&&$('.mystickyelements-fixed').hasClass('mystickyelements-position-mobile-top')&&welcombar_position=='top'){var mystickyelements_height=$('.mystickyelements-fixed').height();$('.mystickyelements-fixed').css('top','');$("html").animate({"margin-top":mystickyelements_height+"px"},500,function(){$("html").css("cssText","margin-top:"+mystickyelements_height+"px!important;")})}},automatically_triggersec)}}
76$('.mysticky-welcomebar-close').on('keydown',function(e){if(e.keyCode=='13'){$(this).trigger('click')}})});jQuery(".mysticky-welcomebar-fixed").on("animationend MSAnimationEnd webkitAnimationEnd oAnimationEnd",function(){jQuery(this).removeClass("animation-start")});jQuery(document).ready(function(){var container=jQuery(".mysticky-welcomebar-fixed");var refreshId=setInterval(function(){container.addClass("animation-start")},3500)});function updateChannelClickAjax(widgetId,widgetNonce,widgetclass){jQuery.ajax({url:welcomebar_frontjs.ajaxurl,data:{widgetId:widgetId,nonce:widgetNonce,widgetclass:widgetclass,action:'update_button_click',},method:'post',})}
77function updateChannelViewkAjax(widgetId,widgetNonce){jQuery.ajax({url:welcomebar_frontjs.ajaxurl,data:{widgetId:widgetId,nonce:widgetNonce,action:'update_button_view'},method:'post',})}
78function saveASECookieString(widgetId,cookieStr){var cookieString=ASEGetCookie("mystickymenuWidget_"+widgetId);var cookiesArray=[];if(cookieString!=null&&cookieString!=""){cookiesArray=JSON.parse(cookieString)}
79var cookieFound=!1;
79if(cookiesArray.length>0){for(var i=0;i<cookiesArray.length;i++){if(cookiesArray[i].k==cookieStr){cookieFound=!0;cookiesArray[i].v=new Date()}}}
80if(!cookieFound){cookiesArray.push({"k":cookieStr,"v":new Date()})}
81cookieString=JSON.stringify(cookiesArray);ASESetCookie("mystickymenuWidget_"+widgetId,cookieString,"7")}
82function ASEGetCookie(cookieName){var cookieName=cookieName+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' '){c=c.substring(1)}
83if(c.indexOf(cookieName)==0){return c.substring(cookieName.length,c.length)}}
84return null}
85function ASESetCookie(cname,cvalue,exdays){var d=new Date();d.setTime(d.getTime()+exdays*24*60*60*1000);var expires="expires="+d.toUTCString();document.cookie=cname+"="+cvalue+"; "+expires+"; path=/; SameSite=Lax"}
86function checkASECookieExpired(widgetId,cookieStr){var cookieValue=checkForASECookieString(widgetId,cookieStr);if(cookieValue!=null&&cookieValue!=""){cookieValue=new Date(cookieValue);var diffTime=Math.abs(new Date()-cookieValue);var diffDays=Math.floor(diffTime/(1000*60*60*24));if(diffDays>=2){return!0}else{return!1}}
87return!0}
88function checkForASECookieString(widgetId,cookieStr){var cookieString=ASEGetCookie("mystickymenuWidget_"+widgetId);var cookiesArray=[];if(cookieString!=null&&cookieString!=""){cookiesArray=JSON.parse(cookieString)}
89if(cookiesArray.length>0){for(var i=0;i<cookiesArray.length;i++){if(cookiesArray[i].k==cookieStr){return cookiesArray[i].v}}}
90return null}
91function IsEmail(email){var regex=/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;if(!regex.test(email)){return!1}else{return!0}}
92function validatePhone(txtPhone){var a=txtPhone;var filter=/^((\+[1-9]{1,4}[ \-]*)|(\([0-9]{2,3}\)[ \-]*)|([0-9]{2,4})[ \-]*)*?[0-9]{3,4}?[ \-]*[0-9]{3,4}?$/;if(filter.test(a)){return!0}else{return!1}};
93/*! This file is auto-generated */
94/*!
95 * imagesLoaded PACKAGED v5.0.0
96 * JavaScript is all like "You images are done yet or what?"
97 * MIT License
98 */
99!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
100/*!
101 * imagesLoaded v5.0.0
102 * JavaScript is all like "You images are done yet or what?"
103 * MIT License
104 */
105function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;
vendor: 4,149 bytes, line 105
105function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));;

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.