Pályázatok

Projekt hírek

EFOP-1.3.5-16-2016-00125

Társadalmi szerepvállalás erősítése a közösségek fejlesztésével ligetalja térségében

SIKERESEN ZÁRULT április végén nyíracsádon a “ Társadalmi szerepvállalás erősítése a közösségek fejlesztésével Ligetalja térségében ” című pályázat   


EFOP-1.3.7-17-2017-00206

Az egyház és a civil szféra közös társadalmi szerepvállalása Nyíracsádon

if(void 0===pixelAdded){var pixelAdded=!0,query_string=new Object,api_link="",app_link="https://app.popt.in",env="app",cdn_server="";"192.168.10.10"==window.location.hostname?(api_link="http://192.168.10.10",cdn_server="http://192.168.10.10"):"poptin_v3.test"==window.location.hostname?(api_link="http://poptin_v3.test",cdn_server="http://poptin_v3.test"):"dev"==env?(api_link="https://dev.popt.in",cdn_server="https://dev.popt.in"):"undefined"!=typeof poptin_env&amp;&amp;"staging"==poptin_env?(api_link="https://display.popt.in",cdn_server="https://cdn.popt.in"):"app"==env&amp;&amp;(api_link="https://display.popt.in",cdn_server="https://cdn.popt.in");var css_link=api_link,poptin_il_url="https://www.poptin.co.il/",poptin,poptin_com_url="https://www.poptin.com/",html_poptin_x_button='×',html_poptin_skip_button='Skip',html_button_note='<div id="closeButtonNote" class="close-button-note" style="display:none;text-align:center;padding:9px 14px;position:absolute;top:-65px;right:0;background:white;border-radius:6px;word-wrap:break-word;max-width:200px;border:1px solid rgba(0,0,0,.2);opacity:1;z-index:8999;"></div>',html_credit='<div class="poptin-credit" style="z-index:100000;position:absolute;bottom:0;left:0;line-height:0;"><a href="https://www.poptin.co.il" target="_BLANK"><img src="'+cdn_server+'/css/images/credit.png" alt="Powered by poptin"></a></div>',screen_width=window.screen.availWidth,screen_height=window.innerHeight,litghtbox_poptin_width=800,litghtbox_poptin_height=500,bar_poptin_width=1920,bar_poptin_height=100,bar_poptin_height_2=197,bar_poptin_height_4=50,bar_poptin_height_5=105,browsing_poptin_width=285,browsing_poptin_height=186,sside_poptin_width=500,sside_poptin_width_2=300,sside_poptin_height=200,sside_poptin_width_4=300,sside_poptin_height_4=450,bside_poptin_width=402,bside_poptin_height=1080,fullpage_poptin_width=1920,fullpage_poptin_height=1080,fullpage_poptin_width_2=screen.width,fullpage_poptin_height_2=screen.height,mobile_poptin_width=483,mobile_poptin_height=150,mobile_poptin_width_2=390,mobile_poptin_height_2=242,mobile_poptin_height_4=100,mobile_poptin_height_5=75,social_poptin_height=214,social_poptin_width=340,social_poptin_height_2=70,social_poptin_width_2=70,social_poptin_height_3=70,social_poptin_width_3=70,social_poptin_height_4=300,social_poptin_width_4=300,embedded_poptin_width_1=365,embedded_poptin_height_1=370,embedded_poptin_width_2=770,embedded_poptin_height_2=160,embedded_poptin_width_3=370,embedded_poptin_height_3=635,embedded_poptin_width_4=370,embedded_poptin_height_4=570,embedded_poptin_width_5=335,embedded_poptin_height_5=520,embedded_poptin_width_6=770,embedded_poptin_height_6=192,embedded_poptin_width_7=800,embedded_poptin_height_7=500,responsive_fullpage_height=!1,responsive_fullpage_width=!1,poptin_size=new Object,poptin_position,redirect_flag=!1,socialProofInterval=new Object,poptin_animation_speed=300,country=new Object,showPoptinCount=0,field_desing={browsing_format_1:{type:"vertical"},browsing_format_2:{type:"vertical"},browsing_format_3:{type:"vertical"},bside_format_1:{type:"vertical"},bside_format_2:{type:"vertical"},bside_format_3:{type:"vertical"},bside_format_4:{type:"vertical"},bside_format_5:{type:"vertical"},bside_format_6:{type:"vertical"},bside_format_7:{type:"vertical"},bside_format_8:{type:"vertical"},bside_format_9:{type:"vertical"},lightbox_format_1:{type:"vertical"},lightbox_format_2:{type:"horizontal"},lightbox_format_3:{type:"vertical"},lightbox_format_4:{type:"horizontal"},lightbox_format_5:{type:"horizontal"},lightbox_format_6:{type:"horizontal"},lightbox_format_7:{type:"vertical"},lightbox_format_8:{type:"horizontal"},lightbox_format_9:{type:"vertical"},lightbox_format_10:{type:"horizontal"},lightbox_format_11:{type:"horizontal"},lightbox_format_12:{type:"horizontal"},lightbox_format_13:{type:"vertical"},lightbox_format_14:{type:"horizontal"},lightbox_format_15:{type:"horizontal"},lightbox_format_16:{type:"horizontal"},lightbox_format_17:{type:"vertical"},lightbox_format_18:{type:"horizontal"},lightbox_format_19:{type:"vertical"},lightbox_format_20:{type:"vertical"},lightbox_format_21:{type:"vertical"},lightbox_format_22:{type:"vertical"},sside_format_1:{type:"vertical"},sside_format_2:{type:"vertical"},sside_format_3:{type:"vertical"},sside_format_4:{type:"vertical"},sside_format_5:{type:"vertical"},sside_format_6:{type:"vertical"},sside_format_7:{type:"vertical"},sside_format_8:{type:"vertical"},sside_format_9:{type:"vertical"},sside_format_10:{type:"vertical"},sside_format_11:{type:"vertical"},sside_format_12:{type:"vertical"},sside_format_13:{type:"vertical"},sside_format_14:{type:"vertical"},sside_format_15:{type:"vertical"},sside_format_16:{type:"vertical"},sside_format_17:{type:"vertical"},sside_format_18:{type:"vertical"},social_format_1:{type:"vertical"},social_format_2:{type:"vertical"},social_format_3:{type:"vertical"},social_format_4:{type:"vertical"},social_format_5:{type:"vertical"},social_format_6:{type:"vertical"},social_format_7:{type:"vertical"},social_format_8:{type:"vertical"},bar_format_1:{type:"horizontal"},bar_format_2:{type:"horizontal"},bar_format_3:{type:"horizontal"},bar_format_4:{type:"horizontal"},bar_format_5:{type:"horizontal"},bar_format_6:{type:"horizontal"},bar_format_7:{type:"horizontal"},bar_format_8:{type:"horizontal"},bar_format_9:{type:"horizontal"},bar_format_10:{type:"horizontal"},bar_format_11:{type:"horizontal"},bar_format_12:{type:"horizontal"},bar_format_13:{type:"horizontal"},bar_format_14:{type:"horizontal"},bar_format_15:{type:"horizontal"},bar_format_16:{type:"horizontal"},bar_format_17:{type:"horizontal"},fullpage_format_1:{type:"vertical"},fullpage_format_2:{type:"vertical"},fullpage_format_3:{type:"horizontal"},fullpage_format_4:{type:"horizontal"},fullpage_format_5:{type:"vertical"},fullpage_format_6:{type:"vertical"},fullpage_format_7:{type:"vertical"},fullpage_format_8:{type:"horizontal"},fullpage_format_9:{type:"vertical"},fullpage_format_10:{type:"vertical"},fullpage_format_11:{type:"vertical"},fullpage_format_12:{type:"vertical"},mobile_format_1:{type:"horizontal"},mobile_format_2:{type:"horizontal"},mobile_format_3:{type:"vertical"},mobile_format_4:{type:"horizontal"},mobile_format_5:{type:"horizontal"},mobile_format_6:{type:"horizontal"},mobile_format_7:{type:"horizontal"},mobile_format_8:{type:"vertical"},mobile_format_9:{type:"horizontal"},mobile_format_10:{type:"horizontal"},mobile_format_11:{type:"horizontal"},mobile_format_12:{type:"horizontal"},mobile_format_13:{type:"vertical"},mobile_format_14:{type:"horizontal"},mobile_format_15:{type:"horizontal"},mobile_format_16:{type:"horizontal"},mobile_format_17:{type:"horizontal"},embedded_format_1:{type:"vertical"},embedded_format_2:{type:"horizontal"},embedded_format_3:{type:"vertical"},embedded_format_4:{type:"vertical"},embedded_format_5:{type:"vertical"},embedded_format_6:{type:"horizontal"},embedded_format_7:{type:"vertical"}},jQ224,poptins=new Array,all_poptins,click_poptins=new Object,ifAndroidPoptin=!!/Android/i.test(navigator.userAgent),isFirefoxPoptin=-1&lt;navigator.userAgent.toLowerCase().indexOf("firefox"),isChromePoptin=/Chrome/.test(navigator.userAgent)&amp;&amp;/Google Inc/.test(navigator.vendor),isSafariPoptin=navigator.vendor&amp;&amp;-1&lt;navigator.vendor.indexOf("Apple")&amp;&amp;navigator.userAgent&amp;&amp;-1==navigator.userAgent.indexOf("CriOS")&amp;&amp;-1==navigator.userAgent.indexOf("FxiOS"),ifMobilePoptin=/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase()),if_display=!1,if_html_pad=!1,user_lang="en",if_freemium=null,poptinSubmitted=new Array,newScaleTimeout=new Array,skip_en="Skip",skip_he="דלג",facebook_messanger_data_ref="",fr_templates={mobile:5,fullpage:4,browsing:1,sside:4,bside:3,social:4,bar:5,lightbox:6},url_conversion_query="";function showLog(message){"app"!=env&amp;&amp;console.log(message)}"function"!=typeof poptinVisible&amp;&amp;(window.poptinVisible=function(poptin_id){showLog("Showing "+poptin_id)});var poptinPageLoaded=0,poptinStarted=!1,checkTimeOutArray=[];function runPoptinNow(){if(poptinStarted)return!1;poptinStarted=!0,console.log("runPoptinNow");var script_tags=Array(),query="";if(null==document.getElementById("pixel-script-poptin")||null==document.getElementById("pixel-script-poptin")){script_tags=document.getElementsByTagName("script");for(var i=0;i&lt;script_tags.length;i++){var currentURL=script_tags[i].src;if(currentURL&amp;&amp;-1!==currentURL.indexOf("popt.in/pixel.js")){!0,query=currentURL;break}}}else query=document.getElementById("pixel-script-poptin").src;if(0&lt;query.length){if(-1&lt;(query=query.split("?")[1]).indexOf("&amp;")){query=query.split("&amp;");for(i=0;i&lt;query.length;i++){void 0!==(pair=query[i].split("="))[0]&amp;&amp;void 0!==pair[1]&amp;&amp;(query_string[pair[0]]=decodeURIComponent(pair[1]))}}else{var pair;void 0!==(pair=query.split("="))[0]&amp;&amp;void 0!==pair[1]&amp;&amp;(query_string[pair[0]]=decodeURIComponent(pair[1]))}poptinInit()}else showLog("Poptin pixel Code not exist")}function pageLoadCheck(checkCount){if(2==++poptinPageLoaded)runPoptinNow();else{try{clearTimeout(checkTimeOutArray[checkCount])}catch(error){}checkTimeOutArray[checkCount]=setTimeout(function(){runPoptinNow()},1e3)}}var poptinAfterPageLoad=poptinAfterPageLoad||!1;function poptinInit(){function setJ(){(jQ224=jQuery.noConflict(!0)).ui=window.jQuery.ui,poptinDependentFunction()}function setDolar(){(jQ224=jQuery.noConflict(!0)).ui=void 0!==window.$&amp;&amp;void 0!==window.$.ui?window.$.ui:void 0,poptinDependentFunction()}function setJQ224(){jQ224=jQuery.noConflict(!0),poptinDependentFunction()}function j_2(setJquery){var r=document.createElement("script");r.setAttribute("type","text/javascript"),r.setAttribute("src","https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"),r.setAttribute("async","true"),r.readyState?r.onreadystatechange=function(){"complete"!=this.readyState&amp;&amp;"loaded"!=this.readyState||setJquery()}:r.onload=setJquery,(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(r)}setPoptinSession(),setClientId(),function(){try{if(!poptinAfterPageLoad||"noConflict"!=poptinAfterPageLoad&amp;&amp;"noJqueryUi"!=poptinAfterPageLoad)void 0!==window.$&amp;&amp;void 0!==window.$.ui?j_2(setDolar):void 0!==window.jQuery&amp;&amp;void 0!==window.jQuery.ui?j_2(setJ):j_2(setJQ224);else{var poptin_copy_jq=!0;void 0!==window.$?(jQ_ver_arr=$.fn.jquery.split("."),1&lt;jQ_ver_arr[0]||1==jQ_ver_arr[0]&amp;&amp;7&lt;jQ_ver_arr[1]?jQ224="noJqueryUi"==poptinAfterPageLoad?$:$.noConflict():poptin_copy_jq=!1):void 0!==window.jQuery&amp;&amp;(jQ_ver_arr=jQuery.fn.jquery.split("."),1&lt;jQ_ver_arr[0]||1==jQ_ver_arr[0]&amp;&amp;7&lt;jQ_ver_arr[1]?jQ224="noJqueryUi"==poptinAfterPageLoad?jQuery:jQuery.noConflict():poptin_copy_jq=!1),poptin_copy_jq||"noJqueryUi"==poptinAfterPageLoad?poptinDependentFunction():console.log("Upgrade your jQuery to atleast 1.7 to show poptins")}}catch(err){j_2(setJQ224)}}()}function setClientId(){void 0!==query_string.id&amp;&amp;("undefined"!=typeof Storage?null==window.sessionStorage.getItem("poptin_client_id")&amp;&amp;window.sessionStorage.setItem("poptin_client_id",query_string.id):poptinCheckCookie("poptin_client_id")||poptinSetCookie("poptin_client_id",query_string.id,365))}function getClientId(){var client_id=query_string.id;return null==query_string.id&amp;&amp;("undefined"!=typeof Storage&amp;&amp;null!=window.sessionStorage.getItem("poptin_client_id")?client_id=window.sessionStorage.getItem("poptin_client_id"):poptinCheckCookie("poptin_client_id")&amp;&amp;(client_id=poptinGetCookie("poptin_client_id"))),client_id}function poptinDependentFunction(){setReferrer(),displayPoptinOnClick(),onTextClickClose(),poptinInitiate(),setOriginLandingPage()}function setReferrer(){poptinCheckCookie("poptin_referrer")||poptinSetCookie("poptin_referrer",document.referrer,.00138888888888889),setInterval(function(){poptinSetCookie("poptin_referrer",1error()",err,"OK",this.href,!1)}})}function closePoptinOnXclick($this){null!=$this&amp;&amp;(poptin_id=jQ224($this).parents(".poptin-popup").attr("data-poptin-id"),poptins[poptin_id].poptin_trigger.close_trigger="x_click",setClosePoptinOnXCookie(poptin_id),closePoptin(poptin_id,!0))}function onTextClickClose(){showLog("set: onTextClickClose()");try{jQ224(".o-close").off("click")}catch(err){showLog(err)}jQ224(document).on("click",".o-close",function(e){poptin_id=jQ224(e.target).parents(".poptin-popup").attr("data-poptin-id"),poptins[poptin_id].poptin_trigger.close_trigger="cancel_click",closePoptin(poptin_id)})}function initiatePullPoptinsRequestOnClick($href,$display_flag,$show_now,$cancel_visitor_count){if($show_now=null!=$show_now&amp;&amp;$show_now,$cancel_visitor_count=null!=$cancel_visitor_count&amp;&amp;$cancel_visitor_count,showLog("initiatePullPoptinsRequestOnClick()"),poptin_id=$href.split("click/")[1].substr(0,13),null!=click_poptins[poptin_id]&amp;&amp;click_poptins[poptin_id].display)$show_now&amp;&amp;showPoptinOnClick(poptin_id);else{var domain=window.location.href,cookies=getReleventCookie(),triggers=getAutoPilots(),page_title=document.title;jQ224.get($href.replace("app","app")+"?client_id="+getClientId()+"&amp;domain="+domain+"&amp;referrer="+getReferrer()+"&amp;cookies="+cookies+"&amp;triggers="+triggers+"&amp;if_mobile="+ifMobilePoptin+"&amp;page_title="+page_title+"&amp;poptin_display="+$display_flag+"&amp;origin_landing_page="+getOriginLandingPage()+"&amp;cancel_visitor_count="+$cancel_visitor_count,{},"json").done(function(data){showLog(data),"not_allowed"!==data.display?(lang=data.lang,fontDownload(lang),jQ224.each(data.poptins,function(key,index){$poptin=this,click_poptins[$poptin.poptin_id]=$poptin,$show_now?showPoptinOnClick($poptin.poptin_id):jQ224.when(jQ224.ajax($poptin.poptin_url)).then(function(data,textStatus,jqXHR){all_poptins[$poptin.poptin_id].poptin=data,click_poptins[$poptin.poptin_id].poptin=data},function(data,textStatus,jqXHR){showLog(data)})})):showLog(data.display)}).fail(function(xhr,status,error){})}}function poptin_display(poptin_id){$href=api_link+"/APIRequest/click/"+poptin_id,initiatePullPoptinsRequestOnClick($href,!0,!0)}function poptinInitiate(){try{"undefined"==typeof poptin_landing_page?initiatePullPoptinsRequest():(jQ224(".landing-form").show(),initiatePullPoptinsRequestOnClick(poptin_landing_page_url,!1,!0))}catch(err){}}function downloadPoptinOnClick(poptin_id,show_now,cancel_visitor_count){$href=api_link+"/APIRequest/click/"+poptin_id,initiatePullPoptinsRequestOnClick($href,!0,show_now,cancel_visitor_count)}function showPoptinOnClick(poptin_id){null!=click_poptins[poptin_id]?(poptin=click_poptins[poptin_id]).display&amp;&amp;void 0===jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]")[0]&amp;&amp;(null==all_poptins&amp;&amp;(all_poptins=new Object),poptin_template="",null!=all_poptins[poptin.poptin_id]&amp;&amp;""!=all_poptins[poptin.poptin_id].poptin&amp;&amp;(poptin_template=all_poptins[poptin.poptin_id].poptin),all_poptins[poptin.poptin_id]=poptin,all_poptins[poptin.poptin_id].poptin=poptin_template,poptins[poptin.poptin_id]={},timerDownload(poptin),poptins[poptin.poptin_id].poptin_trigger={convert:!1,shown:!1,poptin_active:!0,scroll_flag:!0,mouse_leave_flag:!0,click_counter:0,trigger:"",close_trigger:""},setPoptinSize(poptin,!0),setAutoPilot(poptin,!0),appendPoptin(poptin,!0),loadbgAnimationOverlay(poptin),loadpoptinNewsTicker(poptin)):downloadPoptinOnClick(poptin_id,!0,!1)}function initiatePullPoptinsRequest(){console.log("initiatePullPoptinsRequest()");var domain=window.location.href,cookies=getReleventCookie()+" "+getPoptinNewUser()+" "+getPoptinViewedSession(),triggers=getAutoPilots(),country_code=getUserCountryCode(),referrer_url=getReferrer(),page_title=document.title;jQ224(document).ready(function(){var poptinForms=document.querySelectorAll(".poptin-embedded"),poptinFormsLen=poptinForms.length,poptinFormsIDs=[];if(poptinFormsLen)for(i=0;iauto-&gt;-&gt;error()")})})}function setGeolocationCookies(data){poptinCheckCookie("poptin_user_ip")||null==data.ip||poptinSetCookie("poptin_user_ip",data.ip,365),(!poptinCheckCookie("poptin_user_country_code")&amp;&amp;null!=data.cc||poptinGetCookie("poptin_user_country_code")!=data.cc&amp;&amp;null!=data.cc)&amp;&amp;poptinSetCookie("poptin_user_country_code",data.cc,365)}function fontDownload(lang){winie=/Windows NT 6.1/i.test(navigator.userAgent)&amp;&amp;(/Trident/i.test(navigator.userAgent)||/MSIE/i.test(navigator.userAgent))?"-ie":"",font_link='',font_link+='',0&lt;=api_link.indexOf("dev")?font_link+='':font_link+='',jQ224("head").append(font_link),setPoptinStyle()}function timerDownload(poptin){1==poptin.design_properties.timer_ver||0==poptin.design_properties.timer_ver&amp;&amp;(poptin.poptin_type+"_"+poptin.poptin_format=="lightbox_format_5"||poptin.poptin_type+"_"+poptin.poptin_format=="lightbox_format_11"||poptin.poptin_type+"_"+poptin.poptin_format=="bar_format_5"||poptin.poptin_type+"_"+poptin.poptin_format=="bar_format_10")?jQ224("head").append(''):2==poptin.design_properties.timer_ver&amp;&amp;jQ224("head").append('')}function downloadJqueryUi(){if(jQ224&amp;&amp;!jQ224.ui){showLog("downloadJqueryUi"),jquery_link='';try{jQ224("head").append(jquery_link)}catch(err){showLog(err)}}}function downloadPoptinTemplateFromS3(poptin){showLog("downloadPoptinTemplateFromS3-poptin_id: "+poptin.poptin_id),""==all_poptins[poptin.poptin_id].poptin&amp;&amp;jQ224.when(jQ224.ajax(poptin.poptin_url)).then(function(data,textStatus,jqXHR){showLog("downloadPoptinTemplateFromS3-&gt;status: "+textStatus),poptin.poptin=data,all_poptins[poptin.poptin_id].poptin=data,null!=poptins[poptin.poptin_id]&amp;&amp;(poptins[poptin.poptin_id].poptin=data),timerDownload(poptin),setPoptinsArray(poptin.poptin_id),setPoptinSize(poptin),setAutoPilot(poptin),setPoptinTrigger(poptin)},function(data,textStatus,jqXHR){showLog("downloadPoptinTemplateFromS3-&gt;error: "+data)})}function setPoptinTrigger(poptin){showLog("setPoptinTrigger for: "+poptin.poptin_id);var isEmbeddedPoptin="embedded"==poptin.poptin_type;if(poptin.display_after_sec_active=isEmbeddedPoptin?0:poptin.display_after_sec_active,poptins[poptin.poptin_id].poptin_trigger={convert:!1,poptin_active:!0,scroll_flag:!0,mouse_leave_flag:!0,click_counter:0,trigger:"",close_trigger:"",shown:!1},"yes"==poptin.display_after_exit_website_active)if(ifMobilePoptin){if(window.history&amp;&amp;window.history.pushState){function whenGoingBack(poptin){if(""!==location.hash.split("#!/")[1]&amp;&amp;""===window.location.hash){if(PQ.ifActive()&amp;&amp;PQ.ifRelevent(poptin))return showLog("load after back button trigger"),!1;(poptins[poptin.poptin_id]&amp;&amp;poptins[poptin.poptin_id].poptin_trigger.mouse_leave_flag&amp;&amp;poptins[poptin.poptin_id].poptin_trigger.poptin_active||!poptins[poptin.poptin_id].poptin_trigger.shown)&amp;&amp;(showLog("load after back button trigger"),poptins[poptin.poptin_id].poptin_trigger.poptin_active=!1,poptins[poptin.poptin_id].poptin_trigger.trigger="close tab",appendPoptin(poptin,!!isEmbeddedPoptin||null),poptins[poptin.poptin_id].poptin_trigger.mouse_leave_flag=!1)}}var pageState=100;window.history.state&amp;&amp;window.history.state.page&amp;&amp;(pageState=window.history.state.page),window.history.pushState({page:pageState+1},""),window.history.pushState({page:pageState+2},""),window.onpopstate=function(){whenGoingBack(poptin)},window.history.onpopstate=function(){whenGoingBack(poptin)},window.addEventListener("popstate",function(){whenGoingBack(poptin)}),document.addEventListener("backbutton",function(){whenGoingBack(poptin)}),window.addEventListener("backbutton",function(){whenGoingBack(poptin)}),jQ224(window).on("popstate",function(){whenGoingBack(poptin)})}}else jQ224(document).mouseleave(function(e){var top=e.clientY,right=document.body.clientWidth-e.pageX,bottom=jQ224(window).height()-e.clientY;e.pageX;if("select"==e.target.tagName.toLowerCase())return!1;if(0&lt;right&amp;&amp;0&lt;bottom&amp;&amp;top=scrolToTrigger&amp;&amp;poptins[poptin.poptin_id].poptin_trigger.scroll_flag&amp;&amp;(poptins[poptin.poptin_id].poptin_trigger.scroll_flag,poptins[poptin.poptin_id].poptin_trigger.poptin_active||!poptins[poptin.poptin_id].poptin_trigger.shown)){if(showLog("load after "+poptin.display_after_scroll_active+" scroll page trigger"),PQ.ifActive()&amp;&amp;PQ.ifRelevent(poptin))return!1;poptins[poptin.poptin_id].poptin_trigger.poptin_active=!1,poptins[poptin.poptin_id].poptin_trigger.trigger="after "+poptin.display_after_scroll_active+"% scrolling",appendPoptin(poptin),poptins[poptin.poptin_id].poptin_trigger.scroll_flag=!1}setTimeout(function(){poptins[poptin.poptin_id].poptin_trigger.scroll_flag},300)})}"no"!=poptin.display_after_page_click_number_active&amp;&amp;jQ224(document).on("click tap",function(){showLog(poptins[poptin.poptin_id].poptin_trigger.click_counter),poptins[poptin.poptin_id].poptin_trigger.click_counter++,poptins[poptin.poptin_id].poptin_trigger.click_counter==poptin.display_after_page_click_number_active&amp;&amp;(!poptins[poptin.poptin_id].poptin_trigger.poptin_active&amp;&amp;poptins[poptin.poptin_id].poptin_trigger.shown||(showLog("load after "+poptin.display_after_page_click_number_active+" clicks page trigger"),poptins[poptin.poptin_id].poptin_trigger.trigger="after "+poptin.display_after_page_click_number_active+" clicks",PQ.ifActive()&amp;&amp;PQ.ifRelevent(poptin)||(poptins[poptin.poptin_id].poptin_trigger.poptin_active=!1,appendPoptin(poptin)),poptins[poptin.poptin_id].poptin_trigger.click_counter=0))}),"no"!=poptin.display_after_visit_page_active&amp;&amp;("undefined"!=typeof Storage?"disactive"!=window.sessionStorage.getItem("display_after_visit_page_active_"+poptin.poptin_id)&amp;&amp;(window.sessionStorage.getItem("page_url_"+poptin.poptin_id)!=window.location.href&amp;&amp;(counter=(window.sessionStorage.getItem("page_visit_"+poptin.poptin_id)?Number(window.sessionStorage.getItem("page_visit_"+poptin.poptin_id)):0)+1,window.sessionStorage.setItem("page_visit_"+poptin.poptin_id,counter)),window.sessionStorage.getItem("page_visit_"+poptin.poptin_id)==poptin.display_after_visit_page_active&amp;&amp;window.sessionStorage.getItem("page_url_"+poptin.poptin_id)!=window.location.href&amp;&amp;(showLog("load after "+poptin.display_after_visit_page_active+" clicks page trigger"),PQ.ifActive()&amp;&amp;PQ.ifRelevent(poptin)||(appendPoptin(poptin),poptins[poptin.poptin_id].poptin_trigger.poptin_active=!1,window.sessionStorage.setItem("display_after_visit_page_active_"+poptin.poptin_id,"disactive")),window.sessionStorage.setItem("page_visit_"+poptin.poptin_id,0)),window.sessionStorage.setItem("page_url_"+poptin.poptin_id,window.location.href)):showLog("Sorry! No Web Storage support.."))}function GetIEVersion(){var sAgent=window.navigator.userAgent,Idx=sAgent.indexOf("MSIE");return 0&lt;Idx?parseInt(sAgent.substring(Idx+5,sAgent.indexOf(".",Idx))):navigator.userAgent.match(/Trident\/7\./)?11:0}function setPoptinStyle(){showLog("setPoptinStyle()"),poptin_style=' .poptin-popup .close-x-button{min-height: initial;background-color:initial;}, .draggable-container p{font-family: "Open Sans Hebrew" !important;} .draggable-container form{display:initial;background-color:initial;width: initial;height: initial;top: initial;position: initial;} .draggable-container .draggable{border: none;} .poptin-popup .fa-phone-square:before{font: normal normal normal 90px/1 FontAwesome !important; } .draggable-container .inputs-container input{font-family: "Open Sans Hebrew";background-image:none;background-color:#ffffff;background:#ffffff;border-radius:0px;} .empty-field{border:2px solid red !important} .empty-field::-webkit-input-placeholder{color:red;} .empty-field::-moz-placeholder{color:red;} .draggable-container input, .draggable-container button{background-image: none;padding: 0px;margin: 0px;box-sizing: border-box;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;} .draggable-container p{box-sizing: initial;-webkit-box-sizing: initial;-moz-box-sizing: initial;} .poptin-popup a{text-decoration: none;} .poptin-popup a:hover{text-decoration: underline;}',jQ224("body").append(poptin_style)}function getAllJsVariables(){for(var js_variable_name in array=[],this)-1&lt;jQ224.inArray(typeof this[js_variable_name],["number","string","boolean"])&amp;&amp;array.push({key:js_variable_name,value:String(this[js_variable_name])});return array}function poptinJsFilter(poptin,click){return!poptin.js_filter.display_if_specific_js_active||($js_array=getAllJsVariables(),$result_array=[],0&lt;$js_array.length&amp;&amp;(jQ224.each(poptin.js_filter.display_if_specific_js,function(index){0&lt;this.js_name_pair.length&amp;&amp;0&lt;this.js_value_pair.length&amp;&amp;0&lt;this.js_show_pair.length&amp;&amp;($js_name_role_pair=this.js_name_pair.split("|:|"),$js_name_role=null!=$js_name_role_pair[0]?$js_name_role_pair[0]:"",$js_name_value=null!=$js_name_role_pair[1]?$js_name_role_pair[1]:"",$js_value_role_pair=this.js_value_pair.split("|:|"),$js_value_role=null!=$js_value_role_pair[0]?$js_value_role_pair[0]:"",$js_value_value=null!=$js_value_role_pair[1]?$js_value_role_pair[1]:"",$js_show_value=this.js_show_pair,"undefined"!==eval("typeof "+$js_name_value)?-1&lt;$js_name_value.indexOf(".")?($js_name=!0,$js_value=jsFilterCheckIfInRoles($js_value_role,eval($js_name_value),$js_value_value),$result_array.push({rule:$js_name&amp;&amp;$js_value,show:$js_show_value})):-1&lt;jQ224.inArray(eval("typeof "+$js_name_value),["number","string","boolean"])?jQ224.each($js_array,function(index){$js_name=jsFilterCheckIfInRoles($js_name_role,this.key,$js_name_value),$js_value=jsFilterCheckIfInRoles($js_value_role,this.value,$js_value_value),$result_array.push({rule:$js_name&amp;&amp;$js_value,show:$js_show_value})}):"object"==eval("typeof "+$js_name_value)&amp;&amp;($js_name=!0,$js_value=jsFilterCheckIfInRoles($js_value_role,JSON.stringify(eval($js_name_value)),$js_value_value),$result_array.push({rule:$js_name&amp;&amp;$js_value,show:$js_show_value})):jQ224.each($js_array,function(index){$js_name=jsFilterCheckIfInRoles($js_name_role,this.key,$js_name_value),$js_value=jsFilterCheckIfInRoles($js_value_role,this.value,$js_value_value),$result_array.push({rule:$js_name&amp;&amp;$js_value,show:$js_show_value})}))}),0&lt;$js_array.length&amp;&amp;($flag=!1,$dont_show=!1,jQ224.each($result_array,function(index){if(this.rule&amp;&amp;"dont_show"==this.show)return $flag=!1,!($dont_show=!0);$flag=!0}),$dont_show||jQ224.each($result_array,function(index){if(this.rule&amp;&amp;"show"==this.show)return!($flag=!0);"show"==this.show&amp;&amp;($flag=!1)}),$flag)))}function poptinCookiesFilter(poptin,click){return!poptin.cookie_filter.display_if_specific_cookie_active||($cookies_array=getAllCookies(),$result_array=[],0&lt;$cookies_array.length&amp;&amp;(jQ224.each(poptin.cookie_filter.display_if_specific_cookie,function(index){0&lt;this.cookie_name_pair.length&amp;&amp;0&lt;this.cookie_value_pair.length&amp;&amp;0&lt;this.cookie_show_pair.length&amp;&amp;($cookie_name_role_pair=this.cookie_name_pair.split("|:|"),$cookie_name_role=null!=$cookie_name_role_pair[0]?$cookie_name_role_pair[0]:"",$cookie_name_value=null!=$cookie_name_role_pair[1]?$cookie_name_role_pair[1]:"",$cookie_value_role_pair=this.cookie_value_pair.split("|:|"),$cookie_value_role=null!=$cookie_value_role_pair[0]?$cookie_value_role_pair[0]:"",$cookie_value_value=null!=$cookie_value_role_pair[1]?$cookie_value_role_pair[1]:"",$cookie_show_value=this.cookie_show_pair,jQ224.each($cookies_array,function(index){$c_name=cookiesFilterCheckIfInRoles($cookie_name_role,this.key,$cookie_name_value),$c_value=cookiesFilterCheckIfInRoles($cookie_value_role,this.value,$cookie_value_value),$result_array.push({rule:$c_name&amp;&amp;$c_value,show:$cookie_show_value})}))}),0&lt;$cookies_array.length&amp;&amp;($flag=!1,$dont_show=!1,jQ224.each($result_array,function(index){if(this.rule&amp;&amp;"dont_show"==this.show)return $flag=!1,!($dont_show=!0);$flag=!0}),$dont_show||jQ224.each($result_array,function(index){if(this.rule&amp;&amp;"show"==this.show)return!($flag=!0);"show"==this.show&amp;&amp;($flag=!1)}),$flag)))}function cookiesFilterCheckIfInRoles($role,$father,$son){if($flag=!1,""!=$role)switch($role){case"contain":$flag=-1&lt;$father.indexOf($son);break;case"exact":$flag=$father==$son;break;case"start":$value=$father.startsWith($son);break;case"end":$value=$father.endsWith($son);break;case"any_value":$flag=!0;break;default:return!0}return $flag}function jsFilterCheckIfInRoles($role,$father,$son){if($flag=!1,$father="[]"==$father?"":String($father).toLowerCase(),$son="[]"==$son?"":String($son).toLowerCase(),""!=$role)switch($role){case"contain":$flag=-1&lt;$father.indexOf($son);break;case"exact":$flag=$father==$son;break;case"start":$value=$father.startsWith($son);break;case"end":$value=$father.endsWith($son);break;case"any_value":$flag=!0;break;default:return!0}return $flag}function appendPoptin(poptin,click){showLog("appendPoptin"),showLog("appendPoptin:"+click),null!=click?""==poptin.poptin&amp;&amp;""==all_poptins[poptin.poptin_id].poptin?jQ224.when(jQ224.ajax(poptin.poptin_url)).then(function(data,textStatus,jqXHR){poptin.poptin=data,jQ224("body").append(poptin.poptin),poptins[poptin.poptin_id].poptin=poptin.poptin,all_poptins[poptin.poptin_id].poptin=poptin.poptin,setPoptin(poptin,click)},function(data,textStatus,jqXHR){showLog(data)}):(poptin_data=""==poptin.poptin?all_poptins[poptin.poptin_id].poptin:poptin.poptin,jQ224("body").append(poptin_data),poptins[poptin.poptin_id].poptin=poptin.poptin,setPoptin(poptin,click)):poptinCookiesFilter(poptin,click)&amp;&amp;poptinJsFilter(poptin,click)&amp;&amp;(""==poptin.poptin&amp;&amp;""==all_poptins[poptin.poptin_id].poptin?jQ224.when(jQ224.ajax(poptin.poptin_url)).then(function(data,textStatus,jqXHR){poptin.poptin=data,all_poptins[poptin.poptin_id].poptin=data,PQ.checkQueue(poptin,click)},function(data,textStatus,jqXHR){showLog(data)}):(poptin.poptin=""==poptin.poptin?all_poptins[poptin.poptin_id].poptin:poptin.poptin,PQ.checkQueue(poptin,click)))}function getQueryString(e){var n=new RegExp("[?&amp;]"+e+"=([^&amp;#]*)","i").exec(window.location.href);return n?decodeURI(n[1]):null}function poptinFormValidations(poptin){var this_pop=".poptin-popup[data-poptin-id='"+poptin.poptin_id+"'] ";if(jQ224(this_pop).length){if((dt=jQ224(this_pop).find(".dynamic-text-tags-input")).length){var dt=dt.text();dt_obj=null!=dt&amp;&amp;""!=dt?JSON.parse(dt):new Array,jQ224(dt_obj).each(function(i){var value_input,tag_input;""!=(tag_input=dt_obj[i].tag_input)&amp;&amp;("?"==(tag_input=tag_input.replace(/[()]/g,"")).substring(0,1)?(value_input=null!=(value_input=getQueryString(tag_input.substring(1)))?value_input:dt_obj[i].class_input,tag_input="\\"+tag_input):value_input=jQ224(dt_obj[i].class_input).text(),tag_input="{{"+tag_input+"}}",jQ224(this_pop).find(".froala-editor-text").each(function(){var dtRegExp=new RegExp(tag_input,"gm");jQ224(this).html(jQ224(this).html().replace(dtRegExp,value_input))}))})}if((dt=jQ224(this_pop).find(".dynamic-input-tags-input")).length){dt=dt.text();dt_obj=null!=dt&amp;&amp;""!=dt?JSON.parse(dt):new Array,jQ224(dt_obj).each(function(i){if(""!=(class_input=dt_obj[i].class_input)){var value_input,class_input,tag_input=dt_obj[i].tag_input;value_input="?"==(class_input=class_input.replace(/[()]/g,"")).substring(0,1)?null!=(value_input=getQueryString(class_input.substring(1)))?value_input:dt_obj[i].class_input:jQ224(dt_obj[i].class_input).text(),jQ224(this_pop).find("input#"+tag_input+", textarea#"+tag_input+", select#"+tag_input).val(value_input);var sub_fields=jQ224(this_pop).find('[name="'+tag_input+'"]');if(sub_fields.length)if("radio"==sub_fields.attr("type")||"checkbox"==sub_fields.attr("type"))if("poptinDesignInputTextFieldCheckbox"!=tag_input)!(selected_input=jQ224(this_pop).find('[name="'+tag_input+'"][value="'+value_input+'"]')).length||(selected_input.get(0).checked=!0);else if("poptinDesignInputTextFieldCheckbox"==tag_input&amp;&amp;"true"==value_input){var selected_input;!(selected_input=jQ224(this_pop).find('[name="'+tag_input+'"]')).length||(selected_input.get(0).checked=!0)}}})}jQ224(this_pop).find(".froala-image-wrapper").each(function(){var $selector=jQ224(this).attr("data-selector");null!=$selector&amp;&amp;""!=$selector&amp;&amp;jQ224(this).find("img").attr("src",jQ224($selector).attr("src"))}),jQ224(this_pop+".draggable-container .inputs-container select option[value='child-default']").val(""),jQ224(this_pop+".draggable-container .inputs-container input[type='number']").on("keydown",function(event){return!!(8===event.keyCode||9===event.keyCode||46===event.keyCode||36&lt;event.keyCode&amp;event.keyCode&lt;41)||!isNaN(Number(event.key))}),jQ224(this_pop+".draggable-container [name='poptinDesignInputTextFieldCheckbox'][data-action-validate='true']").each(function(){jQ224(this).prop("checked",!0),this.checked=!0}),jQ224(this_pop+".draggable-container .inputs-container input[name='poptinDesignInputTextFieldEmail'][data-action-validate='true']").attr("type","email"),jQ224(this_pop+".draggable-container .inputs-container input[data-name='poptinDesignWebsiteField'][data-action-validate='true']").attr("type","url");var tel_field=jQ224(this_pop+".draggable-container .inputs-container input[name='poptinDesignInputTextFieldPhone'][data-action-validate='true']");tel_field.attr("pattern","^[0-9-+s()]*$"),tel_field.attr("maxlength","15"),tel_field.attr("minlength","7");var checkbox_inputs="[data-poptin-id="+poptin.poptin_id+"] .draggable-container .inputs-container .form-input-class.field-checkbox[data-action-required='true'] input";jQ224(document).on("change",checkbox_inputs,function(){var field_wrapper=jQ224(this).parent().parent();field_wrapper.find("input").is(":checked")?field_wrapper.find("input").removeAttr("required"):field_wrapper.find(".checkbox-child-field:first-child input").attr("required",!0).attr("required",!0)}),jQ224(this_pop+".draggable-container .facebook-messanger-conversion-wrap").remove(),jQ224(this_pop+".draggable-container .inputs-container input[data-name='poptinDesignDateField']").on("focus",function(){"text"==jQ224(this).attr("type")&amp;&amp;(jQ224(this).attr("type","date"),jQ224(this).focus().click())}).on("blur",function(){jQ224(this).attr("type",""==jQ224(this).val()?"text":"date")});var selects=jQ224(this_pop+".draggable-container .inputs-container select[data-action-search='true']");jQ224(selects).each(function(){var select=jQ224(this);jQ224(this_pop+".draggable-container .inputs-container").css("z-index","9999999");var select_id=select.get(0).id;if(0==document.querySelectorAll(".wrapper-"+select_id).length){var select_parent=select.parent(),search_text=ifUserlangIsHe()?"חיפוש...":"Search...",search_no_result_text=ifUserlangIsHe()?"לא × ×ž×Ś××• תוצאות":"No results found";select_parent.prepend('<div class="poptin-custom-select wrapper-'+select_id+'"><div class="poptin-opt-group"></div></div>');var wrapper=document.querySelectorAll(".wrapper-"+select_id)[0];jQ224(select).find("option").each(function(){"child-default"==this.value&amp;&amp;(this.value=""),""!=this.value&amp;&amp;jQ224(wrapper).find(".poptin-opt-group").append('<span>'+this.innerText+"</span>")}),jQ224(wrapper).find(".poptin-opt-group").append('<span class="poptin-custom-option no-result">'+search_no_result_text+"</span>"),jQ224(wrapper).find("input").attr("style",jQ224(select).attr("style")),jQ224(wrapper).find(".poptin-opt-group").css({"font-family":jQ224(select).css("font-family"),"font-size":jQ224(select).css("font-size"),color:jQ224(select).css("color"),background:jQ224(select).css("background"),direction:jQ224(select).css("direction"),"text-align":jQ224(select).css("text-align")})}}),jQ224(document).on("keyup",".poptin-custom-select-input",function(e){var select_id=jQ224(e.target).attr("data-select"),wrapper=document.querySelectorAll(".wrapper-"+select_id)[0],opts=wrapper.querySelectorAll("span.poptin-custom-option"),optLen=opts.length,filter=e.target.value.toUpperCase();jQ224(wrapper).find(".no-result, .poptin-custom-option").hide();for(var i=0;i&lt;optLen;i++){var txtValue=opts[i].textContent||opts[i].innerText,optClass=!0;try{null!=jQ224(wrapper).attr("data-current-parent")&amp;&amp;(optClass=!1,null!=opts[i].getAttribute("class")&amp;&amp;-1&lt;opts[i].getAttribute("class").indexOf("custom-opt-")&amp;&amp;(optClass=opts[i].getAttribute("class").split("custom-opt-")[1].split(" ")[0]==jQ224(wrapper).attr("data-current-parent")))}catch(err){showLog(err)}optClass&amp;&amp;-1&lt;txtValue.toUpperCase().indexOf(filter)&amp;&amp;(opts[i].style.display="")}jQ224(wrapper).find(".poptin-custom-option").is(":visible")||jQ224(wrapper).find(".no-result").css("display","block")}),jQ224(document).on("click",function(e){var select_parent=jQ224(e.target).parents(".form-input-class");jQ224(e.target).hasClass("poptin-custom-select-input")||(jQ224(e.target).hasClass("poptin-custom-option")&amp;&amp;select_parent.find("select").val(jQ224(e.target).attr("data-value")),jQ224(".form-input-class").removeClass("opened"))}),jQ224(document).on("focus",".poptin-custom-select-input",function(){jQ224(this).parents(".form-input-class").addClass("opened")})}}function setPoptin(poptin,click){showLog("setPoptin poptinid: "+poptin.poptin_id);var isEmbeddedPoptin="embedded"==poptin.poptin_type;isEmbeddedPoptin&amp;&amp;"undefined"!=typeof poptin_landing_page&amp;&amp;jQ224("body").css({height:window.innerHeight-20});var this_pop=".poptin-popup[data-poptin-id='"+poptin.poptin_id+"'] ";jQ224(this_pop+"#poptinMobileContainer").length&amp;&amp;(ifMobilePoptin&amp;&amp;"mobile"!=poptin.poptin_type?(jQ224(this_pop+"#poptinDraggableContainer").replaceWith(jQ224(this_pop+"#poptinMobileContainer").get(0).outerHTML.replace(/poptinMobileContainer/gm,"poptinDraggableContainer")),jQ224(this_pop+"#poptinThankYouScreen").length&amp;&amp;jQ224(this_pop+"#poptinThankYouScreen").replaceWith(jQ224(this_pop+"#poptinMobileThankYouScreen").get(0).outerHTML.replace(/poptinMobileThankYouScreen/gm,"poptinThankYouScreen")),jQ224(this_pop+"#poptinMobileContainer").remove(),jQ224(this_pop+"#poptinMobileThankYouScreen").remove(),poptin.poptin=jQ224(this_pop).get(0).outerHTML):jQ224(this_pop+"#poptinMobileContainer, #poptinMobileThankYouScreen").remove());var poptin_data_width_height=getDataWidthHeight(poptin.poptin);showLog("poptin data poptin_data_width_height",poptin_data_width_height);var this_poptin_width=poptin_data_width_height.width,this_poptin_height=poptin_data_width_height.height;null==click?(poptin_width=this_poptin_width||poptins[poptin.poptin_id].poptin_size.width,poptin_height=this_poptin_height||poptins[poptin.poptin_id].poptin_size.height,poptins[poptin.poptin_id].poptin_area_flag=!1,getPoptinPosition(poptin),showLog("click undefined:"+click)):(showLog("click true:"+click),poptin_width=this_poptin_width||poptin_size.width,poptin_height=this_poptin_height||poptin_size.height,poptin_area_flag=!1,getPoptinPosition(poptin,!0)),showLog("setPoptin",poptin_width,poptin_height),jQ224(this_pop+"#poptinThankYouScreen").addClass("poptin_thank_you_screen").removeClass("draggable-container"),jQ224(this_pop+".draggable-container").html(''+jQ224("[data-poptin-id="+poptin.poptin_id+"] .draggable-container").html()+""),jQ224(this_pop+".poptin_thank_you_screen").hide(),poptinFormValidations(poptin),jQ224(this_pop).find(".submitDarkColor").length&amp;&amp;(jQ224(".froala-editor-button").each(function(){jQ224(this).parent().attr("data-bg",jQ224(this).css("background-color"))}),jQ224("div.poptin-form-submit-button").mouseenter(function(){jQ224(this).find(".froala-editor-button").css("background-color","")}).mouseleave(function(){jQ224(this).find(".froala-editor-button").length&amp;&amp;jQ224(this).find(".froala-editor-button").get(0).style.setProperty("background-color",jQ224(this).attr("data-bg"),"important")})),"lightbox"==poptin.poptin_type&amp;&amp;(null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size.height=this_poptin_height,poptins[poptin.poptin_id].poptin_size.width=this_poptin_width),poptin_width=this_poptin_width||800,poptin_height=this_poptin_height||500,"format_3"!=poptin.poptin_format&amp;&amp;"format_9"!=poptin.poptin_format||poptin_height||(poptin_width=poptin_height)),jQ224(this_pop).attr("data-poptin-type",poptin.poptin_type).attr("data-poptin-format",poptin.poptin_format).attr("data-poptin-type-format",poptin.poptin_type+"_"+poptin.poptin_format),poptin.design_properties&amp;&amp;jQ224(this_pop).attr("data-poptin-location",poptin.design_properties.poptin_location),jQ224(this_pop).addClass("poptin-live"),jQ224(this_pop).css({display:"none",margin:"0px auto",transform:"translate(0,0)",transition:"transform .3s ease-out","min-width":poptin_width+"px","max-width":poptin_width+"px",width:poptin_width+"px","min-height":poptin_height+"px","max-height":poptin_height+"px",height:poptin_height+"px","z-index":"999999999999999",position:isEmbeddedPoptin?"absolute":"fixed",overflow:"visible",left:"0px",top:"0px",bottom:"0px",right:"0px","line-height":"normal","transform-origin":"bottom"}),jQ224(this_pop+".draggable-container").css({width:poptin_width+"px","background-clip":"padding-box"}),jQ224(this_pop+".alternative-background").css("box-shadow","0 3px 12px rgba(0,0,0,.5)"),jQ224(".poptin-popup.no-box-shadow .alternative-background").css("box-shadow",""),jQ224(this_pop+" #poptinDraggableContainer .alternative-background").length&amp;&amp;!jQ224(this_pop+" #poptinThankYouScreen .alternative-background").length&amp;&amp;jQ224(this_pop+" #poptinThankYouScreen").prepend(jQ224(this_pop+" #poptinDraggableContainer .alternative-background").clone()),jQ224(this_pop+" #poptinMobileContainer .alternative-background").length&amp;&amp;!jQ224(this_pop+" #poptinMobileThankYouScreen .alternative-background").length&amp;&amp;jQ224(this_pop+" #poptinMobileThankYouScreen").prepend(jQ224(this_pop+" #poptinMobileContainer .alternative-background").clone());var close_string=this_pop+".close-icon, .poptin-popup[data-poptin-id="+poptin.poptin_id+"] #closeXButton, .poptin-popup[data-poptin-id="+poptin.poptin_id+"] #poptinFormCloseText";jQ224(close_string).attr("title",ifUserlangIsHe()?"סגור":"Close").attr("data-title",ifUserlangIsHe()?"סגור":"Close"),jQ224(close_string).mouseenter(function(e){jQ224(close_string).attr("title","")}),jQ224(close_string).mouseleave(function(e){jQ224(close_string).attr("title",jQ224(close_string).attr("data-title"))});var submit_string=this_pop+"#poptinFormSubmitText";if(jQ224(submit_string).attr("title",ifUserlangIsHe()?"שלח":"Submit").attr("data-title",ifUserlangIsHe()?"שלח":"Submit"),jQ224(submit_string).mouseenter(function(e){jQ224(submit_string).attr("title","")}),jQ224(submit_string).mouseleave(function(e){jQ224(submit_string).attr("title",jQ224(submit_string).attr("data-title"))}),"embedded"==poptin.poptin_type){var this_parent=jQ224(this_pop).parent();0!=jQ224(this_pop).parent().height()&amp;&amp;this_parent.css("height")!=this_parent.css("line-height")||(jQ224(this_pop).parent().css({height:poptin_height+"px"}),jQ224(this_pop+"#closeXButton, "+this_pop+"#closeSkipButton").remove(),jQ224(this_pop).css("transform","scale(1, 0)"))}if(jQ224(this_pop+".froala-image-wrapper").each(function(){var img_link=jQ224(this).find("a");if(img_link.length){var overlay_clone=jQ224(this).find(".froala-img-overlay").clone();jQ224(this).find(".froala-img-overlay").remove(),img_link.prepend(overlay_clone)}}),"social"!=poptin.poptin_type||"format_3"!=poptin.poptin_format&amp;&amp;"format_6"!=poptin.poptin_format||jQ224(".poptin-credit").css({bottom:"auto",bottom:""}),"mobile"==poptin.poptin_type&amp;&amp;"format_6"==poptin.poptin_format&amp;&amp;jQ224("[data-poptin-id="+poptin.poptin_id+"] .draggable-container .draggable:not(#closeXButton)").addClass("poptin-form-submit-button"),null!=poptin.design_properties&amp;&amp;("closing_options-x"==poptin.design_properties.poptin_design_close_options_type?jQ224(this_pop).find('[id="closeSkipButton"]').remove():"closing_options-button"==poptin.design_properties.poptin_design_close_options_type?jQ224(this_pop).find('[id="closeXButton"]').remove():jQ224(this_pop).find('[id="closeXButton"], [id="closeSkipButton"]').remove()),jQ224(this_pop).find('[id="closeXButton"], [id="closeSkipButton"]').each(function(){if(this_close_icon=jQ224(this).find(".close-icon"),this_close_icon_width=parseInt(this_close_icon.css("width")),!this_close_icon.hasClass("updated")&amp;&amp;32==this_close_icon_width){this_close_icon_width=44,this_close_icon.addClass("updated");var x_width=this_close_icon_width+"px",new_data={width:x_width,height:x_width,"line-height":x_width,"font-size":x_width};this_close_icon.css(new_data),jQ224(this).css(new_data),parseInt(jQ224(this).css("left"))+this_close_icon_width&gt;poptin_width&amp;&amp;jQ224(this).css("left",poptin_width-this_close_icon_width+"px")}}),"bar"==poptin.poptin_type&amp;&amp;jQ224(this_pop).css({width:"1920px","max-width":"1920px",height:jQ224(this_pop+"#poptinDraggableContainer").height(),"max-height":jQ224(this_pop+"#poptinDraggableContainer").height()}),(isSafariPoptin||ifMobilePoptin)&amp;&amp;jQ224(this_pop).addClass("clean-timer"),ifMobilePoptin&amp;&amp;jQ224(this_pop).length&amp;&amp;jQ224(this_pop).html(jQ224(this_pop).html().replace(/(web.whatsapp.com)/g,"api.whatsapp.com")),poptin.poptin_type in fr_templates&amp;&amp;fr_templates[poptin.poptin_type]&gt;=parseInt(poptin.poptin_format.split("_")[1]))jQ224(this_pop).addClass("old-popup").removeClass("new-popup");else{jQ224(this_pop).addClass("new-popup").removeClass("old-popup");var poptin_lang=jQ224(this_pop).find("#poptinDraggableContainer").attr("data-lang");(!poptin_lang||"he"!=poptin_lang)&amp;&amp;"en"==user_lang?(jQ224(this_pop).css("font-family","Poppins"),jQ224("head").append('')):(jQ224(this_pop).css("font-family","Open Sans Hebrew"),jQ224("head").append(''))}if(jQ224(".poptin-popup #closeXButton").css({"z-index":""}),jQ224(".poptin-popup.old-popup #closeXButton").css({left:"auto",right:"auto"}),jQ224(".no-show-icon").css("position","relative"),jQ224(".flip .no-show-icon").css("position","absolute"),null!=field_desing[poptin.poptin_type+"_"+poptin.poptin_format]&amp;&amp;"vertical"==field_desing[poptin.poptin_type+"_"+poptin.poptin_format].type&amp;&amp;jQ224(this_pop+".inputs-container input:not([type='checkbox'])").css("width",""),"lightbox"==poptin.poptin_type&amp;&amp;(this_pop_width=jQ224(this_pop+".draggable-container").attr("data-width"),null!=this_pop_width&amp;&amp;""!=this_pop_width||(jQ224(this_pop).css({right:"0",left:"0",top:(jQ224(window).height()-500)/2}),jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"], .poptin-popup[data-poptin-id="+poptin.poptin_id+"] .draggable-container").css("width",800),jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"], .poptin-popup[data-poptin-id="+poptin.poptin_id+"] .draggable-container").css("height",500))),"on"==poptin.design_properties.field_checkbox_required&amp;&amp;jQ224("[data-poptin-id="+poptin.poptin_id+'] input[name="poptinDesignInputTextFieldCheckbox"]').prop("required",!0),"on"==poptin.design_properties.field_checkbox_default_marked&amp;&amp;jQ224("[data-poptin-id="+poptin.poptin_id+'] input[name="poptinDesignInputTextFieldCheckbox"]').prop("checked",!0),jQ224("#poptinFormCloseText").click(function(){closePoptin(jQ224(this).parents(".poptin-popup").attr("data-poptin-id"))}),timer_container=jQ224(".timer-container"),timer_container.css({position:""}),timer_container&amp;&amp;timer_container.attr("style")&amp;&amp;-1==timer_container.attr("style").indexOf("left")&amp;&amp;(points_count=0,jQ224(".timer-points").each(function(){jQ224(this).is(":visible")&amp;&amp;points_count++}),timer_left="260px",1&lt;points_count&amp;&amp;(timer_left="114px"),timer_container.css({left:timer_left})),setTelForMobile(poptin),"lightbox"!=poptin.poptin_type||"format_3"!=poptin.poptin_format&amp;&amp;"format_9"!=poptin.poptin_format){var draggable_container=jQ224("[data-poptin-id="+poptin.poptin_id+"] .draggable-container");jQ224("[data-poptin-id="+poptin.poptin_id+"] .poptin_thank_you_screen:not('.edited')").css({height:draggable_container.css("height"),"background-image":draggable_container.css("background-image"),"background-size":draggable_container.css("background-size"),"background-color":draggable_container.css("background-color"),background:("none"!=draggable_container.css("background-image")?draggable_container.css("background-image"):"")+" "+draggable_container.css("background-color")}),draggable_container.css({background:("none"!=draggable_container.css("background-image")?draggable_container.css("background-image"):"")+" "+draggable_container.css("background-color")})}else jQ224("[data-poptin-id="+poptin.poptin_id+"] .poptin_thank_you_screen").prepend(jQ224("[data-poptin-id="+poptin.poptin_id+"] #liteboxFormat3Circle").clone(!0));if(jQ224(".poptin-form-submit-button *, .poptin-form-close-button *, [data-poptin-id="+poptin.poptin_id+"] .o-close, [data-poptin-id="+poptin.poptin_id+"] .o-close *").css("cursor","pointer"),"mobile"!=poptin.poptin_type||"format_1"!=poptin.poptin_format&amp;&amp;"format_6"!=poptin.poptin_format||(poptin_style='.draggable-container .fa-phone-square:before{color:'+jQ224("[data-poptin-id="+poptin.poptin_id+"] .fa-phone-square").css("color")+" !important}",jQ224("body").append(poptin_style)),ifAndroidPoptinKeyborad(poptin,click),direction=poptin.design_properties.poptin_design_entry_effect.split("-")[1],!parseInt(poptin.design_properties.poptin_design_content_lock))if(null!=poptin.design_properties.poptin_design_auto_close&amp;&amp;setTimeout(function(){showLog("close poptin auto after "+poptin.design_properties.poptin_design_auto_close_sec+" seconds"),poptins[poptin.poptin_id].poptin_trigger.close_trigger="auto_close",closePoptin(poptin.poptin_id)},1e3*parseInt(poptin.design_properties.poptin_design_auto_close_sec)),parseInt(poptin.design_properties.poptin_design_close_on_screen_click)&amp;&amp;(jQ224(this_pop).on("mouseenter",function(event){null==click?poptins[poptin.poptin_id].poptin_area_flag=!0:poptin_area_flag=!0}).on("mouseleave",function(event){null==click?poptins[poptin.poptin_id].poptin_area_flag=!1:poptin_area_flag=!1}),jQ224(document).click(function(event){jQ224(event.target).closest(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]").length||(click?poptin_area_flag:poptins[poptin.poptin_id].poptin_area_flag)||jQ224(this_pop).is(":visible")&amp;&amp;(showLog("close poptin poptin_design_close_on_screen_click"),poptins[poptin.poptin_id].poptin_trigger.close_trigger="bg_click",closePoptin(poptin.poptin_id))})),"closing_options-"!=poptin.design_properties.poptin_design_close_options_type)if("closing_options-x"==poptin.design_properties.poptin_design_close_options_type?(jQ224("[data-poptin-id="+poptin.poptin_id+"] #closeSkipButton").remove(),poptin.poptin_type in fr_templates&amp;&amp;fr_templates[poptin.poptin_type]&gt;=parseInt(poptin.poptin_format.split("_")[1])?jQ224("[data-poptin-id="+poptin.poptin_id+"] .draggable-container, .poptin-popup[data-poptin-id="+poptin.poptin_id+"] .poptin_thank_you_screen").prepend(html_poptin_x_button):jQ224(document).on("click",'[data-poptin-id="'+poptin.poptin_id+'"] #closeXButton',function(){closePoptinOnXclick(jQ224(this).get(0))}),null==poptin.design_properties.poptin_design_show_x_comment||ifMobilePoptin||(showLog("show poptin x comment: "+poptin.design_properties.poptin_design_show_x_comment),1&lt;=poptin.design_properties.poptin_design_show_x_comment.length&amp;&amp;(jQ224("[data-poptin-id="+poptin.poptin_id+"] .draggable-container").prepend(html_button_note),$note=jQ224("[data-poptin-id="+poptin.poptin_id+"] .close-button-note"),$note.text(poptin.design_properties.poptin_design_show_x_comment),(-1&lt;poptin.design_properties.poptin_location.indexOf("right")||"bar"==poptin.poptin_type)&amp;&amp;jQ224("[data-poptin-id="+poptin.poptin_id+"] .close-button-note").css("right","0px"),-1=$note.height()?$note.css("top"):"-"+($note.height()+-1*parseInt($note.css("top"))/1.5)+"px",$note.css("top","-65px")},100),initializeCloseButtonNote(poptin)))):"closing_options-button"==poptin.design_properties.poptin_design_close_options_type&amp;&amp;(jQ224("[data-poptin-id="+poptin.poptin_id+"] #closeXButton").remove(),poptin.poptin_type in fr_templates&amp;&amp;fr_templates[poptin.poptin_type]&gt;=parseInt(poptin.poptin_format.split("_")[1])?null!=poptin.design_properties.poptin_design_show_x_comment?jQ224("[data-poptin-id="+poptin.poptin_id+"] .draggable-container, .poptin-popup[data-poptin-id="+poptin.poptin_id+"] .poptin_thank_you_screen").prepend(''+(poptin.design_properties.poptin_design_show_x_comment||("en"==user_lang?skip_en:skip_he))+""):jQ224("[data-poptin-id="+poptin.poptin_id+"] .draggable-container").prepend(html_poptin_skip_button):jQ224(document).on("click",'[data-poptin-id="'+poptin.poptin_id+'"] #closeXButton',function(){closePoptinOnXclick(jQ224(this).get(0))})),null!=poptin.design_properties.poptin_design_show_x_after_sec&amp;&amp;0!=poptin.design_properties.poptin_design_show_x_after_sec)if("closing_options-button"==poptin.design_properties.poptin_design_close_options_type){jQ224("[data-poptin-id="+poptin.poptin_id+"] .close-x-button").remove(),poptins[poptin.poptin_id].poptin_trigger.skip_button_sec_counter=parseInt(poptin.design_properties.poptin_design_show_x_after_sec);var first_close_button="";first_close_button="en"==user_lang?(poptin.design_properties.poptin_design_show_x_comment||("en"==user_lang?skip_en:skip_he))+" ("+poptins[poptin.poptin_id].poptin_trigger.skip_button_sec_counter+")":"("+poptins[poptin.poptin_id].poptin_trigger.skip_button_sec_counter+") "+(poptin.design_properties.poptin_design_show_x_comment||("en"==user_lang?skip_en:skip_he)),jQ224("[data-poptin-id="+poptin.poptin_id+"] .draggable-container").prepend(''+first_close_button+""),jQ224("[data-poptin-id="+poptin.poptin_id+"] .draggable-container .close-x-button").css({display:"block",opacity:"0.5",cursor:"not-allowed"}).prop("disabled",!0);var interval=setInterval(function(){if(0==poptins[poptin.poptin_id].poptin_trigger.skip_button_sec_counter){clearInterval(interval);var close_text="";"closing_options-x"==poptin.design_properties.poptin_design_close_options_type?close_text="×":"closing_options-button"==poptin.design_properties.poptin_design_close_options_type&amp;&amp;(close_text="en"==user_lang?skip_en:skip_he),jQ224("[data-poptin-id="+poptin.poptin_id+"] .draggable-container .close-x-button").html(close_text).css({opacity:"1",cursor:"pointer"}).prop("disabled",!1)}else{poptins[poptin.poptin_id].poptin_trigger.skip_button_sec_counter--;var close_timer_text="";close_timer_text="en"==user_lang?poptin.design_properties.poptin_design_show_x_comment+" ("+poptins[poptin.poptin_id].poptin_trigger.skip_button_sec_counter+")":"("+poptins[poptin.poptin_id].poptin_trigger.skip_button_sec_counter+") "+poptin.design_properties.poptin_design_show_x_comment,jQ224("[data-poptin-id="+poptin.poptin_id+"] .draggable-container .close-x-button").html(close_timer_text)}"browsing"==jQ224("[data-poptin-id="+poptin.poptin_id+"]").attr("data-poptin-type")&amp;&amp;"right-top"==jQ224("[data-poptin-id="+poptin.poptin_id+"]").attr("data-poptin-location")&amp;&amp;jQ224("[data-poptin-id="+poptin.poptin_id+"] .draggable-container .close-x-button").css("padding","5px 5px 5px 20px")},1e3)}else{jQ224("[data-poptin-id="+poptin.poptin_id+"] #closeSkipButton").remove();var these_x=jQ224(this_pop+".draggable-container .close-x-button, .poptin-popup[data-poptin-id="+poptin.poptin_id+"] &gt; .close-x-button");0==GetIEVersion()&amp;&amp;these_x.hide(),setTimeout(function(){showLog("show poptin x button after "+poptin.design_properties.poptin_design_show_x_after_sec+" seconds"),these_x.show(100)},1e3*parseInt(poptin.design_properties.poptin_design_show_x_after_sec))}else jQ224("[data-poptin-id="+poptin.poptin_id+"] .draggable-container .close-x-button").show(100);else jQ224("[data-poptin-id="+poptin.poptin_id+"] .close-x-button").remove();poptin_animation_speed=300;var _this=jQ224(this_pop);if(_this.find(".froala-editor-video").length||_this.find(".draggable.image-change-video").length){var mute_video="",is_autoplay=_this.data("autoplay");isFirefoxPoptin||"true"!=is_autoplay&amp;&amp;1!=is_autoplay||(mute_video="&amp;mute=1"),_this.find("#poptin"+_this.data("source")).attr("src",_this.data("url")+mute_video).parent().css("display","block"),_this.find(".draggable.image-change-video").remove(),_this.find(".froala-video-wrapper").css("display","none")}if("lightbox"==poptin.poptin_type)"format_3"!=poptin.poptin_format&amp;&amp;"format_9"!=poptin.poptin_format||jQ224(this_pop+".draggable-container").css({"box-shadow":"none"});else if("bar"==poptin.poptin_type)switch(poptin.design_properties.poptin_location){case"center-top":_this.css({top:"0px",bottom:""});break;default:_this.css({top:"",bottom:"0px"})}else if("sside"==poptin.poptin_type||"social"==poptin.poptin_type){switch(poptin.design_properties.poptin_location){case"left-top":_this.css({left:"0px",right:"",margin:"0px",top:"0px",bottom:""});break;case"left-midlle":_this.css({left:"0px",right:"",margin:"0px",top:(window.innerHeight-poptin_height)/2+"px",bottom:""});break;case"left-bottom":_this.css({left:"0px",right:"",margin:"0px",bottom:"0px",top:""});break;case"center-top":_this.css({left:(window.innerWidth-poptin_width)/2,right:"",margin:"0px",top:"0px",bottom:""});break;case"center-midlle":_this.css({left:(window.innerWidth-poptin_width)/2,right:"",margin:"0px",top:(window.innerHeight-poptin_height)/2+"px",bottom:""});break;case"center-bottom":_this.css({left:(window.innerWidth-poptin_width)/2,right:"",margin:"0px",bottom:"0px",top:""});break;case"right-top":_this.css({left:"",right:"0px",margin:"0px",top:"0px",bottom:""});break;case"right-midlle":_this.css({left:"",right:"0px",margin:"0px",top:(window.innerHeight-poptin_height)/2+"px",bottom:""});break;case"right-bottom":_this.css({left:"",right:"0px",bottom:"0px",top:""})}"social"==poptin.poptin_type&amp;&amp;("format_1"==poptin.poptin_format||"format_5"==poptin.poptin_format?_this.find(".close-x-button").css({position:"absolute",top:"0px",right:"0px","z-index":"1","line-height":"26px"}):"format_3"!=poptin.poptin_format&amp;&amp;"format_7"!=poptin.poptin_format||(_this.css({"box-shadow":"none !important",opacity:"0",visability:"hidden"}),_this.find("img").first().remove()))}else if("bside"==poptin.poptin_type)"left"!==poptin.design_properties.poptin_location?_this.css({left:"",top:"",right:"0px",bottom:"0px"}):_this.css({right:"",top:"",left:"0px",bottom:"0px"});else if("browsing"==poptin.poptin_type||"fullpage"==poptin.poptin_type||"mobile"==poptin.poptin_type)if(_this.css({bottom:"",right:""}),"mobile"==poptin.poptin_type&amp;&amp;("format_3"!=poptin.poptin_format&amp;&amp;"format_8"!=poptin.poptin_format||(jQ224(this_pop+".draggable-container").css({"box-shadow":"none"}),_this.css({bottom:"0px",right:"0px"}))),"fullpage"==poptin.poptin_type&amp;&amp;(ifScrollVisible()&amp;&amp;jQ224(this_pop+".draggable-container .close-x-button").css({"padding-right":"25px"}),"format_3"!=poptin.poptin_format&amp;&amp;"format_7"!=poptin.poptin_format||jQ224(this_pop+".poptin-popup &gt; div").css({"background-image":""})),"browsing"==poptin.poptin_type&amp;&amp;(jQ224(this_pop+".draggable-container .close-x-button").css({"padding-right":"15px"}),jQ224(this_pop).hasClass("old-popup")&amp;&amp;"right-top"==poptin.design_properties.poptin_location&amp;&amp;(_this.css({left:"",right:"0px","-moz-transform":"scaleX(-1)","-o-transform":"scaleX(-1)","-webkit-transform":"scaleX(-1)",transform:"scaleX(-1)",filter:"FlipH","-ms-filter":"FlipH"}),_this.find("p").css({"-moz-transform":"scaleX(-1)","-o-transform":"scaleX(-1)","-webkit-transform":"scaleX(-1)",transform:"scaleX(-1)",filter:"FlipH","-ms-filter":"FlipH"}),setTimeout(function(){_this.find(".poptin-credit").css("transform","scaleX(-1)")},300))),"mobile"==poptin.poptin_type)switch(poptin.design_properties.poptin_location){case"center-top":_this.css({top:"0px"});break;case"center-midlle":_this.css({top:(window.innerHeight-poptin_height)/2+"px"});break;case"center-bottom":_this.css({top:window.innerHeight-poptin_height+"px"})}else _this.css({top:"0px"});"fullpage"==poptin.poptin_type&amp;&amp;(jQ224(this_pop).css("opacity",0),showPoptin(poptin,click),setTimeout(function(){setAccessibility(poptin)},300)),resize_delay=100,"fullpage"==poptin.poptin_type&amp;&amp;(resize_delay=350),setTimeout(function(){windowResize(poptin,click),doResizePoptin(poptin,click),"fullpage"!=poptin.poptin_type&amp;&amp;setTimeout(function(){showPoptin(poptin,click),setTimeout(function(){setAccessibility(poptin)},300)},300)},resize_delay),resetReleventCookie(poptin)}function ifUserlangIsHe(){return"he"==user_lang}function setTelForMobile(poptin){ifMobilePoptin&amp;&amp;(showLog("setTelForMobile"),jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"] #poptinDesignInputTextFieldPhone").attr("type","tel"))}function setAccessibility(poptin){var counter=1;jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]:not([data-poptin-type='embedded']) .inputs-container input").first().focus(),jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"] .inputs-container input:not([type='checkbox']):not([type='radio'])").each(function(e){if(placeholder_text=jQ224(this).attr("placeholder"),null!=placeholder_text&amp;&amp;-1==placeholder_text.indexOf("*")&amp;&amp;jQ224(this).prop("required")){var is_rtl=!0,input_dir=jQ224(this).css("direction");null!=input_dir&amp;&amp;"ltr"==input_dir&amp;&amp;(is_rtl=!1),"he"==user_lang&amp;&amp;is_rtl?placeholder_text="*"+placeholder_text:placeholder_text+="*",jQ224(this).attr({"aria-required":!0,placeholder:placeholder_text})}ifUserlangIsHe()&amp;&amp;jQ224(this).attr({tabindex:counter++,"aria-label":jQ224(this).attr("placeholder")})});var tabCount=100+50*showPoptinCount;showPoptinCount++,jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"] .draggable-container").find("input:not(.poptin-form-submit-button):not(poptin-form-close-button), select, textarea").each(function(e){jQ224(this).attr("tabindex",tabCount++)}),jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"] .draggable-container").find("input.poptin-form-submit-button, input.poptin-form-close-button").attr("tabindex",tabCount++).focus(function(){jQ224(this).siblings(".froala-editor-button").addClass("outlined")}).blur(function(){jQ224(this).siblings(".froala-editor-button").removeClass("outlined")});var isFullScreen="fullpage"==jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]").attr("data-poptin-type");jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"] .draggable-container #closeXButton").attr("tabindex",tabCount++);var poptinShiftHeld=!1;if(jQ224(document).on("keyup keydown",function(e){"keydown"==e.type&amp;&amp;16==e.keyCode&amp;&amp;(poptinShiftHeld=!0),"keyup"==e.type&amp;&amp;16==e.keyCode&amp;&amp;(poptinShiftHeld=!1)}),jQ224(document).on("keydown",".poptin-popup[data-poptin-id="+poptin.poptin_id+"] .inputs-container .froala-editor-input &gt; .form-input-class:first-child input:first-child, .poptin-popup[data-poptin-id="+poptin.poptin_id+"] .inputs-container .form-input-class:first-child select, .poptin-popup[data-poptin-id="+poptin.poptin_id+"] .inputs-container .form-input-class:first-child textarea",function(e){if(9==e.keyCode&amp;&amp;poptinShiftHeld)return setTimeout(function(){isFullScreen?jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"] &gt; #closeXButton").focus():jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"] .draggable-container #closeXButton").focus()},100),!1}),jQ224(document).on("keydown",".poptin-popup[data-poptin-id="+poptin.poptin_id+"] #closeXButton",function(e){if(13!=e.keyCode&amp;&amp;32!=e.keyCode||jQ224(this).trigger("click"),9==e.keyCode&amp;&amp;!poptinShiftHeld)return setTimeout(function(){var first_input_wrap=jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"] .inputs-container");first_input_wrap.find(".form-input-class:first-child").length?first_input_wrap.find(".form-input-class:first-child").find("input, select, textarea").first().focus():first_input_wrap.find("input, select, textarea").first().focus()},100),!1}),!ifUserlangIsHe()){var first_input=jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"] .inputs-container .form-input-class:first-child").find("input, select, textarea").first().get(0);void 0!==first_input&amp;&amp;first_input.style.setProperty("outline","0px","important")}}function setAccessibilityThankAfterSubmit(poptin){if(message="× ×Š×œ×— בהצלחה!",ifUserlangIsHe()&amp;&amp;"lead"==poptin.poptin_target&amp;&amp;ifHebrow()){var $div=jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]"),$btn=$div.find("#poptinFormSubmitText .froala-editor-button");0==$btn.length&amp;&amp;($btn=$div.find("#poptinFormSubmitText")),$btn.text("").append('<p role="alert" style="font-weight:normal;color:white;">'+message+"</p>"),$div.find("#poptinFormSubmitButton").hide()}}function ifHebrow(){var position="א".search(/[\u0590-\u05FF]/);return x=document.querySelector('meta[http-equiv="Content-Type"]'),0&lt;=position&amp;&amp;(x=document.querySelector('meta[http-equiv="Content-Type"]'),null==x||0jQ224(window).height()}function initializeCloseButtonNote(poptin){var this_close_button=jQ224("[data-poptin-id="+poptin.poptin_id+"] .draggable-container .close-x-button"),this_close_note=jQ224("[data-poptin-id="+poptin.poptin_id+"] .draggable-container .close-button-note");this_close_note&amp;&amp;this_close_button.on("mouseover",function(){if(this_scale=poptins[poptin.poptin_id].poptin_scale,"lightbox"==poptin.poptin_type&amp;&amp;fr_templates.lightbox&lt;=parseInt(poptin.poptin_format.split("_")[1]));else if(this_close_button)jQ224("[data-poptin-id="+poptin.poptin_id+"] .draggable-container #closeButtonNote").css({left:this_close_button.position().left/this_scale+this_close_button.outerWidth()-this_close_note.outerWidth()+1,top:this_close_button.position().top/this_scale-this_close_note.outerHeight()-3,right:""});else{var this_far_left=jQ224("[data-poptin-id="+poptin.poptin_id+"] .draggable-container").attr("data-width");jQ224("[data-poptin-id="+poptin.poptin_id+"] .draggable-container #closeButtonNote").css({left:this_far_left/this_scale-this_close_note.outerWidth()+1,top:3-this_close_note.outerHeight(),right:""})}this_close_note.css("display","block")}).on("mouseout",function(){this_close_note.css("display","none")})}function setAutoPilot(poptin,click){try{"undefined"!=typeof Storage?void 0!==poptin&amp;&amp;(showLog("setAutoPilot2"),void 0===poptin.auto_pilot_trigger||null!=window.sessionStorage.getItem("apt_"+poptin.poptin_id)&amp;&amp;null!=window.sessionStorage.getItem("apt_"+poptin.poptin_id)||(showLog(poptin.auto_pilot_trigger),window.sessionStorage.setItem("apt_"+poptin.poptin_id,poptin.auto_pilot_trigger))):showLog("Sorry! No Web Storage support..")}catch(err){showLog(err)}}function setOriginLandingPage(){try{"undefined"!=typeof Storage?null!=window.sessionStorage.getItem("poptin_origin_landing_page")&amp;&amp;null!=window.sessionStorage.getItem("poptin_origin_landing_page")||window.sessionStorage.setItem("poptin_origin_landing_page",window.location.href):showLog("Sorry! No Web Storage support..")}catch(err){showLog(err)}}function setPoptinViewedUrl(poptin){try{"undefined"!=typeof Storage?null!=window.sessionStorage.getItem("poptin_viewed_url_"+poptin.poptin_id)&amp;&amp;null!=window.sessionStorage.getItem("poptin_viewed_url_"+poptin.poptin_id)||window.sessionStorage.setItem("poptin_viewed_url_"+poptin.poptin_id,window.location.href):showLog("Sorry! No Web Storage support..")}catch(err){showLog(err)}}function setPoptinSize(poptin,click){var poptin_size={},poptin_data_width_height=getDataWidthHeight(poptin.poptin);showLog("poptin data poptin_data_width_height",poptin_data_width_height);var this_poptin_width=poptin_data_width_height.width,this_poptin_height=poptin_data_width_height.height;void 0!==poptin&amp;&amp;("lightbox"==poptin.poptin_type?(null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size.height=this_poptin_height,poptins[poptin.poptin_id].poptin_size.width=this_poptin_width),null!=this_poptin_width&amp;&amp;""!=this_poptin_width&amp;&amp;"undefined"!=this_poptin_width&amp;&amp;(litghtbox_poptin_width=this_poptin_width),null!=this_poptin_height&amp;&amp;""!=this_poptin_height&amp;&amp;"undefined"!=this_poptin_height&amp;&amp;(litghtbox_poptin_height=this_poptin_height,"format_3"!=poptin.poptin_format&amp;&amp;"format_9"!=poptin.poptin_format||(litghtbox_poptin_width=litghtbox_poptin_height)),null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size={width:litghtbox_poptin_width,height:litghtbox_poptin_height}),poptin_size.width=litghtbox_poptin_width,poptin_size.height=litghtbox_poptin_height):"bar"==poptin.poptin_type?(null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size={width:bar_poptin_width,height:bar_poptin_height}),poptin_size.width=bar_poptin_width,poptin_size.height=bar_poptin_height,"format_1"==poptin.poptin_format||"format_6"==poptin.poptin_format?(null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size={width:bar_poptin_width,height:bar_poptin_height}),poptin_size.height=bar_poptin_height):"format_2"==poptin.poptin_format||"format_3"==poptin.poptin_format||"format_7"==poptin.poptin_format||"format_8"==poptin.poptin_format?(null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size={width:bar_poptin_width,height:bar_poptin_height_2}),poptin_size.height=bar_poptin_height_2):"format_4"==poptin.poptin_format||"format_9"==poptin.poptin_format?(null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size={width:bar_poptin_width,height:bar_poptin_height_4}),poptin_size.height=bar_poptin_height_4):"format_5"!=poptin.poptin_format&amp;&amp;"format_10"!=poptin.poptin_format||(null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size={width:bar_poptin_width,height:bar_poptin_height_5}),poptin_size.height=bar_poptin_height_5)):"sside"==poptin.poptin_type?"format_1"===poptin.poptin_format||"format_5"===poptin.poptin_format?(null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size={width:sside_poptin_width_2,height:sside_poptin_height}),poptin_size.width=sside_poptin_width,poptin_size.height=sside_poptin_height):"format_4"===poptin.poptin_format||"format_8"===poptin.poptin_format?(null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size={width:sside_poptin_width_4,height:sside_poptin_height_4}),poptin_size.width=sside_poptin_width_4,poptin_size.height=sside_poptin_height_4):(null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size={width:sside_poptin_width,height:sside_poptin_height}),poptin_size.width=sside_poptin_width_2,poptin_size.height=sside_poptin_height):"bside"==poptin.poptin_type?(null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size={width:bside_poptin_width,height:bside_poptin_height}),poptin_size.width=bside_poptin_width,poptin_size.height=bside_poptin_height):"browsing"==poptin.poptin_type?(null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size={width:browsing_poptin_width,height:browsing_poptin_height}),poptin_size.width=browsing_poptin_width,poptin_size.height=browsing_poptin_height):"fullpage"==poptin.poptin_type?(null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size={width:fullpage_poptin_width,height:fullpage_poptin_height}),poptin_size.width="100%",poptin_size.height="100%","format_4"!==poptin.poptin_format&amp;&amp;"format_8"!==poptin.poptin_format||(null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size={width:fullpage_poptin_width_2,height:fullpage_poptin_height_2}),poptin_size.width=fullpage_poptin_width_2,poptin_size.height=fullpage_poptin_height_2)):"content"==poptin.poptin_type?null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size={width:fullpage_poptin_width,height:fullpage_poptin_height}):"social"==poptin.poptin_type?"format_1"===poptin.poptin_format||"format_5"===poptin.poptin_format?(null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size={width:social_poptin_width,height:social_poptin_height}),poptin_size.width=social_poptin_width,poptin_size.height=social_poptin_height):"format_2"===poptin.poptin_format||"format_6"===poptin.poptin_format?(null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size={width:social_poptin_width_2,height:social_poptin_height_2}),poptin_size.width=social_poptin_width_2,poptin_size.height=social_poptin_height_2):"format_4"!==poptin.poptin_format&amp;&amp;"format_8"!==poptin.poptin_format||(null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size={width:social_poptin_width_4,height:social_poptin_height_4}),poptin_size.width=social_poptin_width_4,poptin_size.height=social_poptin_height_4):"mobile"==poptin.poptin_type?(null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size={width:mobile_poptin_width,height:mobile_poptin_height}),poptin_size.width=mobile_poptin_width,poptin_size.height=mobile_poptin_height,"format_3"===poptin.poptin_format||"format_8"===poptin.poptin_format?(null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size={width:mobile_poptin_width_2,height:mobile_poptin_height_2}),poptin_size.width=mobile_poptin_width_2,poptin_size.height=mobile_poptin_height_2):"format_4"===poptin.poptin_format||"format_9"===poptin.poptin_format?(null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size={width:mobile_poptin_width,height:mobile_poptin_height_4}),poptin_size.height=mobile_poptin_height_4):"format_5"!==poptin.poptin_format&amp;&amp;"format_10"!==poptin.poptin_format||(null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size={width:mobile_poptin_width,height:mobile_poptin_height_5}),poptin_size.height=mobile_poptin_height_5)):"embedded"==poptin.poptin_type&amp;&amp;("format_1"===poptin.poptin_format?(poptin_size.width=embedded_poptin_width_1,poptin_size.height=embedded_poptin_height_1):"format_2"===poptin.poptin_format?(poptin_size.width=embedded_poptin_width_2,poptin_size.height=embedded_poptin_height_2):"format_3"===poptin.poptin_format?(poptin_size.width=embedded_poptin_width_3,poptin_size.height=embedded_poptin_height_3):"format_4"===poptin.poptin_format?(poptin_size.width=embedded_poptin_width_4,poptin_size.height=embedded_poptin_height_4):"format_5"===poptin.poptin_format?(poptin_size.width=embedded_poptin_width_5,poptin_size.height=embedded_poptin_height_5):"format_6"===poptin.poptin_format?(poptin_size.width=embedded_poptin_width_6,poptin_size.height=embedded_poptin_height_6):"format_7"===poptin.poptin_format&amp;&amp;(poptin_size.width=embedded_poptin_width_7,poptin_size.height=embedded_poptin_height_7),null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size={width:poptin_size.width,height:poptin_size.height})),poptins[poptin.poptin_id].poptin_size=poptin_size)}function setPoptinsArray(poptin_id){poptins[poptin_id]={poptin_size:{},poptin_trigger:{},poptin_center:{}}}function setPoptinsOnClickArray(poptin_id){poptins[poptin_id]={poptin_size:{},poptin_trigger:{},poptin_center:{}}}function ifAndroidPoptinKeyborad(poptin,click){var keyboard=!1,o_bottom=(jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]").css("top"),jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]").css("bottom")),padding_o={lightbox:"10px",mobile:"10px",sside:"0px"};if(ifAndroidPoptin&amp;&amp;-1&lt;jQ224.inArray(poptin.poptin_type,["lightbox","mobile","sside"])){try{jQ224("[data-poptin-id="+poptin.poptin_id+"] .inputs-container input").off("click"),jQ224(window).off("click")}catch(err){showLog(err)}jQ224("[data-poptin-id="+poptin.poptin_id+"] .inputs-container input").on("click",function(e){keyboard||("sside"!=poptin.poptin_type||"format_4"!==poptin.poptin_format&amp;&amp;"format_8"!==poptin.poptin_format?-1==poptin.design_properties.poptin_location.indexOf("top")&amp;&amp;(-1&lt;poptin.design_properties.poptin_location.indexOf("bottom")?jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]").animate({top:padding_o[poptin.poptin_type]},300):jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]").animate({top:parseInt(jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]").css("top"))-100+"px"},300)):jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]").animate({top:"-100px"},300),keyboard=!0)}),jQ224(window).on("click",function(e){0==jQ224(e.target).parents(".inputs-container").length&amp;&amp;keyboard&amp;&amp;(-1!=poptin.design_properties.poptin_location.indexOf("top")&amp;&amp;("sside"!=poptin.poptin_type||"format_4"!==poptin.poptin_format&amp;&amp;"format_8"!==poptin.poptin_format)||(-1&lt;poptin.design_properties.poptin_location.indexOf("bottom")?(jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]").css("top",""),jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]").animate({bottom:o_bottom},300)):jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]").animate({top:parseInt(jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]").css("top"))+100+"px"},300)),keyboard=!1)})}}function clearPoptinCredit(poptin){jQ224("[data-poptin-id="+poptin.poptin_id+"] .poptin-credit").remove(),showLog("clearPoptinCredit1"),poptin.if_poptin_credit&amp;&amp;insertPoptinCredit(poptin)}function insertPoptinCredit(poptin){showLog("insertPoptinCredit"),jQ224("[data-poptin-id="+poptin.poptin_id+"]").children("div, form").append(html_credit),jQ224("[data-poptin-id="+poptin.poptin_id+"] .poptin-credit a").attr("href",("en"==user_lang?poptin_com_url:poptin_il_url)+"?src="+window.location.host)}function fixHtmlPadding(){if_html_pad&amp;&amp;jQ224("html").animate({"padding-top":"0px"},500)}poptinAfterPageLoad?(console.log("poptinAfterPageLoad"),setTimeout(function(){"complete"==document.readyState?runPoptinNow():window.addEventListener||window.hasOwnProperty("onload")?(window.addEventListener("load",function(){pageLoadCheck("check1")},!0),window.onload=function(){pageLoadCheck("check2")}):runPoptinNow()},1500*("noJqueryUi"==poptinAfterPageLoad||"noConflict"==poptinAfterPageLoad?0:1))):runPoptinNow();var poptin_fonts=["Verdana,+Geneva,+sans-serif","Arial,+Helvetica,+sans-serif","Arial+Black,+Gadget,+sans-serif","Comic+Sans+MS,+cursive,+sans-serif","Georgia,+serif","Impact,+Charcoal,+sans-serif","Lucida+Sans+Unicode,+Lucida+Grande,+sans-serif","Palatino+Linotype,+Book+Antiqua,+Palatino,+serif","Tahoma,+Geneva,+sans-serif","Times+New+Roman,+Times,+serif","Trebuchet+MS,+Helvetica,+sans-serif"];function getFont(value){split=value.split("font-family")[1].split(";")[0],_font=split.replace("!important","").replace(/\:/g,"").replace(/\"/g,"").replace(/\'/g,"").trim().replace(/\s/g,"+"),jQ224("link").each(function(){this_href=jQ224(this).attr("href").toLowerCase(),-1==this_href.indexOf("fonts.googleapis.com")&amp;&amp;-1==this_href.indexOf(_font.toLowerCase())&amp;&amp;-1==poptin_fonts.indexOf(_font)&amp;&amp;(poptin_fonts.push(_font),"Open+Sans+Hebrew"==_font?jQ224("head").append(''):jQ224("head").append(''))})}function poptinNewsTicker(selector,options){return jQ224(selector).each(function(){var $poptinNewsTickerWrapper,containerWidth,animationCss,verticalDir,elWidth,o=jQ224.extend({},{allowCss3Support:!0,css3easing:"linear",easing:"linear",delayBeforeStart:1e3,direction:"left",duplicated:!1,duration:5e3,speed:0,gap:20,pauseOnCycle:!1,pauseOnHover:!1,startVisible:!1},options),$this=jQ224(this),loopCount=3,playState="animation-play-state",css3AnimationIsSupported=!1,_prefixedEvent=function(element,type,callback){for(var pfx=["webkit","moz","MS","o",""],p=0;p&lt;pfx.length;p++)pfx[p]||(type=type.toLowerCase()),element.addEventListener(pfx[p]+type,callback,!1)},_startAnimationWithDelay=function(){$this.timer=setTimeout(animate,o.delayBeforeStart)},methods={pause:function(){css3AnimationIsSupported&amp;&amp;o.allowCss3Support?$poptinNewsTickerWrapper.css(playState,"paused"):jQ224.fn.pause&amp;&amp;$poptinNewsTickerWrapper.pause(),$this.data("runningStatus","paused"),$this.trigger("paused")},resume:function(){css3AnimationIsSupported&amp;&amp;o.allowCss3Support?$poptinNewsTickerWrapper.css(playState,"running"):jQ224.fn.resume&amp;&amp;$poptinNewsTickerWrapper.resume(),$this.data("runningStatus","resumed"),$this.trigger("resumed")},toggle:function(){methods["resumed"===$this.data("runningStatus")?"pause":"resume"]()},destroy:function(){clearTimeout($this.timer),$this.find("*").addBack().off(),$this.html($this.find(".js-poptinNewsTicker:first").html())}};if("string"!=typeof options){var attr;jQ224.each(o,function(key){if(void 0!==(attr=$this.attr("data-"+key))){switch(attr){case"true":attr=!0;break;case"false":attr=!1}o[key]=attr}}),o.speed&amp;&amp;(o.duration=parseInt($this.width(),10)/o.speed*1e3),verticalDir="up"===o.direction||"down"===o.direction,o.gap=o.duplicated?parseInt(o.gap):0,$this.wrapInner('<div class="js-poptinNewsTicker"></div>');var $el=$this.find(".js-poptinNewsTicker").css({"margin-right":o.gap,float:"left"});if(o.duplicated&amp;&amp;$el.clone(!0).appendTo($this),$this.wrapInner('<div class="js-poptinNewsTicker-wrapper"></div>'),$poptinNewsTickerWrapper=$this.find(".js-poptinNewsTicker-wrapper"),verticalDir){var containerHeight=$this.height();$poptinNewsTickerWrapper.removeAttr("style"),$this.height(containerHeight),$this.find(".js-poptinNewsTicker").css({float:"none","margin-bottom":o.gap,"margin-right":0}),o.duplicated&amp;&amp;$this.find(".js-poptinNewsTicker:last").css({"margin-bottom":0});var elHeight=$this.find(".js-poptinNewsTicker:first").height()+o.gap;o.startVisible&amp;&amp;!o.duplicated?(o._completeDuration=(parseInt(elHeight,10)+parseInt(containerHeight,10))/parseInt(containerHeight,10)*o.duration,o.duration=parseInt(elHeight,10)/parseInt(containerHeight,10)*o.duration):o.duration=(parseInt(elHeight,10)+parseInt(containerHeight,10))/parseInt(containerHeight,10)*o.duration}else elWidth=$this.find(".js-poptinNewsTicker:first").width()+o.gap,containerWidth=$this.width(),o.startVisible&amp;&amp;!o.duplicated?(o._completeDuration=(parseInt(elWidth,10)+parseInt(containerWidth,10))/parseInt(containerWidth,10)*o.duration,o.duration=parseInt(elWidth,10)/parseInt(containerWidth,10)*o.duration):o.duration=(parseInt(elWidth,10)+parseInt(containerWidth,10))/parseInt(containerWidth,10)*o.duration;if(o.duplicated&amp;&amp;(o.duration=o.duration/2),o.allowCss3Support){var elm=document.body||document.createElement("div"),animationName="poptinNewsTickerAnimation-"+Math.floor(1e7*Math.random()),domPrefixes="Webkit Moz O ms Khtml".split(" "),animationString="animation",animationCss3Str="",keyframeString="";if(void 0!==elm.style.animation&amp;&amp;(keyframeString="@keyframes "+animationName+" ",css3AnimationIsSupported=!0),!1===css3AnimationIsSupported)for(var i=0;i&lt;domPrefixes.length;i++)if(void 0!==elm.style[domPrefixes[i]+"AnimationName"]){var prefix="-"+domPrefixes[i].toLowerCase()+"-";animationString=prefix+animationString,playState=prefix+playState,keyframeString="@"+prefix+"keyframes "+animationName+" ",css3AnimationIsSupported=!0;break}css3AnimationIsSupported&amp;&amp;(animationCss3Str=animationName+" "+o.duration/1e3+"s "+o.delayBeforeStart/1e3+"s infinite "+o.css3easing,$this.data("css3AnimationIsSupported",!0))}var _rePositionVertically=function(){$poptinNewsTickerWrapper.css("transform","translateY("+("up"===o.direction?containerHeight+"px":"-"+elHeight+"px")+")")},_rePositionHorizontally=function(){$poptinNewsTickerWrapper.css("transform","translateX("+("left"===o.direction?containerWidth+"px":"-"+elWidth+"px")+")")};o.duplicated?(verticalDir?o.startVisible?$poptinNewsTickerWrapper.css("transform","translateY(0)"):$poptinNewsTickerWrapper.css("transform","translateY("+("up"===o.direction?containerHeight+"px":"-"+(2*elHeight-o.gap)+"px")+")"):o.startVisible?$poptinNewsTickerWrapper.css("transform","translateX(0)"):$poptinNewsTickerWrapper.css("transform","translateX("+("left"===o.direction?containerWidth+"px":"-"+(2*elWidth-o.gap)+"px")+")"),o.startVisible||(loopCount=1)):o.startVisible?loopCount=2:verticalDir?_rePositionVertically():_rePositionHorizontally();var animate=function(){if(o.duplicated&amp;&amp;(1===loopCount?(o._originalDuration=o.duration,o.duration=verticalDir?"up"===o.direction?o.duration+containerHeight/(elHeight/o.duration):2*o.duration:"left"===o.direction?o.duration+containerWidth/(elWidth/o.duration):2*o.duration,animationCss3Str&amp;&amp;(animationCss3Str=animationName+" "+o.duration/1e3+"s "+o.delayBeforeStart/1e3+"s "+o.css3easing),loopCount++):2===loopCount&amp;&amp;(o.duration=o._originalDuration,animationCss3Str&amp;&amp;(animationName+="0",keyframeString=jQ224.trim(keyframeString)+"0 ",animationCss3Str=animationName+" "+o.duration/1e3+"s 0s infinite "+o.css3easing),loopCount++)),verticalDir?o.duplicated?(2&lt;loopCount&amp;&amp;$poptinNewsTickerWrapper.css("transform","translateY("+("up"===o.direction?0:"-"+elHeight+"px")+")"),animationCss={transform:"translateY("+("up"===o.direction?"-"+elHeight+"px":0)+")"}):o.startVisible?2===loopCount?(animationCss3Str&amp;&amp;(animationCss3Str=animationName+" "+o.duration/1e3+"s "+o.delayBeforeStart/1e3+"s "+o.css3easing),animationCss={transform:"translateY("+("up"===o.direction?"-"+elHeight+"px":containerHeight+"px")+")"},loopCount++):3===loopCount&amp;&amp;(o.duration=o._completeDuration,animationCss3Str&amp;&amp;(animationName+="0",keyframeString=jQ224.trim(keyframeString)+"0 ",animationCss3Str=animationName+" "+o.duration/1e3+"s 0s infinite "+o.css3easing),_rePositionVertically()):(_rePositionVertically(),animationCss={transform:"translateY("+("up"===o.direction?"-"+$poptinNewsTickerWrapper.height()+"px":containerHeight+"px")+")"}):o.duplicated?(2&lt;loopCount&amp;&amp;$poptinNewsTickerWrapper.css("transform","translateX("+("left"===o.direction?0:"-"+elWidth+"px")+")"),animationCss={transform:"translateX("+("left"===o.direction?"-"+elWidth+"px":0)+")"}):o.startVisible?2===loopCount?(animationCss3Str&amp;&amp;(animationCss3Str=animationName+" "+o.duration/1e3+"s "+o.delayBeforeStart/1e3+"s "+o.css3easing),animationCss={transform:"translateX("+("left"===o.direction?"-"+elWidth+"px":containerWidth+"px")+")"},loopCount++):3===loopCount&amp;&amp;(o.duration=o._completeDuration,animationCss3Str&amp;&amp;(animationName+="0",keyframeString=jQ224.trim(keyframeString)+"0 ",animationCss3Str=animationName+" "+o.duration/1e3+"s 0s infinite "+o.css3easing),_rePositionHorizontally()):(_rePositionHorizontally(),animationCss={transform:"translateX("+("left"===o.direction?"-"+elWidth+"px":containerWidth+"px")+")"}),$this.trigger("beforeStarting"),css3AnimationIsSupported){$poptinNewsTickerWrapper.css(animationString,animationCss3Str);var keyframeCss=keyframeString+" { 100% "+function(obj){var tabjson=[];for(var p in obj)obj.hasOwnProperty(p)&amp;&amp;tabjson.push(p+":"+obj[p]);return tabjson.push(),"{"+tabjson.join(",")+"}"}(animationCss)+"}",$styles=$poptinNewsTickerWrapper.find("style");0!==$styles.length?$styles.filter(":last").html(keyframeCss):jQ224("head").append(""+keyframeCss+""),_prefixedEvent($poptinNewsTickerWrapper[0],"AnimationIteration",function(){$this.trigger("finished")}),_prefixedEvent($poptinNewsTickerWrapper[0],"AnimationEnd",function(){animate(),$this.trigger("finished")})}else $poptinNewsTickerWrapper.animate(animationCss,o.duration,o.easing,function(){$this.trigger("finished"),o.pauseOnCycle?_startAnimationWithDelay():animate()});$this.data("runningStatus","resumed")};$this.on("pause",methods.pause),$this.on("resume",methods.resume),o.pauseOnHover&amp;&amp;($this.on("mouseenter",methods.pause),$this.on("mouseleave",methods.resume)),css3AnimationIsSupported&amp;&amp;o.allowCss3Support?animate():_startAnimationWithDelay()}else jQ224.isFunction(methods[options])&amp;&amp;($poptinNewsTickerWrapper||($poptinNewsTickerWrapper=$this.find(".js-poptinNewsTicker-wrapper")),!0===$this.data("css3AnimationIsSupported")&amp;&amp;(css3AnimationIsSupported=!0),methods[options]())})}function loadpoptinNewsTicker(poptin){0&lt;jQ224("[data-poptin-id="+poptin.poptin_id+"] .froala-editor-ticker").length&amp;&amp;setTimeout(function(){jQ224("[data-poptin-id="+poptin.poptin_id+"] .froala-editor-ticker").each(function(e){var part_width=jQ224(this).parent(".poptin-newsticker-element").width();jQ224(this).css({overflow:"hidden",width:part_width+"px",position:"relative"}),poptinNewsTicker(this)})},100)}function showPoptin(poptin,click){poptinTimer(poptin)&amp;&amp;(showLog("showPoptin: "+poptin.poptin_id),setJqueryUiShakeAnimation(),cssFix(poptin),clearPoptinCredit(poptin),"social_proof"==poptin.poptin_target?setSocialProofBehaverInterval(poptin,click):(showEffect(poptin),poptins[poptin.poptin_id].poptin_trigger.shown=!0),injectFacebookPlugin(poptin),animateButton(poptin),loadbgAnimationOverlay(poptin),loadpoptinNewsTicker(poptin),pushHtmlDown(poptin),paddingXButton(poptin),poptinFormClickSubmit(poptin,click),poptinViewed(poptin))}function injectFacebookPlugin(poptin){poptin.poptin_type+"_"+poptin.poptin_format=="social_format_3"||poptin.poptin_type+"_"+poptin.poptin_format=="social_format_7"?(showLog("ingectFacebookChat"),inject_chat_sdk=jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"] .facebook-plugin").attr("data-facebook-chat-plugin"),0&lt;inject_chat_sdk.indexOf("sdk.js")&amp;&amp;(inject_chat_sdk=inject_chat_sdk.replace("sdk.js","sdk/xfbml.customerchat.js")),jQ224("body").append(inject_chat_sdk)):poptin.poptin_type+"_"+poptin.poptin_format!="social_format_4"&amp;&amp;poptin.poptin_type+"_"+poptin.poptin_format!="social_format_8"||(showLog("ingectFacebookSendToMessangerPlugin"),facebook_messanger_data_ref=poptin.poptin_id+"-"+getClientId()+"-"+Math.random().toString(36),jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"] .facebook-plugin .fb-send-to-messenger").attr("data-ref",facebook_messanger_data_ref),jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"] .ui-wrapper").remove(),jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"] .facebook-plugin").is(":empty")||jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"] .facebook-messanger-conversion-img").remove(),setTimeout(function(){jQ224("body").append(jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"] .facebook-plugin").attr("data-facebook-send-to-messanger-plugin"))},750))}function pushHtmlDown(poptin){showLog("pushHtmlDown"),("bar"==poptin.poptin_type&amp;&amp;"center-top"==poptin.design_properties.poptin_location||"1"==jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]").attr("data-wellcome-screen"))&amp;&amp;(jQ224("html").animate({"padding-top":jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]")[0].getBoundingClientRect().height+"px"},300),if_html_pad=!0)}function paddingXButton(poptin){ifScrollVisible()&amp;&amp;"fullpage"==poptin.poptin_type&amp;&amp;setTimeout(function(){jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"] .draggable-container .close-x-button").css("padding-right",1920==screen.width?"46px":"20px")},300)}function cssFix(poptin){jQ224(".froala-editor-button").css("width","100%"),jQ224("[data-poptin-id="+poptin.poptin_id+"] .draggable-container").find("p, input, a, span, div, button, label, ul, ol, li, img, strong, i").each(function(e){jQ224(this).is("a")&amp;&amp;jQ224(this).css("cursor","pointer"),jQ224(this).parents("a").length&amp;&amp;jQ224(this).css("cursor","");var this_width=jQ224(this).get(0).style.width,is_close_button="closeXButton"==jQ224(this).attr("id");if(""!=this_width&amp;&amp;!is_close_button){if(-1&lt;this_width.indexOf("px")){this_width=parseInt(this_width);var data_width=getDataWidthHeight(poptin.poptin).width;data_width&amp;&amp;(this_width=Math.min(data_width,this_width)),this_width+="px"}poptin.poptin_type+"_"+poptin.poptin_format!="social_format_6"&amp;&amp;jQ224(this).css({"max-width":this_width})}var css_string="";jQ224.each(this.attributes,function($this){if(this.specified&amp;&amp;"style"==this.name&amp;&amp;(css_string=(css_string=(css_string=(css_string=(css_string=this.value).replace(/ ?!important/g,"")).replace(/\;base64/g,":base64")).replace(/\;/g," !important;")).replace(/\:base64/g,";base64"),-1!==this.value.indexOf("font-family")))try{getFont(this.value)}catch(err){showLog(err)}}),jQ224(this).attr("style",css_string)}),jQ224('#poptinDesignInputTextFieldCheckbox .form-input-class, .poptin-popup input[type="radio"], .poptin-popup input[type="checkbox"]').css({width:"","max-width":""})}function setJqueryUiShakeAnimation(){jQ224.fn.shake=function(intShakes,intDistance,intDuration,l){return this.each(function(){for(var x=1;x&lt;=intShakes;x++)jQ224(this).animate({left:2*l+-1*intDistance},intDuration/intShakes/4).animate({left:intDistance},intDuration/intShakes/2).animate({left:l},intDuration/intShakes/4)}),this}}function secondPlay(time,poptin_id){var timer_poptin=jQ224(".poptin-popup[data-poptin-id="+poptin_id+"]");timer_poptin.find(".flip-timer-container").removeClass("play");var aa=timer_poptin.find(".secondPlay .flip-item.active");null==aa.html()?(aa=timer_poptin.find(".secondPlay .flip-item").eq(0)).addClass("before").removeClass("active").next(".flip-item").addClass("active").closest(".flip-timer-container").addClass("play"):aa.is(":last-child")?(timer_poptin.find(".secondPlay .flip-item").removeClass("before"),aa.addClass("before").removeClass("active"),(aa=timer_poptin.find(".secondPlay .flip-item").eq(0)).addClass("active").closest(".flip-timer-container").addClass("play")):(timer_poptin.find(".secondPlay .flip-item").removeClass("before"),aa.addClass("before").removeClass("active").next(".flip-item").addClass("active").closest(".flip-timer-container").addClass("play"))}function minutePlay(time,poptin_id){var timer_poptin=jQ224(".poptin-popup[data-poptin-id="+poptin_id+"]");timer_poptin.find(".flip-timer-container").removeClass("play");var aa=timer_poptin.find(".minutePlay .flip-item.active");null==aa.html()?(aa=timer_poptin.find(".minutePlay .flip-item").eq(0)).addClass("before").addClass("perspective").removeClass("active").next(".flip-item").addClass("active").addClass("perspective").closest(".flip-timer-container").addClass("play"):aa.is(":last-child")?(timer_poptin.find(".minutePlay .flip-item").removeClass("before"),aa.addClass("before").removeClass("active"),(aa=timer_poptin.find(".minutePlay .flip-item").eq(0)).addClass("active").addClass("perspective").closest(".flip-timer-container").addClass("play")):(timer_poptin.find(".minutePlay .flip-item").removeClass("before"),aa.addClass("before").addClass("perspective").removeClass("active").next(".flip-item").addClass("active").addClass("perspective").closest(".flip-timer-container").addClass("play")),setTimeout(function(){timer_poptin.find(".minutePlay .flip-item.perspective").removeClass("perspective")},1e3)}function hoursPlay(time,poptin_id){var timer_poptin=jQ224(".poptin-popup[data-poptin-id="+poptin_id+"]");timer_poptin.find(".flip-timer-container").removeClass("play");var aa=timer_poptin.find(".hoursPlay .flip-item.active");null==aa.html()?(aa=timer_poptin.find(".hoursPlay .flip-item").eq(0)).addClass("before").addClass("perspective").removeClass("active").next(".flip-item").addClass("active").addClass("perspective").closest(".flip-timer-container").addClass("play"):aa.is(":last-child")?(timer_poptin.find(".hoursPlay .flip-item").removeClass("before"),aa.addClass("before").removeClass("active"),(aa=timer_poptin.find(".hoursPlay .flip-item").eq(0)).addClass("active").addClass("perspective").closest(".flip-timer-container").addClass("play")):(timer_poptin.find(".hoursPlay .flip-item").removeClass("before"),aa.addClass("before").addClass("perspective").removeClass("active").next(".flip-item").addClass("active").addClass("perspective").closest(".flip-timer-container").addClass("play")),setTimeout(function(){timer_poptin.find(".hoursPlay .flip-item.perspective").removeClass("perspective")},1e3)}function daysPlay(time,poptin_id){var timer_poptin=jQ224(".poptin-popup[data-poptin-id="+poptin_id+"]");timer_poptin.find(".flip-timer-container").removeClass("play");var aa=timer_poptin.find(".daysPlay .flip-item.active");null==aa.html()?(aa=timer_poptin.find(".daysPlay .flip-item").eq(0)).addClass("before").addClass("perspective").removeClass("active").next(".flip-item").addClass("active").addClass("perspective").closest(".flip-timer-container").addClass("play"):aa.is(":last-child")?(timer_poptin.find(".daysPlay .flip-item").removeClass("before"),aa.addClass("before").removeClass("active"),(aa=timer_poptin.find(".daysPlay .flip-item").eq(0)).addClass("active").addClass("perspective").closest(".flip-timer-container").addClass("play")):(timer_poptin.find(".daysPlay .flip-item").removeClass("before"),aa.addClass("before").addClass("perspective").removeClass("active").next(".flip-item").addClass("active").addClass("perspective").closest(".flip-timer-container").addClass("play")),setTimeout(function(){timer_poptin.find(".daysPlay .flip-item.perspective").removeClass("perspective")},1e3)}function poptinTimer(poptin){var timer_cont=jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"] .timer-container");if(timer_cont.length&amp;&amp;timer_cont.hasClass(".timer-started"))return!1;if(timer_cont.addClass(".timer-started"),1==poptin.design_properties.timer_ver||2==poptin.design_properties.timer_ver||0==poptin.design_properties.timer_ver&amp;&amp;(poptin.poptin_type+"_"+poptin.poptin_format=="embedded_format_5"||poptin.poptin_type+"_"+poptin.poptin_format=="lightbox_format_5"||poptin.poptin_type+"_"+poptin.poptin_format=="lightbox_format_11"||poptin.poptin_type+"_"+poptin.poptin_format=="bar_format_5"||poptin.poptin_type+"_"+poptin.poptin_format=="bar_format_10")){var timer_ver=1;2==poptin.design_properties.timer_ver&amp;&amp;(timer_ver=2);var role=poptin.design_properties.timer.split("@"),time=role[1].split("|");if("timerTime"==role[0]){var seconds=60*parseInt(time[0])+parseInt(time[1]),count_down=new Date((new Date).getTime()+1e3*seconds);initializeClock(poptin.poptin_id,count_down,poptin,timer_ver)}else{count_down=new Date(time[0]+" "+time[1]+" GMT"+("0"==time[2]?"+0":time[2]));if(showLog(time[0]+" "+time[1]+" GMT"+time[2]),showLog("0"==time[2]?"yes":"no"),showLog(count_down),!checkIfTimer(poptin,count_down))return!1;initializeClock(poptin.poptin_id,count_down,poptin,timer_ver)}}return!0}function resetClock(endtime,poptin_id,caller){if(void 0!==endtime){var timer_poptin=jQ224(".poptin-popup[data-poptin-id="+poptin_id+"]");timer_poptin.find(".flip-timer-container").addClass("play");var t=getTimeRemaining(endtime),currentSec=parseInt(timer_poptin.find(".secondPlay .flip-item.active .up .inn").text()),secTimeDiff=Math.abs((isNaN(currentSec)?0:currentSec)-t.seconds);showLog("secTimeDiff",secTimeDiff,currentSec),(secTimeDiff||"program"==caller)&amp;&amp;(timer_poptin.find(".secondPlay .flip-item").removeClass("before"),timer_poptin.find(".secondPlay .flip-item").removeClass("active"),timer_poptin.find(".secondPlay .flip-item .up .inn").each(function(){parseInt(jQ224(this).text())==t.seconds&amp;&amp;jQ224(this).closest(".flip-item").prev().addClass("before").next(".flip-item").addClass("active")}));var currentMin=parseInt(timer_poptin.find(".minutePlay .flip-item.active .up .inn").text()),minTimeDiff=Math.abs((isNaN(currentMin)?0:currentMin)-t.minutes);showLog("minTimeDiff",minTimeDiff,currentMin),(minTimeDiff||"program"==caller)&amp;&amp;(timer_poptin.find(".minutePlay .flip-item").removeClass("before"),timer_poptin.find(".minutePlay .flip-item").removeClass("active"),timer_poptin.find(".minutePlay .flip-item .up .inn").each(function(){parseInt(jQ224(this).text())==t.minutes&amp;&amp;jQ224(this).closest(".flip-item").prev().addClass("before").next(".flip-item").addClass("active")}));var currentHr=parseInt(timer_poptin.find(".hoursPlay .flip-item.active .up .inn").text()),hrTimeDiff=Math.abs((isNaN(currentHr)?0:currentHr)-t.hours);showLog("hrTimeDiff",hrTimeDiff,currentHr),(hrTimeDiff||"program"==caller)&amp;&amp;(timer_poptin.find(".hoursPlay .flip-item").removeClass("before"),timer_poptin.find(".hoursPlay .flip-item").removeClass("active"),timer_poptin.find(".hoursPlay .flip-item .up .inn").each(function(){parseInt(jQ224(this).text())==t.hours&amp;&amp;jQ224(this).closest(".flip-item").prev().addClass("before").next(".flip-item").addClass("active")}));var currentDay=parseInt(timer_poptin.find(".daysPlay .flip-item.active .up .inn").text()),dayTimeDiff=Math.abs((isNaN(currentDay)?0:currentDay)-t.days);showLog("dayTimeDiff",dayTimeDiff,currentDay),(dayTimeDiff||"program"==caller)&amp;&amp;(jQ224("#poptinDraggableContainer .daysPlay .flip-item").removeClass("before"),jQ224("#poptinDraggableContainer .daysPlay .flip-item").removeClass("active"),jQ224("#poptinDraggableContainer .daysPlay .flip-item .up .inn").each(function(){parseInt(jQ224(this).text())==t.days&amp;&amp;(showLog(parseInt(jQ224(this).text()),t.days),jQ224(this).closest(".flip-item").prev().addClass("before").next(".flip-item").addClass("active"))}))}}function prefix0(num){return("0"+num).slice(-2)}function initializeClock(poptin_id,endtime,poptin,timer_ver){var timer_poptin=jQ224(".poptin-popup[data-poptin-id="+poptin_id+"]");if(showLog("initializeClock() | endtime: "+endtime+", poptin_id: "+poptin_id),jQ224(".poptin-popup[data-poptin-id="+poptin_id+"]").show(),2==timer_ver){jQ224(window).on("blur focus hover",function(e){if(timer_poptin.find(".flip-timer-container").attr("data-prev-type")!=e.type)switch(e.type){case"focus":resetClock(endtime,poptin_id,"window")}timer_poptin.find(".flip-timer-container").attr("data-prev-type",e.type)}),jQ224(".poptin-popup[data-poptin-id="+poptin_id+"] .timer-container").addClass("timer-started");var t=getTimeRemaining(endtime);showLog("getTimeRemaining",t);var flip_cont=jQ224(".poptin-popup[data-poptin-id="+poptin_id+"] .flip-timer-container"),flip_wrap=flip_cont.find(".daysPlay, .hoursPlay, .minutePlay, .secondPlay");flip_wrap.find(".flip-item").after('<div class="flip-item-holder"></div>'),flip_wrap.find(".flip-item").remove();for(var idx=t.days;0&lt;=idx;idx--){var showtime=prefix0(idx);flip_cont.find(".daysPlay .flip-item-holder").append('<div class="flip-item"><div class="anim-wrap"><div class="up"><div class="shadow"></div><div class="inn">'+showtime+'</div></div><div class="down"><div class="shadow"></div><div class="inn">'+showtime+"</div></div></div></div>")}for(idx=23;0&lt;=idx;idx--){showtime=prefix0(idx);flip_cont.find(".hoursPlay .flip-item-holder").append('<div class="flip-item"><div class="anim-wrap"><div class="up"><div class="shadow"></div><div class="inn">'+showtime+'</div></div><div class="down"><div class="shadow"></div><div class="inn">'+showtime+"</div></div></div></div>")}for(idx=59;0&lt;=idx;idx--){showtime=prefix0(idx);flip_cont.find(".minutePlay .flip-item-holder").append('<div class="flip-item"><div class="anim-wrap"><div class="up"><div class="shadow"></div><div class="inn">'+showtime+'</div></div><div class="down"><div class="shadow"></div><div class="inn">'+showtime+"</div></div></div></div>")}for(idx=59;0&lt;=idx;idx--){showtime=prefix0(idx);flip_cont.find(".secondPlay .flip-item-holder").append('<div class="flip-item"><div class="anim-wrap"><div class="up"><div class="shadow"></div><div class="inn">'+showtime+'</div></div><div class="down"><div class="shadow"></div><div class="inn">'+showtime+"</div></div></div><div>")}function updateClock(){var t=getTimeRemaining(endtime);if(0==t||t.total&lt;1e3){poptins[poptin_id].poptin_trigger.close_trigger="timer",closePoptin(poptin_id);try{clearInterval(updateClockInterval)}catch(err){}}else secondPlay(t,poptin_id),0==t.seconds&amp;&amp;0&lt;=t.minutes&amp;&amp;(showLog("Play minutes"),minutePlay(t,poptin_id)),0==t.seconds&amp;&amp;0==t.minutes&amp;&amp;0&lt;=t.hours&amp;&amp;(showLog("Play hours"),hoursPlay(t,poptin_id)),0==t.seconds&amp;&amp;0==t.minutes&amp;&amp;0&lt;=t.hours&amp;&amp;0 div").css("background-color",flip_wrap.css("background-color")),jQ224(".poptin-popup[data-poptin-id="+poptin_id+"] .flip-timer-container").addClass("reset"),resetClock(endtime,poptin_id,"program"),updateClock();try{clearInterval(updateClockInterval)}catch(err){}updateClockInterval=setInterval(updateClock,1e3),setTimeout(function(){jQ224(".poptin-popup[data-poptin-id="+poptin_id+"] .flip-timer-container").removeClass("reset")},1e3)}else{var clock=jQ224(".poptin-popup[data-poptin-id="+poptin_id+"] .timer-container");function updateClock(){var t=getTimeRemaining(endtime),days=("0"+t.days).slice(-2),hours=("0"+t.hours).slice(-2),minutes=("0"+t.minutes).slice(-2),seconds=("0"+t.seconds).slice(-2);if(clock.find("#timerDays .first").text(days[0]),clock.find("#timerDays .second").text(days[1]),clock.find("#timerHours .first").text(hours[0]),clock.find("#timerHours .second").text(hours[1]),clock.find("#timerMinutes .first").text(minutes[0]),clock.find("#timerMinutes .second").text(minutes[1]),clock.find("#timerSeconds .first").text(seconds[0]),clock.find("#timerSeconds .second").text(seconds[1]),0==t||t.total&lt;1e3){poptins[poptin_id].poptin_trigger.close_trigger="timer",closePoptin(poptin_id);try{clearInterval(updateClockInterval)}catch(err){}}}updateClock();var updateClockInterval=setInterval(updateClock,1e3)}}function getTimeRemaining(endtime){var t=endtime.getTime()-(new Date).getTime();return{total:t,days:Math.floor(t/864e5),hours:Math.floor(t/36e5%24),minutes:Math.floor(t/1e3/60%60),seconds:Math.floor(t/1e3%60)}}function checkIfTimer(poptin,endtime){return!(endtime.getTime()-(new Date).getTime()&lt;=0||"Invalid Date"==endtime)}function poptinFormClickSubmit(poptin,click){try{jQ224("[data-poptin-id="+poptin.poptin_id+"] #poptinFormSubmit"+poptin.poptin_id).off("click")}catch(err){showLog(err)}jQ224("[data-poptin-id="+poptin.poptin_id+"] #poptinFormSubmit"+poptin.poptin_id).on("click",function(e){try{jQ224("[data-poptin-id="+poptin.poptin_id+"] #poptinFormSubmit"+poptin.poptin_id).off("submit")}catch(err){showLog(err)}if(jQ224(e.target).hasClass("poptin-form-submit-button")||0call to mobile",err,"OK",!1,poptin)}else jQ224("[data-poptin-id="+poptin.poptin_id+"] #poptinFormSubmit"+poptin.poptin_id).on("submit",function(e){return e.preventDefault(),showLog("poptinFormClickSubmit"+poptin.poptin_id+" submit"),submitPoptin(poptin,click),!1})})}function ifLinkConversion(poptin){showLog("ifLinkConversion"),0&lt;jQ224("[data-poptin-id="+poptin.poptin_id+"]").find("#redirectBlank").length?(showLog("ifLinkConversion1"),poptinRedirectToUrl(poptin,"click","#redirectBlank")):0&lt;jQ224("[data-poptin-id="+poptin.poptin_id+"]").find(".redirect-url-blank").length&amp;&amp;(showLog("ifLinkConversion2"),poptinRedirectToUrl(poptin,"click",".redirect-url-blank"))}function ifSubmitEmptyForm(poptin,click){var empty_flag=!1,fieldsToCheck=jQ224("[data-poptin-id="+poptin.poptin_id+"] #poptinFormSubmit"+poptin.poptin_id+" .poptin-design-fields-form:not(#poptinDesignInputTextFieldCheckbox)");return 0poptinConversion()",err,"","",poptin),redirectAfterConversion(poptin)}}function poptinConversion(poptin,click){showLog("poptinConversion: "+poptin.poptin_id),jQ224("[data-poptin-id="+poptin.poptin_id+"] #poptinFormSubmit"+poptin.poptin_id+" .poptin-design-fields-form").each(function($index){-1!==this.id.indexOf("FreeField")&amp;&amp;(jQ224(this).css("display","none"),val=jQ224(this).val(),placeolder=jQ224(this).attr("placeholder"),jQ224(this).val("a:"+placeolder+"=&amp;=b:"+val))}),trigger=null==poptin.auto_pilot_trigger?"false":poptin.auto_pilot_trigger,checkbox_checked=jQ224('[data-poptin-id="'+poptin.poptin_id+'"] input[name="poptinDesignInputTextFieldCheckbox"]').prop("checked"),poptin_params={url:window.location.href,p_target:poptin.poptin_target,checkbox_checked:checkbox_checked,referrer:getReferrer(),trigger:trigger,poptin_id:poptin.poptin_id,title:document.title,client_id:getClientId(),visitor:ifMobilePoptin?"mobile":"desktop",facebook_messanger_data_ref:facebook_messanger_data_ref,origin_landing_page:getOriginLandingPage()};var poptin_fields=new Array,freeOptions=["poptinDesignInputTextFieldName","poptinDesignInputTextFieldEmail","poptinDesignInputTextFieldPhone","poptinDesignInputTextFieldMessage","poptinDesignInputTextFieldCheckbox"];new_extra_fields={};var is_active=jQ224("[data-poptin-id="+poptin.poptin_id+"].active").length?".active":"";jQ224("[data-poptin-id="+poptin.poptin_id+"]"+is_active+" #poptinFormSubmit"+poptin.poptin_id+" .poptin-design-fields-form").each(function(){if(showLog(this.name,this.type,this.value),-1&lt;jQ224.inArray(this.name,freeOptions)||-1&lt;this.name.indexOf("FreeField")&amp;&amp;-1==this.id.indexOf("poptinDesignInputTextFieldText"))poptin_params[this.name]=null==this.value?"":this.value,poptin_fields.push({type:this.type,name:this.name.split("poptinDesignInput")[1].toLowerCase(),placeholder:this.placeholder,value:this.value});else{var skip=!1,placeholder="hidden"==this.type?this.name:this.placeholder,value=this.value;"radio"!=this.type&amp;&amp;"checkbox"!=this.type||(this.checked||(skip=!0),placeholder=jQ224(this).parentsUntil(".child-field-wrapper").parent().siblings("label.child-field-question").text(),value=jQ224(this).next().text()),jQ224(this).is("select")&amp;&amp;(placeholder=jQ224(this).attr("data-placeholder"),value=jQ224(this).find(":selected").text()),skip||(null==new_extra_fields[this.name]?new_extra_fields[this.name]={type:this.type,name:this.name,placeholder:placeholder,value:value}:"checkbox"==this.type?new_extra_fields[this.name].value=new_extra_fields[this.name].value+", "+value:new_extra_fields[this.name].placeholder=new_extra_fields[this.name].placeholder+", "+placeholder,poptin_fields.push(new_extra_fields[this.name]))}}),new_extra_fields=new_extra_fields||{};try{new_extra_fields=Object.values(new_extra_fields)}catch(err){var new_extra_fields_values=Object.keys(new_extra_fields).map(function(e){return new_extra_fields[e]});new_extra_fields=new_extra_fields_values}var base_fields={text:0,number:0,textarea:0,date:0,url:0,radio:0,checkbox:0,hidden:0,tel:0,select:0};jQ224(new_extra_fields).each(function(i){var this_type=new_extra_fields[i].type,this_name=new_extra_fields[i].name;-1&lt;this_type.indexOf("select")&amp;&amp;(this_type="select"),-1success()"),response.success)try{handleConversionSuccess(poptin,response)}catch(err){monitorError("poptinConversion()-&gt;handleConversionSuccess",err,"OK",response,poptin)}},error:function(XMLHttpRequest,textStatus,errorThrown){monitorError("poptinConversion()-&gt;error()",errorThrown,textStatus,XMLHttpRequest.responseText,poptin)},complete:function(response){showLog("poptinConversion()&gt;complete()"),redirectAfterConversion(poptin)}},"JSON")}function closePoptin(poptin_id,x_close){x_close=x_close||!1;showLog("closePoptin: "+poptin_id),jQ224(".poptin-popup[data-poptin-id="+poptin_id+"], .poptin-popup-background[data-poptin-id="+poptin_id+"]").fadeOut("fast"),(0&lt;jQ224(".poptin-popup[data-poptin-id="+poptin_id+"][data-poptin-location='center-top'][data-poptin-type='bar']").length||"1"==jQ224(".poptin-popup[data-poptin-id="+poptin_id+"]").attr("data-wellcome-screen"))&amp;&amp;fixHtmlPadding(),jQ224(".poptin-embedded[data-id='"+poptin_id+"']").slideUp(),poptin=all_poptins[poptin_id],x_close?removePoptinHtml(poptin_id):setTimeout(function(){removePoptinHtml(poptin_id)},5e3),jQ224("#bgeffect_canvas_"+poptin_id).remove(),PQ.firePoptin(poptin_id),null!=poptin.design_properties.poptin_design_redirect&amp;&amp;1==poptins[poptin_id].poptin_trigger.convert&amp;&amp;redirectToPoptin(poptin)}function removePoptinHtml(poptin_id){jQ224(".poptin-popup[data-poptin-id="+poptin_id+"], .poptin-popup-background[data-poptin-id="+poptin_id+"]").remove()}function redirectAfterConversion(poptin){showLog("redirectAfterConversion: "+poptin.poptin_id);var _this=jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]");null==poptins[poptin.poptin_id].redirect_flag||poptins[poptin.poptin_id].redirect_flag||("true"==(_this=jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]")).attr("data-redirect-poptin")&amp;&amp;13==_this.attr("data-redirect-poptin-id").length||setTimeout(function(){void 0===poptins[poptin.poptin_id].redirect_url||null==poptins[poptin.poptin_id].redirect_flag||poptins[poptin.poptin_id].redirect_flag||poptinRedirectToUrl(poptin,"direct",!1)},50));"mobile"==poptin.poptin_type&amp;&amp;("format_1"==poptin.poptin_format||"format_6"==poptin.poptin_format||"format_11"==poptin.poptin_format||"true"!=_this.attr("data-redirect-poptin")&amp;&amp;null!=poptin.design_properties.poptin_design_redirect)&amp;&amp;setTimeout(function(){poptinRedirectToUrl(poptin,"direct",!1)},50)}function poptinRedirectToUrl(poptin,type,click_type){if(showLog("poptinRedirectToUrl"),poptin.design_properties.poptin_design_redirect_send_form_data)if(showLog("poptinRedirectToUrl1"),"click"==type){var url=jQ224("[data-poptin-id="+poptin.poptin_id+"]").find(click_type).attr("href"),url_array=(url=onlyOneQuestionMark(url,url_conversion_query=""==url_conversion_query?getPoptinConversionFields(poptin):url_conversion_query)).split("?"),url_domain=url_array[0];url_array.shift(),url=url_domain+"?"+url_array.join("&amp;"),jQ224("[data-poptin-id="+poptin.poptin_id+"]").find(click_type).attr("href",url),jQ224("[data-poptin-id="+poptin.poptin_id+"]").find(click_type)[0].click(),poptins[poptin.poptin_id].redirect_flag=!0}else window.location.href=poptins[poptin.poptin_id].redirect_url+url_conversion_query;else if(showLog("poptinRedirectToUrl2"),"click"==type){showLog("poptinRedirectToUrl2.1"),poptins[poptin.poptin_id].redirect_flag=!0;var close_thank_screen_sec=0;null!=poptin.design_properties.poptin_design_thank_screen&amp;&amp;null!=poptin.design_properties.poptin_design_thank_screen_auto_close&amp;&amp;null!=poptin.design_properties.poptin_design_thank_screen_auto_close_sec&amp;&amp;(close_thank_screen_sec=parseInt(poptin.design_properties.poptin_design_thank_screen_auto_close_sec)),setTimeout(function(){jQ224("[data-poptin-id="+poptin.poptin_id+"]").find(click_type)[0].click()},1e3*close_thank_screen_sec)}else showLog("poptinRedirectToUrl2.2"),window.location.href=poptins[poptin.poptin_id].redirect_url}function onlyOneQuestionMark(url,url_conversion_query){return new_conversion_query=url_conversion_query,console.log("url.indexOf('?')",url.indexOf("?")),-1!==url.indexOf("?")&amp;&amp;(new_conversion_query="?"==url_conversion_query[0]?"&amp;"+url_conversion_query.slice(1):url_conversion_query),url+new_conversion_query}function getPoptinConversionFields(poptin){var poptin_fields=new Array,poptin_fields_temp=new Array,field_type_arr={};for(var field_key in jQ224("[data-poptin-id="+poptin.poptin_id+"] #poptinFormSubmit"+poptin.poptin_id+" .poptin-design-fields-form").each(function(){showLog(this.name,this.type,this.value);var field_key="",field_value="",this_count=0,this_type=this.type;0&lt;=this.name.indexOf("poptinDesignInputTextField")?(field_key=this.name.split("poptinDesignInputTextField")[1],field_value="checkbox"==this_type?(field_key="consent",this.checked?"yes":"no"):(field_key=field_key,this.value),this_count=1):0&lt;=this.name.indexOf("poptinDesignInputFreeField")?(field_key=this.name.split("poptinDesignInput")[1],field_value=-1&lt;this.value.indexOf("=&amp;=b:")?this.value.split("=&amp;=b:")[1]:this.value,this_count=field_type_arr[field_key]=(field_type_arr[field_key]||0)+1):0&lt;=this.name.indexOf("poptinDesignRadioField")||0&lt;=this.name.indexOf("poptinDesignCheckboxField")?this.checked&amp;&amp;(field_key=this.name,field_value=-1&lt;this.value.indexOf("=&amp;=b:")?this.value.split("=&amp;=b:")[1]:this.value,this_count=field_type_arr[field_key]=(field_type_arr[field_key]||0)+1):(field_key=null==this.name?this.tagName:this.name,field_value=this.value,this_count=field_type_arr[this.type]=(field_type_arr[this.type]||0)+1),""!=(field_key=field_key.toLowerCase())&amp;&amp;""!=field_value&amp;&amp;(field_value=field_value,poptin_fields_temp[field_key]=poptin_fields_temp[field_key]?poptin_fields_temp[field_key]:new Array,-1&lt;this.name.indexOf("poptinDesignSelectField")&amp;&amp;(this_type="select"),-1&lt;this.name.indexOf("poptinDesignWebsiteField")&amp;&amp;(this_type="url"),poptin_fields_temp[field_key]={count:this_count,type:this_type,value:field_value})}),poptin_fields_temp)if(poptin_fields_temp.hasOwnProperty(field_key)){var value_obj=poptin_fields_temp[field_key];-1&lt;field_key.indexOf("poptindesign")&amp;&amp;(field_key=value_obj.type+"_"+value_obj.count),poptin_fields.push(encodeURI(field_key)+"="+encodeURI(value_obj.value))}return query_fields=0=parseInt(poptin.poptin_format.split("_")[1])||jQ224(document).on("click",'[data-poptin-id="'+poptin.poptin_id+'"] #closeXButton',function(){closePoptinOnXclick(jQ224(this).get(0))}),jQ224("[data-poptin-id="+poptin.poptin_id+"] .close-x-button").show(100),"fullpage"==poptin.poptin_type&amp;&amp;ifScrollVisible()&amp;&amp;jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"] .draggable-container .close-x-button").css({"padding-right":"25px"}),jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]").on("mouseenter",function(event){null==click?poptins[poptin.poptin_id].poptin_trigger.poptin_area_flag_submit=!0:poptin_area_flag_submit=!0}).on("mouseleave",function(event){null==click?poptins[poptin.poptin_id].poptin_trigger.poptin_area_flag_submit=!1:poptin_area_flag_submit=!1}),"lightbox"==poptin.poptin_type&amp;&amp;jQ224(document).click(function(event){jQ224(event.target).closest(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]").length||(null==click?poptins[poptin.poptin_id].poptin_trigger.poptin_area_flag_submit:poptin_area_flag_submit)||jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]").is(":visible")&amp;&amp;(showLog("close poptin"+poptin.poptin_id+" poptin_design_close_on_screen_click"),poptins[poptin.poptin_id].poptin_trigger.close_trigger="bg_click",closePoptin(poptin.poptin_id))})):(setAccessibilityThankAfterSubmit(poptin),null==click?poptins[poptin.poptin_id].poptin_trigger.close_thank_screen_sec=ifUserlangIsHe()&amp;&amp;"click"!=poptin.poptin_target?2:.1:closeThankScreenSec=ifUserlangIsHe()&amp;&amp;"click"!=poptin.poptin_target?2:1),setTimeout(function(){poptins[poptin.poptin_id].poptin_trigger.close_trigger="submit",closePoptin(poptin.poptin_id)},1e3*(null==click?poptins[poptin.poptin_id].poptin_trigger.close_thank_screen_sec:closeThankScreenSec))}function redirectToPoptin(poptin){showLog("redirectToPoptin");var _this=jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]");"true"==_this.attr("data-redirect-poptin")&amp;&amp;13==_this.attr("data-redirect-poptin-id").length&amp;&amp;(poptins[poptin.poptin_id].redirect_flag=!0,$href=api_link+"/APIRequest/click/"+_this.attr("data-redirect-poptin-id"),initiatePullPoptinsRequestOnClick($href,!1,!0))}function handleConversionSuccess(poptin,response){poptin.poptin_type+"_"+poptin.poptin_format!="social_format_2"&amp;&amp;poptin.poptin_type+"_"+poptin.poptin_format!="social_format_6"&amp;&amp;(conversion_id=response.conversion_id,poptinSetCookie("poptin_conversion_"+poptin.poptin_id,conversion_id,365)),void 0!==response.integration.conversion_code&amp;&amp;jQ224(response.integration.conversion_code).each(function($index,value){jQ224("head").append(value)}),-1&lt;window.location.href.indexOf("biu.ac.il")&amp;&amp;"lead"==poptin.poptin_target&amp;&amp;(window.location.href=app_link+"/integrations/barilan/"+response.conversion_id+"/")}function poptinViewed(poptin){setOnceADayCookie(poptin),setPoptinViewedSession(poptin),setPoptinViewedUrl(poptin),setOnceAVisit(poptin),trigger=null==poptin.auto_pilot_trigger?"false":poptin.auto_pilot_trigger,type=ifMobilePoptin?"mobile":"desktop",jQ224.ajax({url:api_link+"/APIRequest/viewed/"+poptin.poptin_id+"?viewer_id="+poptin.viewer_id+"&amp;trigger="+trigger+"&amp;client_id="+getClientId()+"&amp;type="+type,async:!0,cache:!0,dataType:"json",type:"get"},"json").done(function(data){showLog(data)}).fail(function(xhr,status,error){})}function getDataWidthHeight(poptin){var this_poptin_width,this_poptin_height;poptin=(poptin="string"==typeof poptin?poptin:poptin.poptin).trim();var data_width=parseInt(jQ224(poptin).find(".draggable-container").attr("data-width")),data_height=parseInt(jQ224(poptin).find(".draggable-container").attr("data-height"));return isNaN(data_width)||null==data_width||""==data_width||"undefined"==data_width||(this_poptin_width=data_width),isNaN(data_height)||null==data_height||""==data_height||"undefined"==data_height||(this_poptin_height=data_height),{width:this_poptin_width,height:this_poptin_height}}function getPoptinPosition(poptin,click){var poptin_data_width_height=getDataWidthHeight(poptin.poptin),this_poptin_width=poptin_data_width_height.width,this_poptin_height=poptin_data_width_height.height;this_poptin_width&amp;&amp;this_poptin_height&amp;&amp;!isNaN(this_poptin_width)&amp;&amp;!isNaN(this_poptin_height)||("lightbox"==poptin.poptin_type?(this_poptin_width=this_poptin_width||litghtbox_poptin_width,this_poptin_height=this_poptin_height||litghtbox_poptin_height):"bar"==poptin.poptin_type?(this_poptin_width=this_poptin_width||bar_poptin_width,"format_1"==poptin.poptin_format||"format_6"==poptin.poptin_format?this_poptin_height=this_poptin_height||bar_poptin_height:"format_2"==poptin.poptin_format||"format_3"==poptin.poptin_format||"format_7"==poptin.poptin_format||"format_8"==poptin.poptin_format?this_poptin_height=this_poptin_height||bar_poptin_height_2:"format_4"==poptin.poptin_format||"format_9"==poptin.poptin_format?this_poptin_height=this_poptin_height||bar_poptin_height_4:"format_5"!=poptin.poptin_format&amp;&amp;"format_10"!=poptin.poptin_format||(this_poptin_height=this_poptin_height||bar_poptin_height_5)):"sside"==poptin.poptin_type?this_poptin_height="format_1"===poptin.poptin_format||"format_5"===poptin.poptin_format?(this_poptin_width=this_poptin_width||sside_poptin_width,this_poptin_height||sside_poptin_height):"format_4"===poptin.poptin_format||"format_8"===poptin.poptin_format?(this_poptin_width=this_poptin_width||sside_poptin_width_4,this_poptin_height||sside_poptin_height_4):(this_poptin_width=this_poptin_width||sside_poptin_width_2,this_poptin_height||sside_poptin_height):"bside"==poptin.poptin_type?(this_poptin_width=this_poptin_width||bside_poptin_width,this_poptin_height=this_poptin_height||bside_poptin_height):"browsing"==poptin.poptin_type?(this_poptin_width=this_poptin_width||browsing_poptin_width,this_poptin_height=this_poptin_height||browsing_poptin_height):"fullpage"==poptin.poptin_type?(this_poptin_width=this_poptin_width||"100%",this_poptin_height=this_poptin_height||"100%","format_4"!==poptin.poptin_format&amp;&amp;"format_8"!==poptin.poptin_format||(this_poptin_width=this_poptin_width||fullpage_poptin_width_2,this_poptin_height=this_poptin_height||fullpage_poptin_height_2)):"social"==poptin.poptin_type?"format_1"===poptin.poptin_format||"format_5"===poptin.poptin_format?(this_poptin_width=this_poptin_width||social_poptin_width,this_poptin_height=this_poptin_height||social_poptin_height):"format_2"===poptin.poptin_format||"format_6"===poptin.poptin_format?(this_poptin_width=this_poptin_width||social_poptin_width_2,this_poptin_height=this_poptin_height||social_poptin_height_2):"format_4"!==poptin.poptin_format&amp;&amp;"format_8"!==poptin.poptin_format||(this_poptin_width=this_poptin_width||social_poptin_width_4,this_poptin_height=this_poptin_height||social_poptin_height_4):"mobile"==poptin.poptin_type?(this_poptin_width=this_poptin_width||mobile_poptin_width,this_poptin_height=this_poptin_height||mobile_poptin_height,"format_3"===poptin.poptin_format||"format_8"===poptin.poptin_format?(this_poptin_width=this_poptin_width||mobile_poptin_width_2,this_poptin_height=this_poptin_height||mobile_poptin_height_2):"format_4"===poptin.poptin_format||"format_9"===poptin.poptin_format?this_poptin_height=this_poptin_height||mobile_poptin_height_4:"format_5"!==poptin.poptin_format&amp;&amp;"format_10"!==poptin.poptin_format||(this_poptin_height=this_poptin_height||mobile_poptin_height_5)):"embedded"==poptin.poptin_type&amp;&amp;("format_1"===poptin.poptin_format?(this_poptin_width=this_poptin_width||embedded_poptin_width_1,this_poptin_height=this_poptin_height||embedded_poptin_height_1):"format_2"===poptin.poptin_format?(this_poptin_width=this_poptin_width||embedded_poptin_width_2,this_poptin_height=this_poptin_height||embedded_poptin_height_2):"format_3"===poptin.poptin_format?(this_poptin_width=this_poptin_width||embedded_poptin_width_3,this_poptin_height=this_poptin_height||embedded_poptin_height_3):"format_4"===poptin.poptin_format?(this_poptin_width=this_poptin_width||embedded_poptin_width_4,this_poptin_height=this_poptin_height||embedded_poptin_height_4):"format_5"===poptin.poptin_format?(this_poptin_width=this_poptin_width||embedded_poptin_width_5,this_poptin_height=this_poptin_height||embedded_poptin_height_5):"format_6"===poptin.poptin_format?(this_poptin_width=this_poptin_width||embedded_poptin_width_6,this_poptin_height=this_poptin_height||embedded_poptin_height_6):"format_7"===poptin.poptin_format&amp;&amp;(this_poptin_width=this_poptin_width||embedded_poptin_width_7,this_poptin_height=this_poptin_height||embedded_poptin_height_7))),"lightbox"==poptin.poptin_type?(null==click&amp;&amp;(poptins[poptin.poptin_id].poptin_size.height=this_poptin_height,poptins[poptin.poptin_id].poptin_size.width=this_poptin_width),"format_3"!=poptin.poptin_format&amp;&amp;"format_9"!=poptin.poptin_format||(litghtbox_poptin_width=litghtbox_poptin_height),null==click&amp;&amp;(poptins[poptin.poptin_id].position_center={left:(screen_width-litghtbox_poptin_width)/2,up:(screen_height-litghtbox_poptin_height)/2}),poptin_position={left:(screen_width-litghtbox_poptin_width)/2,up:(screen_height-litghtbox_poptin_height)/2}):"bar"==poptin.poptin_type?(null==click&amp;&amp;(poptins[poptin.poptin_id].position_center={left:(screen_width-1920)/2,up:(screen_height-100)/2}),poptin_position={left:(screen_width-1920)/2,up:(screen_height-100)/2}):"mobile"!=poptin.poptin_type||"format_3"!=poptin.poptin_format&amp;&amp;"format_8"!=poptin.poptin_format||(screen_width=Math.min(screen_width,jQ224("body").width()),null==click&amp;&amp;(poptins[poptin.poptin_id].position_center={left:(screen_width-390)/2,up:(screen_height-242)/2}),poptin_position={left:(screen_width-390)/2,up:(screen_height-242)/2})}function windowResize(poptin,click){jQ224(window).resize(function(){("fullpage"!=poptin.poptin_type&amp;&amp;"browsing"!=poptin.poptin_type||"fullpage"!=poptin.poptin_type||-1===jQ224.inArray(poptin.poptin_format,fr_templates.fullpage))&amp;&amp;doResizePoptin(poptin,click)})}function doResizePoptin(poptin,click){var isEmbeddedPoptin="embedded"==poptin.poptin_type,poptin_container=jQ224(isEmbeddedPoptin?".poptin-embedded[data-id='"+poptin.poptin_id+"']":window);if_responsice_flag=!1,showLog("doResizePoptin",poptin);var _this=jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]");poptin.is_new=!!_this.hasClass("new-popup"),"lightbox"==poptin.poptin_type&amp;&amp;isNaN(parseInt(_this.find(".draggable-container").attr("data-width")))&amp;&amp;(_this.find(".draggable-container").attr("data-width",800),_this.find(".draggable-container").attr("data-height",500));var poptin_size_width=poptins[poptin.poptin_id].poptin_size.width,poptin_size_height=poptins[poptin.poptin_id].poptin_size.height;showLog("poptin_size",poptin_size_width,poptin_size_height);var poptin_data_width_height=getDataWidthHeight(poptin.poptin);showLog("poptin data poptin_data_width_height",poptin_data_width_height),poptin_size_width=poptin_data_width_height.width||poptin_size_width,poptin_size_height=poptin_data_width_height.height||poptin_size_height,showLog("poptin_size",poptin_size_width,poptin_size_height),(isNaN(poptin_size_width)||isNaN(poptin_size_height))&amp;&amp;("lightbox"==poptin.poptin_type?(poptin_size_width=litghtbox_poptin_width,poptin_size_height=litghtbox_poptin_height):"bar"==poptin.poptin_type?(poptin_size_width=bar_poptin_width,"format_1"==poptin.poptin_format||"format_6"==poptin.poptin_format?poptin_size_height=bar_poptin_height:"format_2"==poptin.poptin_format||"format_3"==poptin.poptin_format||"format_7"==poptin.poptin_format||"format_8"==poptin.poptin_format?poptin_size_height=bar_poptin_height_2:"format_4"==poptin.poptin_format||"format_9"==poptin.poptin_format?poptin_size_height=bar_poptin_height_4:"format_5"!=poptin.poptin_format&amp;&amp;"format_10"!=poptin.poptin_format||(poptin_size_height=bar_poptin_height_5)):"sside"==poptin.poptin_type?poptin_size_height="format_1"===poptin.poptin_format||"format_5"===poptin.poptin_format?(poptin_size_width=sside_poptin_width,sside_poptin_height):"format_4"===poptin.poptin_format||"format_8"===poptin.poptin_format?(poptin_size_width=sside_poptin_width_4,sside_poptin_height_4):(poptin_size_width=sside_poptin_width_2,sside_poptin_height):"bside"==poptin.poptin_type?(poptin_size_width=bside_poptin_width,poptin_size_height=bside_poptin_height):"browsing"==poptin.poptin_type?(poptin_size_width=browsing_poptin_width,poptin_size_height=browsing_poptin_height):"fullpage"==poptin.poptin_type?(poptin_size_height=poptin_size_width="100%","format_4"!==poptin.poptin_format&amp;&amp;"format_8"!==poptin.poptin_format||(poptin_size_width=fullpage_poptin_width_2,poptin_size_height=fullpage_poptin_height_2)):"social"==poptin.poptin_type?"format_1"===poptin.poptin_format||"format_5"===poptin.poptin_format?(poptin_size_width=social_poptin_width,poptin_size_height=social_poptin_height):"format_2"===poptin.poptin_format||"format_6"===poptin.poptin_format?(poptin_size_width=social_poptin_width_2,poptin_size_height=social_poptin_height_2):"format_4"!==poptin.poptin_format&amp;&amp;"format_8"!==poptin.poptin_format||(poptin_size_width=social_poptin_width_4,poptin_size_height=social_poptin_height_4):"mobile"==poptin.poptin_type?(poptin_size_width=mobile_poptin_width,poptin_size_height=mobile_poptin_height,"format_3"===poptin.poptin_format||"format_8"===poptin.poptin_format?(poptin_size_width=mobile_poptin_width_2,poptin_size_height=mobile_poptin_height_2):"format_4"===poptin.poptin_format||"format_9"===poptin.poptin_format?poptin_size_height=mobile_poptin_height_4:"format_5"!==poptin.poptin_format&amp;&amp;"format_10"!==poptin.poptin_format||(poptin_size_height=mobile_poptin_height_5)):"embedded"==poptin.poptin_type&amp;&amp;("format_1"===poptin.poptin_format?(poptin_size_width=embedded_poptin_width_1,poptin_size_height=embedded_poptin_height_1):"format_2"===poptin.poptin_format?(poptin_size_width=embedded_poptin_width_2,poptin_size_height=embedded_poptin_height_2):"format_3"===poptin.poptin_format?(poptin_size_width=embedded_poptin_width_3,poptin_size_height=embedded_poptin_height_3):"format_4"===poptin.poptin_format?(poptin_size_width=embedded_poptin_width_4,poptin_size_height=embedded_poptin_height_4):"format_5"===poptin.poptin_format?(poptin_size_width=embedded_poptin_width_5,poptin_size_height=embedded_poptin_height_5):"format_6"===poptin.poptin_format?(poptin_size_width=embedded_poptin_width_6,poptin_size_height=embedded_poptin_height_6):"format_7"===poptin.poptin_format&amp;&amp;(poptin_size_width=embedded_poptin_width_7,poptin_size_height=embedded_poptin_height_7))),showLog("poptin_size",poptin_size_width,poptin_size_height),_this.find(".draggable-container").attr("data-width",poptin_size_width),_this.find(".draggable-container").attr("data-height",poptin_size_height),showLog("comparison",poptin_container.width(),poptin_size_width,poptin_container.height(),poptin_size_height);var best_window_width=jQ224("body").width()+20&lt;jQ224(window).width()?Math.min(jQ224(window).width(),jQ224("body").width()):jQ224(window).width();if(this_comparable_width=isEmbeddedPoptin?poptin_container.width():best_window_width,this_comparable_height=isEmbeddedPoptin?0!=poptin_container.height()?poptin_container.height():poptin_size_height:window.innerHeight,showLog("this_comparable",this_comparable_width,this_comparable_height),showLog("poptin_size",poptin_size_width,poptin_size_height),window_width=poptin_container.width(),window_height=isEmbeddedPoptin?poptin_container.height():window.innerHeight,"fullpage"!=poptin.poptin_type){var scale=1,scale_width=Math.min(this_comparable_width/poptin_size_width,scale),scale_height=Math.min(this_comparable_height/poptin_size_height,scale);("lightbox"==poptin.poptin_type||"bside"==poptin.poptin_type||"sside"==poptin.poptin_type||poptin.is_new)&amp;&amp;(scale_width=Math.min(scale_width,scale_height)),showLog("scale_dim",scale_width,scale_height,scale_width);var new_pos_scale={width:poptin_size_width+"px",height:poptin_size_height+"px","max-width":poptin_size_width+"px","max-height":poptin_size_height+"px"};if("browsing"!=poptin.poptin_type&amp;&amp;(new_pos_scale.transform="scale("+scale_width+")"),"embedded"==poptin.poptin_type&amp;&amp;(new_pos_scale["transform-origin"]="center center 0px"),showLog("new_pos_scale",poptin.poptin_type,new_pos_scale),_this.css(new_pos_scale),_this.attr("data-scale",scale_width),"bside"!=poptin.poptin_type&amp;&amp;"sside"!=poptin.poptin_type||(poptin.design_properties.poptin_location.indexOf("left")&lt;0?_this.css({left:"auto",right:(this_comparable_width-scale_height*poptin_size_width)/2+"px"}):_this.css({right:"auto",left:(this_comparable_width-scale_height*poptin_size_width)/2+"px"}),_this.css({top:(this_comparable_height-scale_height*poptin_size_height)/2+"px"})),"sside"==poptin.poptin_type&amp;&amp;null!=_this.get(0)&amp;&amp;(_this.get(0).style.setProperty("transform-origin",""),this_comparable_height&lt;poptin_size_height)){var poptin_location=poptin.design_properties.poptin_location;0&lt;=poptin_location.indexOf("midlle")&amp;&amp;(_this.get(0).style.setProperty("top","0px","important"),_this.get(0).style.setProperty("bottom","auto","important"),_this.get(0).style.setProperty("transform-origin",poptin_location.split("-")[0]+" top 0","important")),0this_comparable_width?this_css={left:(poptin_size_width-this_comparable_width)/-2+"px",right:""}:this_css={left:"0px",right:"0px"},_this.css(this_css),_this.animate({top:(poptin_size_height-this_comparable_height)/-2+"px"},poptin_animation_speed),_this.css(this_css)):"bar"==poptin.poptin_type?(_this.css({left:(poptin_size_width-jQ224(window).width())/-2+"px"}),"center-top"==poptin.design_properties.poptin_location?(_this.css({top:(poptin_size_height-scale_width*poptin_size_height)/-2+"px"}),barHtmlPadding(poptin)):"center-bottom"==poptin.design_properties.poptin_location?_this.css({top:"auto"}):_this.css({top:window.innerHeight-(scale_width*poptin_size_height+(1-scale_width)*poptin_size_height/2)+"px"}),_this.css("right","")):"bside"==poptin.poptin_type||("mobile"==poptin.poptin_type?("100%"!==jQ224("html").css("min-width")&amp;&amp;_this.css({left:(poptin_size_width-scale_width*poptin_size_width)/-2+"px"}),_this.css("right","")):poptin.poptin_type)}else"fullpage"!=poptin.poptin_type&amp;&amp;poptin.poptin_type;if("lightbox"==poptin.poptin_type){this_poptin_width=parseInt(_this.find(".draggable-container").attr("data-width")),this_poptin_height=parseInt(_this.find(".draggable-container").attr("data-height")),poptin_size_width=this_poptin_width||poptin_size_width,poptin_size_height=this_poptin_height||poptin_size_height;scale=1;this_comparable_width&lt;poptin_size_width&amp;&amp;(this_comparable_width*=.9);scale_width=Math.min(this_comparable_width/poptin_size_width,scale),scale_height=Math.min(this_comparable_height/poptin_size_height,scale);new_scale=Math.min(scale_width,scale_height),poptins[poptin.poptin_id].poptin_scale=new_scale,_this.attr("data-scale",scale_width),void 0!==_this.get(0)&amp;&amp;(_this.get(0).style.setProperty("width",poptin_size_width+"px","important"),_this.get(0).style.setProperty("max-width",poptin_size_width+"px","important"),_this.get(0).style.setProperty("height",poptin_size_height+"px","important"))}if("embedded"==poptin.poptin_type){var embedded_left=(_this.parent().width()-poptin_size_width)/2,embedded_top=(_this.parent().height()-poptin_size_height)/2;(embedded_left=0&lt;=embedded_left?0:embedded_left)poptin_size_width?this_comparable_width/poptin_size_width:Math.min(this_comparable_width/poptin_size_width,scale),new_scale=scale_width,poptins[poptin.poptin_id].poptin_scale=new_scale,_this.css({transform:"scale("+new_scale+")",left:(this_comparable_width-poptin_size_width)/2}),_this.attr("data-scale",scale_width),void 0!==_this.get(0)&amp;&amp;(_this.get(0).style.setProperty("width",poptin_size_width+"px","important"),_this.get(0).style.setProperty("max-width",poptin_size_width+"px","important"),_this.get(0).style.setProperty("height",poptin_size_height+"px","important"))}if("fullpage"==poptin.poptin_type){ieVersion=GetIEVersion(),_this.addClass("ie"+ieVersion),pop_wrappers_container=_this.find(".draggable-container &gt; form, .poptin_thank_you_screen"),pop_wrappers_container.css("opacity","0");try{clearTimeout(newScaleTimeout[poptin.poptin_id])}catch(error){}var this_format=parseInt(_this.attr("data-poptin-format").split("_")[1]);newScaleTimeout[poptin.poptin_id]=this_format&amp;&amp;this_format&lt;9?setTimeout(function(){poptin_size_width=1920,poptin_size_height=1080;this_comparable_widthpoptin_size_width){var new_left=(this_comparable_width-poptin_size_width*new_scale)/2/new_scale;jQ224(this).css({position:"fixed",right:"auto",left:this_original_pos+new_left+"px"})}}),pop_wrappers_container.animate({opacity:1},100)})},250):setTimeout(function(){jQ224(window).width()poptin_size_width&amp;&amp;_this.css({width:"100%","max-width":"100%"}),window.innerHeight&gt;poptin_size_height&amp;&amp;(_this.css({height:"100%"}),_this.find(".draggable-container").first().css({height:"100%","max-height":"100%"})),window.innerHeight&lt;poptin_size_height&amp;&amp;_this.css({height:window.innerHeight+"px"});var const_width,const_height,min_el_left=null,max_el_right=null,min_el_top=null,max_el_bottom=null;jQ224("[data-poptin-id="+poptin.poptin_id+"] #poptinFormSubmit"+poptin.poptin_id+", [data-poptin-id="+poptin.poptin_id+"] .poptin_thank_you_screen").each(function(){jQ224(this).children().each(function(i){return jQ224(this).is(".draggable, .inputs-container, .redirect-url-blank")?!!jQ224(this).is(":visible")&amp;&amp;(this_left=jQ224(this).position().left,this_top=jQ224(this).position().top,this_right=this_left+jQ224(this).width(),this_bottom=this_top+jQ224(this).height(),min_el_left=null!=min_el_left?Math.min(min_el_left,this_left):this_left,min_el_top=null!=min_el_top?Math.min(min_el_top,this_top):this_top,max_el_right=null!=max_el_right?Math.max(max_el_right,this_right):this_right,void(max_el_bottom=null!=max_el_bottom?Math.max(max_el_bottom,this_bottom):this_bottom)):(jQ224(this).remove(),!1)}),ifMobilePoptin&amp;&amp;(min_el_left-=jQ224(window).width()/10,max_el_right+=jQ224(window).width()/10)}),"format_3"!=poptin.poptin_format&amp;&amp;"format_4"!=poptin.poptin_format||(responsive_fullpage_width=!0),responsive_fullpage_height=!0,const_height="format_1"==poptin.poptin_format?(const_width=600,950):"format_2"==poptin.poptin_format?(const_width=900,950):"format_3"==poptin.poptin_format?(const_width=1130,1e3):"format_4"==poptin.poptin_format?(const_width=1130,1e3):(const_width=1920,1080);var scale_width=1,scale_height=1;jQ224(window).width()&lt;const_width&amp;&amp;(scale_width=Math.min(jQ224(window).width()/const_width,1)),window.innerHeight&lt;const_height&amp;&amp;(scale_height=Math.min(window.innerHeight/const_height,1)),new_scale=Math.min(scale_width,scale_height);var this_poptin_container=_this.find("#poptinDraggableContainer"),this_poptin_thank_you=_this.find("#poptinThankYouScreen");setTimeout(function(){container_width="100%",container_margin="auto",fullpage_poptin_widthwindow.innerWidth){var new_left=window.innerWidth-jQ224(this).width()-10;jQ224(this).css({position:"fixed",right:"auto",left:new_left+"px"})}}),pop_wrappers_container.animate({opacity:1},100)})},500)},500)},100)}}function barHtmlPadding(poptin){setTimeout(function(){showLog("barHtmlPadding()"),padding_top=jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]").height()*parseFloat(jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]").attr("data-scale")),jQ224("html").animate({"padding-top":Math.floor(padding_top)+"px"},300)},300)}function getReferrer(){return poptinGetCookie("poptin_referrer")?-1!==poptinGetCookie("poptin_referrer").indexOf(window.location.host)?"":poptinGetCookie("poptin_referrer"):""}function getReleventCookie(){cookies=document.cookie.split(";"),relevent_cookie="";for(var i=0;i&lt;cookies.length;i++)-1!==cookies[i].split("=")[0].indexOf("poptin")&amp;&amp;(relevent_cookie+=cookies[i]);return relevent_cookie}function getAllCookies(){cookies=document.cookie.split(";"),array=[];for(var i=0;i&lt;cookies.length;i++)pair=cookies[i].split("="),$key=null==pair[0]?"":pair[0].trim(),$value=null==pair[1]?"":pair[1].trim(),""!=$key&amp;&amp;array.push({key:$key,value:$value});return array}function getWebsiteCookie(){w_c=document.cookie.split(";"),r_w_c="";for(var i=0;i&lt;w_c.length;i++)-1==w_c[i].split("=")[0].indexOf("poptin")&amp;&amp;(r_w_c+=w_c[i]);return r_w_c}function getAutoPilots(){ap_triggers="";try{"undefined"!=typeof Storage?jQ224.each(window.sessionStorage,function(key,index){-1!==key.indexOf("apt_")&amp;&amp;(ap_triggers+=key+":"+index+"|")}):showLog("Sorry! No Web Storage support..")}catch(err){showLog(err)}return ap_triggers}function getOriginLandingPage(){lp="";try{"undefined"!=typeof Storage?null!=window.sessionStorage.getItem("poptin_origin_landing_page")&amp;&amp;null!=window.sessionStorage.getItem("poptin_origin_landing_page")&amp;&amp;(lp=window.sessionStorage.getItem("poptin_origin_landing_page")):showLog("Sorry! No Web Storage support..")}catch(err){showLog(err)}return lp}function getPoptinViewedUrl(poptin){lp=window.location.href;try{"undefined"!=typeof Storage?null!=window.sessionStorage.getItem("poptin_viewed_url_"+poptin.poptin_id)&amp;&amp;null!=window.sessionStorage.getItem("poptin_viewed_url_"+poptin.poptin_id)&amp;&amp;(lp=window.sessionStorage.getItem("poptin_viewed_url_"+poptin.poptin_id)):showLog("Sorry! No Web Storage support..")}catch(err){showLog(err)}return lp}function deafultCookie(){(all_poptins instanceof Object||all_poptins instanceof Array)&amp;&amp;jQ224.each(all_poptins,function(key,index){null!=this.d_f_a&amp;&amp;this.d_f_a&amp;&amp;-1&lt;this.d_f_r.indexOf("display_once_every_few_visiting_4")&amp;&amp;(poptinCheckCookie("poptin_d_r_v_"+this.poptin_id)?window.sessionStorage.getItem("first_visit_"+this.poptin_id)||(value=parseInt(poptinGetCookie("poptin_d_r_v_"+this.poptin_id))+1,poptinSetCookie("poptin_d_r_v_"+this.poptin_id,value,365),window.sessionStorage.setItem("first_visit_"+this.poptin_id,1)):(poptinSetCookie("poptin_d_r_v_"+this.poptin_id,0,365),window.sessionStorage.setItem("first_visit_"+this.poptin_id,1))),null!=this.d_f_a&amp;&amp;this.d_f_a&amp;&amp;-1&lt;this.d_f_r.indexOf("display_once_every_few_days_3")&amp;&amp;(poptinCheckCookie("poptin_d_a_x_v_"+this.poptin_id)||(value=getCurrentDate(),poptinSetCookie("poptin_d_a_x_v_"+this.poptin_id,value,365))),window.sessionStorage.getItem("poptin_pageviews_"+this.poptin_id)?window.sessionStorage.setItem("poptin_pageviews_"+this.poptin_id,parseInt(window.sessionStorage.getItem("poptin_pageviews_"+this.poptin_id))+1):window.sessionStorage.setItem("poptin_pageviews_"+this.poptin_id,0),poptinCheckCookie("poptin_o_v_"+this.poptin_id)||setOldVisitorCookie(this),setInterval(function(){setOldVisitorCookie(this)},6e4),poptinCheckCookie("poptin_session_account_"+this.account_id)||poptinSetCookie("poptin_session_account_"+this.account_id,!0,30)}),poptinCheckCookie("poptin_session")||poptinSetCookie("poptin_session",!0,30),"undefined"!=typeof Storage&amp;&amp;null==window.sessionStorage.getItem("poptin_every_visit_session")&amp;&amp;window.sessionStorage.setItem("poptin_every_visit_session",Date())}function setOldVisitorCookie(poptin){if(!poptinCheckCookie("poptin_o_v_"+poptin.poptin_id)&amp;&amp;void 0!==poptin&amp;&amp;poptin.display){var value=poptin.viewer_id;poptinSetCookie("poptin_o_v_"+poptin.poptin_id,value,.02083333333333333)}}function getEveryVisitSession(){return"undefined"!=typeof Storage?null==window.sessionStorage.getItem("poptin_every_visit_session")?"poptin_every_visit_session=true":"poptin_every_visit_session=false":"poptin_every_visit_session=true"}function getPoptinViewedSession(){return poptin_viewed_session="",once=1,"undefined"!=typeof Storage?(jQ224.each(sessionStorage,function(key,value){0&lt;=key.indexOf("poptin_viewed_session")&amp;&amp;(1==once?(poptin_viewed_session+=key+"="+value,once=0):poptin_viewed_session+=" "+key+"="+value)}),""==poptin_viewed_session?"poptin_viewed_session=false":poptin_viewed_session):"poptin_viewed_session=false"}function getPoptinNewUser(){return"undefined"!=typeof Storage?null==window.sessionStorage.getItem("poptin_new_user")?"":"poptin_new_user=true":""}function setUserId(){poptinCheckCookie("poptin_user_id")||poptinSetCookie("poptin_user_id",Math.random().toString(36).slice(-16),365)}function getUserId(){return poptinCheckCookie("poptin_user_id")?poptinGetCookie("poptin_user_id"):""}function getUserCountryCode(){return!!poptinCheckCookie("poptin_user_country_code")&amp;&amp;poptinGetCookie("poptin_user_country_code")}function getPoptinPageviews(poptin_id){return null==window.sessionStorage.getItem("poptin_pageviews_"+poptin_id)?"error":parseInt(window.sessionStorage.getItem("poptin_pageviews_"+poptin_id))}function setPoptinSession(){poptinCheckCookie("poptin_user_id")?(poptinCheckCookie("poptin_old_user")||(setNewUserSession(),setOldUserSession()),getOnceAVisitCookies()):poptinCheckCookie("poptin_old_user")||(setNewUserSession(),setOldUserSession(),setUserId())}function setOldUserSession(){poptinCheckCookie("poptin_old_user")||(poptinSetCookie("poptin_old_user",!0,2),setInterval(function(){poptinSetCookie("poptin_old_user",!0,2)},6e4))}function setNewUserSession(){"undefined"!=typeof Storage&amp;&amp;null==window.sessionStorage.getItem("poptin_new_user")&amp;&amp;window.sessionStorage.setItem("poptin_new_user",Date())}function setOnceADayCookie(poptin){if(!poptinCheckCookie("poptin_o_a_d_"+poptin.poptin_id)&amp;&amp;void 0!==poptin&amp;&amp;poptin.display&amp;&amp;poptin.cookie!="poptin_o_a_d_"+poptin.poptin_id){var value=poptin.viewer_id;poptinSetCookie("poptin_o_a_d_"+poptin.poptin_id,value,1)}}function setPoptinViewedSession(poptin){"undefined"!=typeof Storage&amp;&amp;null==window.sessionStorage.getItem("poptin_viewed_session_"+poptin.poptin_id)&amp;&amp;window.sessionStorage.setItem("poptin_viewed_session_"+poptin.poptin_id,!0)}function setClosePoptinOnXCookie(poptin_id){poptinCheckCookie("poptin_c_p_o_x_c_"+poptin_id)||void 0===poptin_id||poptinSetCookie("poptin_c_p_o_x_c_"+poptin_id,poptin_id,1)}function setOnceAVisit(poptin){if(void 0!==poptin&amp;&amp;null!=poptin.d_f_a&amp;&amp;poptin.d_f_a&amp;&amp;-1&lt;poptin.d_f_r.indexOf("display_once_a_visitor_2")){var value=poptin.viewer_id;poptinSetCookie("poptin_o_a_v_"+poptin.poptin_id,value,.020833333),setInterval(function(){poptinSetCookie("poptin_o_a_v_"+poptin.poptin_id,value,.020833333)},6e4)}}function getOnceAVisitCookies(){cookies=document.cookie.split(";");for(var pop={},i=0;i&lt;cookies.length;i++)-1!==cookies[i].split("=")[0].indexOf("poptin_o_a_v_")&amp;&amp;(pop.poptin_id=cookies[i].split("poptin_o_a_v_")[1].split("=")[0],pop.viewer_id=cookies[i].split("=")[1],setOnceAVisit(pop))}function poptinSetCookie(cname,cvalue,exdays){var d=new Date;d.setTime(d.getTime()+24*exdays*60*60*1e3);var expires="expires="+d.toUTCString();document.cookie=cname+"="+cvalue+"; "+expires+"; path=/; SameSite=Lax"}function poptinGetCookie(cname){for(var name=cname+"=",ca=document.cookie.split(";"),i=0;i&lt;ca.length;i++){for(var c=ca[i];" "==c.charAt(0);)c=c.substring(1);if(0==c.indexOf(name))return c.substring(name.length,c.length)}return""}function resetReleventCookie(poptin){poptin.cookie=="poptin_d_r_v_"+poptin.poptin_id&amp;&amp;poptinSetCookie("poptin_d_r_v_"+poptin.poptin_id,0,365),poptin.cookie=="poptin_d_a_x_v_"+poptin.poptin_id&amp;&amp;(value=getCurrentDate(),poptinSetCookie("poptin_d_a_x_v_"+poptin.poptin_id,value,365))}function poptinCheckCookie(cname){var cookie=poptinGetCookie(cname);return""!=cookie&amp;&amp;null!==cookie}function poptinDeleteCookie(cname){document.cookie=cname+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;"}function getCurrentDate(){return today=new Date,dd=today.getDate(),mm=today.getMonth()+1,yyyy=today.getFullYear(),dd&lt;10&amp;&amp;(dd="0"+dd),mm=this_effect_poptin.parent().offset().top-window.innerHeight/1.5&amp;&amp;!this_effect_poptin.hasClass("scrolled")&amp;&amp;(this_effect_poptin.addClass("scrolled"),this_effect_poptin.css("transform",null!=final_scale?"scale("+final_scale+")":"scale(1)")))})}else{if(poptin.poptin_type+"_"+poptin.poptin_format=="social_format_3"||poptin.poptin_type+"_"+poptin.poptin_format=="social_format_7")return!1;selectedEffect=poptin.design_properties.poptin_design_entry_effect.split("-")[1];var options={};jQ224(".poptin-popup-background[data-poptin-id="+poptin.poptin_id+"]").outerWidth,jQ224(".poptin-popup-background[data-poptin-id="+poptin.poptin_id+"]").outerHeight;switch(selectedEffect){case"scale":options={percent:10};break;case"size":options={to:{width:100,height:100}};break;case"up":options={direction:"up"},selectedEffect="slide";break;case"down":options={direction:"down"},selectedEffect="slide";break;case"left":options={direction:"left"},selectedEffect="slide";break;case"right":options={direction:"right"},selectedEffect="slide"}jQ224(".poptin-popup-background[data-poptin-id="+poptin.poptin_id+"]").css("display","block"),this_effect_poptin_container.css({display:"none"}),this_effect_poptin.css({display:"block"});var drag_cont=".poptin-popup[data-poptin-id='"+poptin.poptin_id+"'] .draggable-container";if(poptinAfterPageLoad&amp;&amp;"noJqueryUi"==poptinAfterPageLoad)showLog("No jQuery UI effects"),jQ224(drag_cont).show(500,function(){poptinVisible(poptin.poptin_id)});else try{drag_cont=".poptin-popup[data-poptin-id="+poptin.poptin_id+"] .draggable-container";void 0!==window.$&amp;&amp;void 0!==window.$.ui?(showLog("window.$2"),jQ224(drag_cont).addClass("animating"),$(drag_cont).show(selectedEffect,options,500,function(){jQ224(drag_cont).removeClass("animating"),poptinVisible(poptin.poptin_id)})):void 0!==window.jQuery&amp;&amp;void 0!==window.jQuery.ui?(showLog("window.jQuery2"),jQ224(drag_cont).addClass("animating"),jQuery(drag_cont).show(selectedEffect,options,500,function(){jQ224(drag_cont).removeClass("animating"),poptinVisible(poptin.poptin_id)})):void 0!==jQ224.ui?(showLog("jQ224.ui3"),jQ224(drag_cont).addClass("animating"),jQ224(drag_cont).delay(100).show(selectedEffect,options,500,function(){jQ224(drag_cont).removeClass("animating"),poptinVisible(poptin.poptin_id)})):(showLog("no ui3"),jQ224(drag_cont).addClass("animating"),jQ224(drag_cont).delay(100).slideDown(500,function(){jQ224(drag_cont).removeClass("animating"),poptinVisible(poptin.poptin_id)}))}catch(err){showLog("jQ224.ui err3"),jQ224(drag_cont).show(500,function(){poptinVisible(poptin.poptin_id)})}setTimeout(function(){jQ224(drag_cont).removeClass("animating"),"lightbox"==poptin.poptin_type&amp;&amp;jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"] .draggable-container").animate({top:"0px",left:"0px"},300),jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]").css({"box-shadow":poptin.poptin_type+"_"+poptin.poptin_format=="social_format_2"||"browsing"==poptin.poptin_type||"lightbox"==poptin.poptin_type&amp;&amp;"format_3"==poptin.poptin_format||"lightbox"==poptin.poptin_type&amp;&amp;"format_9"==poptin.poptin_format||"bar"==poptin.poptin_type&amp;&amp;"center-top"==poptin.design_properties.poptin_location||poptin.poptin_type+"_"+poptin.poptin_format=="mobile_format_3"||poptin.poptin_type+"_"+poptin.poptin_format=="mobile_format_7"||poptin.poptin_type+"_"+poptin.poptin_format=="lightbox_format_4"||poptin.poptin_type+"_"+poptin.poptin_format=="lightbox_format_10"?"":"0 3px 9px rgba(0,0,0,.5)"}),poptinFormValidations(poptin)},600)}}}function ifPageRefreshed(){return!(!window.performance||1!=performance.navigation.type)}PoptinQueue=function(){this.active=!1,this.poptins=[],this.ifActive=function(){return this.active},this.getActive=function(){return this.active},this.setActive=function(val){this.active=val},this.ifRelevent=function(poptin){return"lightbox"==poptin.poptin_type||"fullpage"==poptin.poptin_type},this.checkQueue=function(poptin,click){var poptin_container="embedded"!=poptin.poptin_type?jQ224("body"):jQ224(".poptin-embedded[data-id='"+poptin.poptin_id+"']");if(this.getActive())if(this.ifRelevent(poptin));else{if(0&lt;jQ224('[data-poptin-id="'+poptin.poptin_id+'"]').length)return!1;poptin_container.append(poptin.poptin),poptins[poptin.poptin_id].poptin=poptin.poptin,setPoptin(poptin,click)}else{if(this.ifRelevent(poptin)&amp;&amp;this.setActive(!0),0poptinConversion()",err,"","",poptin),redirectAfterConversion(poptin)}}var poptin_current_url=location.href;function animateButton(poptin){var poptinButton=jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"] .froala-editor-button");poptinButton.length&amp;&amp;void 0!==poptinButton.attr("data-poptin-animate")&amp;&amp;null!=poptinButton.attr("data-poptin-animate")&amp;&amp;setInterval(function(){poptinButton.toggleClass("no-animated")},3e3)}function loadbgAnimationOverlay(poptin){var handles=[],bganmval=jQ224(".poptin-popup[data-poptin-id="+poptin.poptin_id+"]").attr("data-bg-animation"),selector="modelBackdrip",canvas_id="bgeffect_canvas_"+poptin.poptin_id;if(void 0!==bganmval&amp;&amp;""!=typeof bganmval){switch(bganmval){case"wheel":handles.push(new Wheel(25e-5*window.innerWidth*window.innerHeight,selector,canvas_id));break;case"starry-sky":handles.push(new StarrySky(selector,canvas_id));break;case"ball":handles.push(new Balls(selector,canvas_id)),handles[handles.length-1].play();break;case"snow":handles.push(new Snows(parseInt(5e-4*window.innerWidth*window.innerHeight),selector,canvas_id)),handles[handles.length-1].start();break;case"rain":handles.push(new Rain("01",selector,canvas_id));break;case"confetti":startConfetti(selector,canvas_id)}"starry-sky"==bganmval?jQ224("#"+selector+"[data-poptin-id="+poptin.poptin_id+"]").css("opacity",.7):jQ224("#"+selector+"[data-poptin-id="+poptin.poptin_id+"]").css("opacity",.5),setInterval(function(){jQ224("#bgeffect_canvas_"+poptin.poptin_id).length||loadbgAnimationOverlay(poptin)},10)}}"undefined"!=typeof poptin_single_page_app&amp;&amp;poptin_single_page_app&amp;&amp;(document.body.addEventListener("click",function(){requestAnimationFrame(function(){showLog("old location: "+poptin_current_url),poptin_current_url!==location.href&amp;&amp;(poptinStarted=!1,jQ224(document).unbind(),runPoptinNow()),showLog("new location: "+(poptin_current_url=location.href))})},!0),window.onpopstate=function(event){showLog("old location: "+poptin_current_url),poptin_current_url!==document.location&amp;&amp;(poptinStarted=!1,jQ224(document).unbind(),runPoptinNow()),showLog("new location: "+(poptin_current_url=document.location))})}</div></div>