function setCookie(cname,cvalue,exdays){var d=new Date();d.setTime(d.getTime()+(exdays*24*60*60*1000));var expires="expires="+d.toUTCString();document.cookie=cname+"="+cvalue+"; "+expires} function getCookie(cname){var name=cname+"=";var ca=document.cookie.split(';');for(var i=0;i0){for(n=0;n()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;return re.test(email)} function fireFast(countdownConfig){runCounter++;var showCountdownNow=showCountdownYet(countdownConfig);if(showCountdownNow==0){}else if(runCounter<2){domready(function(){setStyling(countdownConfig);showCountdown(countdownConfig)})}} function clickFloatingBar(url,e){if(e.target.parentNode.id==='closebar'){return!1} if(document.documentElement.clientWidth<767){e.preventDefault();window.top.location=url}} function generateFloatBarInlineStyleCss(appConfig,countdownConfig,isPreview){var fileref=document.createElement("link");fileref.rel="stylesheet";fileref.type="text/css";fileref.href=appConfig.domain+"/demo/static/floatingbar.css";document.getElementsByTagName("head")[0].appendChild(fileref);var customcss='';var ctaMaxWidth='initial';if(countdownConfig.countdownType===2){customcss+=''} if(countdownConfig.countdownType==3){customcss+=''} if(countdownConfig.floatingBarBottom){customcss+=''}else{customcss+=''} if(window.CSS&&window.CSS.supports&&window.CSS.supports('(--foo: red)')){document.documentElement.style.setProperty('--floatingBarBackgroundColor',countdownConfig.floatingBarBackgroundColor);if(countdownConfig.ctaShow){document.documentElement.style.setProperty('--floatingCtaInnerMaxWidth','1200px');ctaMaxWidth='1200px'} if(countdownConfig.ctaShow&&countdownConfig.countdownType===2) document.documentElement.style.setProperty('--fbarMainMaxWidth','350px');else if(countdownConfig.ctaShow||isPreview) document.documentElement.style.setProperty('--fbarMainMaxWidth','400px');else document.documentElement.style.setProperty('--fbarMainMaxWidth','450px');if(isPreview){document.documentElement.style.setProperty('--isPreviewDisplay','block')} document.documentElement.style.setProperty('--ctaButtonColor2',countdownConfig.ctaButtonColor2);document.documentElement.style.setProperty('--ctaButtonColor',countdownConfig.ctaButtonColor);if(countdownConfig.ctaShow) document.documentElement.style.setProperty('--ctaButtonDisplay','block');if(countdownConfig.countdownType===2){if(isPreview){document.documentElement.style.setProperty('--ctaButtonMarginLeft','0px')}else{document.documentElement.style.setProperty('--ctaButtonMarginLeft','20px')}} document.documentElement.style.setProperty('--ctaButtonTextColor',countdownConfig.ctaTextColor);loadCss(countdownConfig.floatingBarCssUrl);document.documentElement.style.setProperty('--floatingBarTextFontFamily',countdownConfig.floatingBarTextFontFamily);document.documentElement.style.setProperty('--floatingBarColor',countdownConfig.floatingBarColor);document.documentElement.style.setProperty('--floatingBarTextFontSize',countdownConfig.floatingBarTextFontSize+"px");var fbarTextLength=countdownConfig.floatingBarText.length;console.log('fbar text length',fbarTextLength);if(fbarTextLength>90){console.log('over 99');document.documentElement.style.setProperty('--floatingBarTextSize','1.5vw');document.documentElement.style.setProperty('--floatingBarLineHeight','2vw');document.documentElement.style.setProperty('--floatingBarTextSizeLarge','1vw');document.documentElement.style.setProperty('--floatingBarLineHeightLarge','1.55vw');document.documentElement.style.setProperty('--floatingBarTextSizeExtraLarge','.75vw');document.documentElement.style.setProperty('--floatingBarLineHeightExtraLarge','1.25vw');document.documentElement.style.setProperty('--floatingBarTextSizeNoCTA1300','1.5vw');document.documentElement.style.setProperty('--floatingBarLineHeightNoCTA1300','1.75vw');customcss+=''}else if(fbarTextLength>70){console.log('over 70');document.documentElement.style.setProperty('--floatingBarTextSize','1.5vw');document.documentElement.style.setProperty('--floatingBarLineHeight','2vw');document.documentElement.style.setProperty('--floatingBarTextSizeLarge','1.25vw');document.documentElement.style.setProperty('--floatingBarLineHeightLarge','1.75vw');document.documentElement.style.setProperty('--floatingBarTextSizeExtraLarge','1vw');document.documentElement.style.setProperty('--floatingBarLineHeightExtraLarge','1.5vw');document.documentElement.style.setProperty('--floatingBarTextSizeNoCTA1300','1.75vw');document.documentElement.style.setProperty('--floatingBarLineHeightNoCTA1300','2.25vw');customcss+=''}else{console.log('under 70')}}else{var isEdge=window.navigator.userAgent.indexOf("Edge/14")>-1;customcss+=''} var containingClass='cta-button-inactive';if(countdownConfig.ctaShow){containingClass='cta-button-active'} var firstLine="
";if(countdownConfig.ctaShow){firstLine="
"} return customcss+firstLine+""+"
"+countdownConfig.floatingBarText+"
"+(countdownConfig.countdownType===3?"
":(isPreview?"
":''))+((isPreview||countdownConfig.ctaShow)?("
"):'')+"
"} function loadFloatingBarHTML(floatingBarSelector,floatingBarHtml) {if(floatingBarAlreadyLoaded)return;var floatingBarLocation=document.querySelector(floatingBarSelector),d=document.createElement('div');d.style.display='none';d.innerHTML=floatingBarHtml;floatingBarLocation.appendChild(d);d.setAttribute('style','display:block !important');floatingBarAlreadyLoaded=1} function replaceDeadlineText(countdownConfig){if(countdownConfig.useDeadlineText){var deadlineText=countdownConfig.deadlineText;var dText=document.getElementsByClassName('deadlinetext');if(dText.length>0){for(n=0;nmin)?((v-1} function getClientParams(data){var config=getLegacyParams(data);var pParams=getPageUrlParams(config);if(typeof pParams!=='undefined') {appConfig.debug=pParams.debug;appConfig.promocode=pParams.promocode;showLog(pParams,'Page params:')} config.clientUrl=appConfig.clientUrl;if(typeof config.prefill!=='undefined') {appConfig.prefill=config.prefill} if(typeof config.promocode!=='undefined') {appConfig.promocode=config.promocode} if(typeof config.debug!=='undefined') {appConfig.debug=1} if(typeof config.baseUrl!=='undefined') {appConfig.domain='//'+config.baseUrl} if(typeof config.promotionId!=='undefined') {appConfig.promotionId=config.promotionId} if(typeof config.userIdHash!=='undefined') {appConfig.userIdHash=config.userIdHash} if(typeof config.pageFromUrl!=='undefined') {appConfig.pageFromUrl=config.pageFromUrl} if(typeof config.parentPageFromUrl!=='undefined') {appConfig.parentPageFromUrl=config.parentPageFromUrl} return config} function getLegacyParams(data) {var dWrap=document.querySelectorAll('[data-scriptid]');var stepOne;var stepTwo;var keys;var extraConfig;var splittedURL;if(dWrap.length>0){var dfScript=dWrap}else{var dfScript=document.getElementsByTagName('script')} console.log(dfScript);for(var i=0;i=2){data.userIdHash=splittedURL[0];data.pageFromUrl=splittedURL[1];if(typeof splittedURL[2]!=='undefined'){data.parentPageFromUrl=splittedURL[2]}} return data}}} return data} function getPageUrlParams(data) {if(appConfig.clientUrl&&appConfig.clientUrl.search!==null){var pageParams=parseQueryStr(appConfig.clientUrl.search);var keys=Object.keys(pageParams),len=keys.length,i=0,prop,value;while(i-1};Element.prototype.dfHas=function(child){var childs=this.childNodes;for(var m=0;m=1){clearInterval(timer)} element.style.opacity=op;element.style.filter='alpha(opacity='+op*100+")";op+=op*0.1},10);do_resize()};function loadCss(url) {var head=document.head,link=document.createElement('link');link.type='text/css';link.rel='stylesheet';link.media='screen';link.href=url;head.appendChild(link)} function getDynamicTimeRemaining(endtime){endtime=endtime.replace(/-/g,"/");var nowDate=new Date();var nowDateUtc=new Date(nowDate.getUTCFullYear(),nowDate.getUTCMonth(),nowDate.getUTCDate(),nowDate.getUTCHours(),nowDate.getUTCMinutes(),nowDate.getUTCSeconds());var endDate=new Date(Date.parse(endtime));var t=Date.UTC(endDate.getUTCFullYear(),endDate.getUTCMonth(),endDate.getUTCDate(),endDate.getUTCHours(),endDate.getUTCMinutes(),endDate.getUTCSeconds())-nowDateUtc;var seconds=Math.floor((t/1000)%60);var minutes=Math.floor((t/1000/60)%60);var hours=Math.floor((t/(1000*60*60))%24);var days=Math.floor(t/(1000*60*60*24));return{'total':t,'days':days,'hours':hours,'minutes':minutes,'seconds':seconds}} function hideMessages() {var messages=document.querySelectorAll('div.dfmessage');var prop;for(prop in messages){if(messages.hasOwnProperty(prop)){messages[prop].style.display='none'}}} function initializeHtmlTimer(data){var t=getDynamicTimeRemaining(data.deadlineTime);if(t.total<=0){if(data.urlAfterDeadline){window.location=data.urlAfterDeadline} return} var selectorWrap=data.useFloatingBar?'float_bar_html_timer':'ddio_countdown_wrap';var dynamicWrap=document.getElementsByClassName(selectorWrap);if(data.useFloatingBar){window.dfDynamicTextLength+=1} if(dynamicWrap.length>0){for(n=0;n0){for(n=0;n50)){console.log('overflow exists');if(data.dynamic_template===0){newSquareWidthHeight=Math.round((fw*.2)-((fw*.2)/10));newSquarePadding=Math.round(fw*.2)/10;newSquareMargin=Math.round(fw*.01);newTimeFontSize=Math.round(newSquareWidthHeight*.625);newLabelFontSize=Math.round(newSquareWidthHeight*.20)}else if(data.dynamic_template===1){newSquareWidthHeight=Math.round((fw*.175)-((fw*.2)/10));newSquareBorderWidth=Math.round(newSquareWidthHeight*.03);newSquarePadding=Math.round(fw*.25)/10;newSquareMargin=Math.round(fw*.02);newTimeFontSize=Math.round(newSquareWidthHeight*.5);newLabelFontSize=Math.round(newSquareWidthHeight*.20)}else if(data.dynamic_template===2){newSquareWidthHeight=Math.round((fw*.2)-((fw*.2)/10));newSquareBorderWidth=Math.round(newSquareWidthHeight*.03);newSquarePadding=Math.round(fw*.25)/10;newSquarePadding=0;newSquareMargin=Math.round(fw*.02);newSquareMargin=0;newTimeFontSize=Math.round(newSquareWidthHeight*.5);newLabelFontSize=Math.round(newTimeFontSize*.5);var newLabelTop=Math.round(newLabelFontSize*.5)} console.log('square',newSquareWidthHeight);console.log('squarePadding',newSquarePadding);console.log('squareMargin',newSquareMargin);console.log('timeFont',newTimeFontSize);console.log('labelFont',newLabelFontSize);var children;children=el.children[0].children;Array.prototype.forEach.call(children,function(ch){if(ch.tagName==='P') return;ch.style.width=newSquareWidthHeight+"px";if(data.dynamic_template==0||data.dynamic_template==1){ch.style.height=newSquareWidthHeight+"px";ch.style.marginRight=newSquareMargin+"px"} ch.style.padding=newSquarePadding+"px";if(data.dynamic_template===1){ch.style.border=newSquareBorderWidth+'px solid '+data.dynamic_border_color;ch.style.borderRadius=newSquareWidthHeight+"px"} var text=ch.children;Array.prototype.forEach.call(text,function(t){if(hasClass(t,'dfTime')){t.style.fontSize=newTimeFontSize+"px"} if(hasClass(t,'dfLabel')){t.style.fontSize=newLabelFontSize+"px";if(data.dynamic_template===2){t.style.fontSize=(newLabelFontSize*0.6)+"px"} t.style.top=newLabelTop+"px"}})})}else{console.log('all good')}})} function callJsonP(clientParams){var ret=[];for(c in clientParams){ret.push(encodeURIComponent(c)+"="+encodeURIComponent(clientParams[c]))} var queryString=ret.join("&");var script=document.createElement('script');script.src=appConfig.domain+'/unified-json-data/?callback=processJson'+'&'+queryString;showLog(script.src,'JSONP URL:');document.getElementsByTagName('head')[0].appendChild(script)} function processJson(data) {showLog(data,'JSON Params:');if(data.dfType=='promocodeRedemptionForm') {clientParams.promotionId=data.promotion_id;makeRedemptionForm(clientParams)} if(data.dfType=='countdownCode'&&data.countdownType!==3) {if(typeof clientParams.doRedirectOnComplete!=='undefined')data.doRedirectOnComplete=clientParams.doRedirectOnComplete;if(typeof clientParams.destroy_on_complete!=='undefined')data.destroy_on_complete=clientParams.destroy_on_complete;if(typeof clientParams.hide_countdown!=='undefined'&&clientParams.hide_countdown==1) {data.doRedirectOnComplete=0;data.destroy_on_complete=1} runCountdownLogic(data)} if(data.dfType=='optinForm') {appConfig.trackingPixelUrl=data.trackingPixelUrl;if(document.getElementById("survey-wrap")){setTimeout(function(){replaceFields(data);runOptinLogic(data)},2000)}else{replaceFields(data);runOptinLogic(data)}} if(data.dfType=='pixelUrl'){loadPixelUrl(data.pixelUrl)} if((data.countdownType===3&&data.dfType==='countdownCode')){var htmlTimerDelay=data.useFloatingBar?1000:0;clientParams.showCountdownNow=showCountdownYet(data);if(clientParams.showCountdownNow){replaceDeadlineText(data);setTimeout(function(){initializeHtmlTimer(data);runCountdownLogic(data)},htmlTimerDelay)}} if(data.dfType==='dynamicText'){initializeDynamicText(data)} fireFast(data)} window.addEventListener("resize",do_resize);window.addEventListener("load",function(){do_resize()},!1);var loadjs=function(){function e(e,n){e=e.push?e:[e];var t,r,i,c,o=[],f=e.length,a=f;for(t=function(e,t){t.length&&o.push(e),--a||n(o)};f--;)r=e[f],i=s[r],i?t(r,i):(c=u[r]=u[r]||[],c.push(t))}function n(e,n){if(e){var t=u[e];if(s[e]=n,t)for(;t.length;)t[0](e,n),t.splice(0,1)}}function t(e,n,r,i){var o,s,u=document,f=r.async,a=(r.numRetries||0)+1,h=r.before||c;i=i||0,/(^css!|\.css$)/.test(e)?(o=!0,s=u.createElement("link"),s.rel="stylesheet",s.href=e.replace(/^css!/,"")):(s=u.createElement("script"),s.src=e,s.async=void 0===f||f),s.onload=s.onerror=s.onbeforeload=function(c){var u=c.type[0];if(o&&"hideFocus"in s)try{s.sheet.cssText.length||(u="e")}catch(e){u="e"}if("e"==u&&(i+=1)0) {showLog(cfOptin,'CFAR Div');var cfButton=document.querySelectorAll('[href*=submit-form]');if(cfButton.length>0) {for(i=0;i0) {var cfEmailValue='';for(i=0;i0) {var imgUrl=appConfig.trackingPixelUrl+'?email='+encodeURIComponent(cfEmailValue);var img=new Image(1,1);img.onload=function(){return!0};img.src=imgUrl;document.body.appendChild(img)}} function trackLPOptin(e){e.preventDefault();var formObj=!!window.chrome&&!!window.chrome.webstore?e.target.parentNode.form:e.target.form;var n=findEmailField();if("undefined"!=typeof n&&n.length>0){var t="";for(i=0;i0) {test[0].parentNode.removeChild(test[0])} var emailField=findEmailField(e.target);if(typeof emailField[0]!=='undefined'&&emailField.length>0&&validEmail(emailField[0].value)) {var emailFieldValue=emailField[0].value}else{var emailFieldValue=''} var imgUrl=appConfig.trackingPixelUrl+'?email='+encodeURIComponent(emailFieldValue);var img=new Image(1,1);var thriveFormExists=document.getElementsByClassName('thrv_lead_generation_container');img.onload=function(){if(!thriveFormExists.length){formObj.submit()}};img.src=imgUrl;document.body.appendChild(img)} function replaceFields(config) {replaceDeadlineTextOptin(config);replaceCouponCodeOptin(config)} function replaceDeadlineTextOptin(config) {var deadlineTextFields,dtTwos;var deadlineTextSelectors=["input[value=deadlinetext]","input.deadlinetext","input.deadlinetextfield","input[name*=deadlinetext]"];var dtTwos=["input[value=deadlinetext2]","input.deadlinetext2","input.deadlinetextfield2","input[name*=deadlinetext2]"];findAndReplaceAllFieldValues(deadlineTextSelectors,config.deadlineText);findAndReplaceAllFieldValues(dtTwos,config.deadlineText2)} function replaceCouponCodeOptin(config) {var couponcodeFields;var couponCodeSelectors=["input[value=couponcode]","input.couponcode","input.couponcodefield","input[name*=couponcode]"];findAndReplaceAllFieldValues(couponCodeSelectors,config.couponCode)} function findAndReplaceAllFieldValues(selectorQuery,newValue) {var fieldsFound;for(i=0;i0) {for(n=0;n0){return promocodeField[0]} return null} function testPromocode(e) {e.preventDefault();var promocodeField=findPromocodeField(e.target);if(promocodeField) {var promocodeValue=promocodeField.value} showLog(promocodeValue,'Promocode Value:');clientParams.promocodeValue=promocodeValue;showLog(clientParams,'Data sent:');callPromocodeRedemptionJson(clientParams)} function makeRedemptionForm(config) {loadCss('http://dfcode.s3.amazonaws.com/optinAlerts.css');var d='

Enter Your Promotion Code:

';var promoCodeDiv=document.querySelectorAll('#coupon_code_form');if(promoCodeDiv.length>0) {promoCodeDiv[0].innerHTML=d;var promoCodeForm=promoCodeDiv[0].querySelector('#deadline_coupon_validate');if(promoCodeForm.length>0) {promoCodeForm.addEventListener('submit',testPromocode,!1)} if(appConfig.prefill==1) {var promocodeField=findPromocodeField(promoCodeDiv[0]);promocodeField.value='abc123'} if(typeof appConfig.promocode!=='undefined') {var promocodeField=findPromocodeField(promoCodeDiv[0]);promocodeField.value=appConfig.promocode}}} function callPromocodeRedemptionJson(clientParams){hideMessages();var ret=[];var keys=Object.keys(clientParams),len=keys.length,i=0,prop,value;while(i '+data.message+'
';redemptionFormDiv[0].appendChild(node)}}else{node=document.createElement("div");node.innerHTML='
Success! Redirecting you in 1 second (or click here).
';redemptionFormDiv[0].appendChild(node);setTimeout(function(){window.onbeforeunload=null;window.location=data.url},1000)}} function renderCircular(countdownConfig){var exitnow=!1;countdownConfig.complete=function(){countdownCompleted=!0;if(countdownConfig.doRedirectOnComplete){document.getElementsByTagName('body')[0].style.display="none";if(!exitnow){};window.onbeforeunload=null;window.location=(countdownConfig.useTwoDeadlines)?countdownConfig.secondAfterUrl:countdownConfig.afterUrl;exitnow=!0;return} var countdowns=document.getElementsByClassName('ddio_countdown_wrap');for(var i=0;i380){size=80;paddingTop=15;labelSize=9;lineWidth=5}else if(width<=380){size=60;paddingTop=10;labelSize=6;lineWidth=3} var circulars=document.getElementsByClassName('df-circular-countdown');var defaults={target_date:"",time_zone:"",font_color:"rgba(50,50,50,1)",bar_color:"rgba(50,50,50,1)",scaleColor:!1,track_color:'rgba(0,0,0,1)',lineWidth:lineWidth,lineCap:'square',size:size,animate:!1,days:'Days',hours:'Hours',minutes:'Minutes',seconds:'Seconds'},settings,obj=this;settings=extend({},defaults,options);settings.barColor=settings.bar_color;settings.trackColor=settings.track_color;settings.font_color=settings.circular_font_color;this.set_options=function(opt_names_values){var options=dfDaysChart.data('easyPieChart').options;settings=extend({},options,opt_names_values);settings.barColor=settings.bar_color;settings.trackColor=settings.track_color;dfDaysChart.data('easyPieChart').options=settings;dfHoursChart.data('easyPieChart').options=settings;dfMinutesChart.data('easyPieChart').options=settings;dfSecondsChart.data('easyPieChart').options=settings};var appendStyles=function(){console.log('appendStyles in unified.js');var styles=document.createElement('style');styles.class='cp-pen-styles';styles.innerHTML=".df-circular-countdown, .df-circular-countdown span { "+"color: "+settings.font_color+";"+"}"+".df-circular-countdown .chart {"+"height: "+size+"px;"+"}";document.head.appendChild(styles);var fileref=document.createElement("link");fileref.rel="stylesheet";fileref.type="text/css";fileref.href=appConfig.domain+"/demo/static/circular-latest-1.css";document.getElementsByTagName("head")[0].appendChild(fileref)};function getSecondsLeft(date,offset){if(!date){date='2020/1/1 00:00:00'} if(!offset){offset=0} var t1=new Date(date);var t1time;var t2time;var dif;t1time=t1.getTime()-(t1.getTimezoneOffset()/60+offset)*3600000;t2time=new Date().getTime();dif=Math.abs(t1time-t2time);return Math.floor(dif/1000)} var dfDaysChart,dfHoursChart,dfMinutesChart,dfSecondsChart;var render=function(){appendStyles();obj.innerHTML+='
    '+'
  • 26'+''+settings.days_long+''+'
  • '+'
  • 15'+''+settings.hours_long+''+'
  • '+'
  • 50'+''+settings.mins_long+''+'
  • '+'
  • 50'+''+settings.secs_long+''+'
  • '+'

     

    '+'
';!function(){var a=function(a,b){var c=document.createElement("canvas");"undefined"!=typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(c);var d=c.getContext("2d");if(c.width=c.height=b.size,a.appendChild(c),window.devicePixelRatio>1){var e=window.devicePixelRatio;c.style.width=c.style.height=[b.size,"px"].join(""),c.width=c.height=b.size*e,d.scale(e,e)}d.translate(b.size/2,b.size/2),d.rotate((-0.5+b.rotate/180)*Math.PI);var f=(b.size-b.lineWidth)/2;b.scaleColor&&b.scaleLength&&(f-=b.scaleLength+2);var g=function(a,b,c){c=Math.min(Math.max(0,c||1),1),d.beginPath(),d.arc(0,0,f,0,2*Math.PI*c,!1),d.strokeStyle=a,d.lineWidth=b,d.stroke()},h=function(){var a,c,e=24;d.lineWidth=1,d.fillStyle=b.scaleColor,d.save();for(var e=24;e>=0;--e)0===e%6?(c=b.scaleLength,a=0):(c=.6*b.scaleLength,a=b.scaleLength-c),d.fillRect(-b.size/2+a,0,c,1),d.rotate(Math.PI/12);d.restore()};Date.now=Date.now||function(){return+new Date};var i=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a){window.setTimeout(a,1e3/60)}}();this.clear=function(){d.clearRect(b.size/-2,b.size/-2,b.size,b.size)},this.draw=function(a){this.clear(),b.scaleColor&&h(),b.trackColor&&g(b.trackColor,b.lineWidth),d.lineCap=b.lineCap;var c;c="function"==typeof b.barColor?b.barColor(a):b.barColor,a>0&&g(c,b.lineWidth,a/100)}.bind(this),this.animate=function(a,c){var d=Date.now();b.onStart(a,c);var e=function(){var f=Math.min(Date.now()-d,b.animate),g=b.easing(this,f,a,c-a,b.animate);this.draw(g),b.onStep(a,c,g),f>=b.animate?b.onStop(a,c):i(e)}.bind(this);i(e)}.bind(this)},b=function(b,c){var d,e={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,size:110,rotate:0,animate:1e3,renderer:a,easing:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},onStart:function(){},onStep:function(){},onStop:function(){}},f={},g=0,h=function(){this.el=b,this.options=f;for(var a in e)e.hasOwnProperty(a)&&(f[a]=c&&"undefined"!=typeof c[a]?c[a]:e[a],"function"==typeof f[a]&&(f[a]=f[a].bind(this)));f.easing="string"==typeof f.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[f.easing])?jQuery.easing[f.easing]:e.easing,d=new f.renderer(b,f),d.draw(g),b.dataset&&b.dataset.percent&&this.update(parseInt(b.dataset.percent,10))}.bind(this);this.update=function(a){return a=parseInt(a,10),f.animate?d.animate(g,a):d.draw(a),g=a,this}.bind(this),h()};window.EasyPieChart=b}();var DaysLeft,HoursLeft,MinutesLeft,SecondsLeft;var OnlySecondsLeft=getSecondsLeft(settings.target_date,settings.time_zone);var Fired=!1;var daysPieLeft,hoursPieLeft,minutesPieLeft,secondsPieLeft;SecondsLeft=60;secondsPieLeft=100;var dfDaysPies,dfHoursPies,dfMinutesPies,dfSecondsPies;var dfDaysCharts=new Array(),dfHoursCharts=new Array(),dfMinutesCharts=new Array(),dfSecondsCharts=new Array();dfDaysPies=obj.getElementsByClassName('dfDaysPie');dfHoursPies=obj.getElementsByClassName('dfHoursPie');dfMinutesPies=obj.getElementsByClassName('dfMinutesPie');dfSecondsPies=obj.getElementsByClassName('dfSecondsPie');for(i=0;i6&&(c=p[p.length-4],n=p[p.length-3]),("m"==p[0]||"M"==p[0])&&(e=r,a=o),h.push(p)),s="",p=[],p.push(t.charAt(i)),("Z"==t.charAt(i)||"z"==t.charAt(i))&&(p.push(e),p.push(a))):(""!=s&&(l=parseFloat(s),("v"==p[0]||"m"==p[0]||"h"==p[0]||"z"==p[0]||"c"==p[0]||"l"==p[0]||"s"==p[0])&&(l+=p.length%2==0?o:r),p.push(l)),s=""):("-"==t.charAt(i)&&(""!=s&&(l=parseFloat(s),("v"==p[0]||"m"==p[0]||"h"==p[0]||"z"==p[0]||"c"==p[0]||"l"==p[0]||"s"==p[0])&&(l+=p.length%2==0?o:r),p.push(l)),s=""),s+=t.charAt(i));return h} function l(t){var e=t.split("|");return "path"==e[0]?o(e[1]):"rect"==e[0]?r(e[1]):"polygon"==e[0]?a(e[1]):void 0} function c(t,e,a){var r=e;colorsOnly0=r.substring(r.indexOf("(")+1,r.lastIndexOf(")")).split(/,\s*/);var o=t;return colorsOnly1=o.substring(o.indexOf("(")+1,o.lastIndexOf(")")).split(/,\s*/),red0=parseFloat(colorsOnly0[0]),green0=parseFloat(colorsOnly0[1]),blue0=parseFloat(colorsOnly0[2]),opacity=colorsOnly0[3],red1=parseFloat(colorsOnly1[0]),green1=parseFloat(colorsOnly1[1]),blue1=parseFloat(colorsOnly1[2]),new_red=Math.floor(a*(red1-red0)+red0),new_green=Math.floor(a*(green1-green0)+green0),new_blue=Math.floor(a*(blue1-blue0)+blue0),"rgba("+new_red+","+new_green+","+new_blue+","+opacity+")"} var n={new_custom_state:"",custom_state:"",use_custom_update:!1,set_id:0,pan_id:0,day_digits:3,fillStyleSymbol1:"rgba(255,255,255,1)",fillStyleSymbol2:"rgba(255,255,255,1)",fillStylesPanel_g1_1:"rgba(100,100,100,1)",fillStylesPanel_g1_2:"rgba(30,30,30,1)",fillStylesPanel_g2_1:"rgba(80,80,130,1)",fillStylesPanel_g2_2:"rgba(20,20,60,1)",text_color:"white",text_glow:"black",text_blur:2,show_ss:!0,show_mm:!0,show_hh:!0,show_dd:!0,f_family:"Verdana",server_now_date:"",target_date:"2020/1/1 00:00:00",target_future:!0,time_zone:0,show_labels:!0,paused:!1,type3d:"single",max_height:300,days_long:"days",days_short:"days",hours_long:"hours",hours_short:"hours",mins_long:"minutes",mins_short:"mins",secs_long:"seconds",secs_short:"sec",min_f_size:9,max_f_size:30,font_to_digit_ratio:.125,groups_spacing:0,spacer:"none",labels_space:1.2,counter_width:0,destroy_on_complete:!0,complete:null},h=extend({},n,t),s=!1,p=h.paused,_=h.text_color,u=h.text_glow,d=!1,m=[90,140,150],f=[];f[0]=["M30,75V15.042C30,6.734,34.825,0,40.777,0h68.445C115.175,0,120,6.734,120,15.042V75z","M120,75v59.958c0,8.308-4.825,15.043-10.777,15.043H40.777C34.825,150,30,143.265,30,134.957V75z"],f[1]=["M5,0h140v75h-140v-75z","M5,75h140v75h-140v-75z"],f[2]=["M0,75V15.042C0,6.734,4.825,0,10.777,0h128.446C145.175,0,150,6.734,150,15.042V75z","M150,75v59.958c0,8.308-4.825,15.043-10.777,15.043H10.777C4.825,150,0,143.266,0,134.957V75z"];var g=[];g[0]=[],g[1]=[],g[0][0]="path|M60.937,75V46.75c0-11.938,2.051-23.438,14.063-23.438c12.012,0,14.063,11.499,14.063,23.438V75h18.75V46.75c0-23.145-10.328-38.818-32.813-38.818c-22.632,0-32.813,15.601-32.813,38.818V75H60.937z",g[0][1]="path|M89.063,75v28c0,11.353-2.564,23.438-14.063,23.438c-11.353,0-14.063-12.085-14.063-23.438V75h-18.75v28c0,22.559,10.84,38.818,32.813,38.818c22.12,0,32.813-16.113,32.813-38.818V75H89.063z",g[1][0]="path|M25.201,75v-3.881c0-16.86,2.37-27.271,7.113-31.237c4.744-3.963,17.051-5.946,36.921-5.946h12.431c19.669,0,31.9,2.009,36.693,6.023c4.793,4.016,7.19,14.402,7.19,31.16V75h11.4v-3.864c0-19.898-3.478-32.873-10.427-38.925c-6.951-6.049-21.823-9.075-44.625-9.075h-12.6c-23.1,0-38.126,3.026-45.075,9.075c-6.952,6.052-10.425,19.026-10.425,38.925V75H25.201z",g[1][1]="path|M125.551,75v5.152c0,16.662-2.372,26.975-7.115,30.938c-4.744,3.966-17,5.946-36.77,5.946H69.235c-19.771,0-32.053-2.007-36.846-6.021s-7.188-14.302-7.188-30.862V75h-11.4v5.136c0,19.8,3.499,32.7,10.5,38.7c6.999,6,21.999,9,45,9h12.6c22.801,0,37.674-3.023,44.625-9.075c6.949-6.049,10.426-18.923,10.426-38.625V75H125.551z",g[0][2]="path|M70.312,75h18.75V9.25H75c-3.662,7.104-10.986,11.279-18.75,14.063v14.063h14.063L70.312,75L70.312,75z",g[0][3]="rect|70.312 75 18.75 65.5",g[1][2]="polygon|77.551,34.369 77.551,75 89.701,75 89.701,23.586 72.301,23.586 39.903,54.938 47.844,62.279",g[1][3]="rect|77.551 75 12.15 52.836",g[0][4]="path|M61.669,46.75c0-11.426,2.856-23.438,14.063-23.438c9.668,0,14.063,9.082,14.063,18.75c0,14.648-7.105,22.925-14.063,32.813L75.645,75h21.979c5.959-8.902,10.922-18.439,10.922-32.938c0-21.313-11.207-34.131-32.813-34.131c-23.511,0-32.813,15.308-32.813,38.818v4.688h18.75V46.75z",g[0][5]="path|M94.482,79.563c1.064-1.516,2.115-3.031,3.141-4.563H75.645l-32.798,46.75v18.75h65.699v-18.75H61.669L94.482,79.563z",g[1][4]="path|M35.989,38.436c5.691-3,16.772-4.5,33.249-4.5h12.879c17.07,0,28.402,1.852,33.996,5.551c4.789,3.201,7.188,9.449,7.188,18.75c0,8.001-2.672,13.45-8.014,16.35c-0.264,0.143-0.551,0.278-0.84,0.414h17.035c2.14-4.323,3.219-9.93,3.219-16.844c0-13.369-3.352-22.446-10.051-27.236c-7.199-5.189-21.353-7.784-42.449-7.784h-12.9c-19.5,0-33.3,2.351-41.4,7.05C20.3,34.588,16.5,41.938,16.5,52.236h12.3C28.801,45.537,31.196,40.937,35.989,38.436z",g[1][5]="path|M27,109.796c0-7.139,2.25-12.114,6.75-14.932c5.499-3.417,15.9-5.128,31.2-5.128H82.5c21.398,0,35.75-2.543,43.051-7.635c2.487-1.75,4.459-4.123,5.934-7.103h-17.037c-5.614,2.623-16.389,3.937-32.34,3.937H63.833c-17.576,0-30.009,2.451-37.298,7.351s-10.934,12.802-10.934,23.7v17.85H134.25v-10.8H27V109.796z",g[0][6]="path|M75.916,23.313c11.205,0,14.063,7.324,14.063,18.75c0,13.77-5.055,18.75-18.75,18.75V75h27.26c-2.424-2.101-5.256-3.728-8.51-4.813c11.352-3.516,18.75-12.891,18.75-28.125c0-21.313-11.207-34.131-32.813-34.131c-21.46,0-32.813,12.891-32.813,34.131v4.688h18.75C61.853,33.713,63.318,23.313,75.916,23.313z",g[0][7]="path|M98.488,75h-27.26v4.563c14.063,0,18.75,9.375,18.75,23.438c0,13.037-1.465,23.438-14.063,23.438c-12.598,0-14.063-10.4-14.063-23.438h-18.75v4.688c0,21.313,11.206,34.131,32.813,34.131c23.51,0,32.813-15.308,32.813-38.818C108.729,90.448,105.229,80.843,98.488,75z",g[1][6]="path|M36.889,39.071c5.191-3.122,14.875-4.686,29.053-4.686h16.324c16.473,0,27.453,1.357,32.947,4.069c4.49,2.21,6.738,6.478,6.738,12.804c0,7.031-2.051,11.803-6.15,14.313c-3.4,2.109-9.352,3.164-17.85,3.164H63.75V75h58.803c-1.354-0.56-2.85-1.05-4.503-1.464c5.3-1.805,8.897-3.76,10.8-5.869c3-3.31,4.5-8.774,4.5-16.399c0-10.729-3.25-18.025-9.75-21.888c-6.5-3.862-19.5-5.794-39-5.794H62.85c-17.7,0-29.901,2.916-36.6,8.742c-5.1,4.423-7.65,11.608-7.65,21.558H30C30,46.831,32.295,41.893,36.889,39.071z",g[1][7]="path|M122.553,75H63.75v4.536h34.201c9.199,0,15.248,0.849,18.148,2.54c3.899,2.293,5.852,7.371,5.852,15.238c0,7.871-2.521,13.123-7.564,15.763c-5.041,2.64-15.648,3.959-31.822,3.959H64.595c-13.58,0-22.739-1.313-27.48-3.942C32.37,110.464,30,105.58,30,98.436H18.6c0,11.201,3.023,18.9,9.075,23.102c6.049,4.199,17.874,6.3,35.475,6.3H84.6c19.6,0,32.799-2.349,39.602-7.05c6.098-4.2,9.148-12.051,9.148-23.551c0-6.601-0.951-11.799-2.851-15.601C129.091,78.818,126.438,76.607,122.553,75z",g[0][8]="polygon|64.704,75 78.771,32.688 78.771,75 97.521,75 97.521,9.177 74.084,9.177 45.946,75",g[0][9]="polygon|97.521,75 78.771,75 78.771,89.084 60.022,89.084 64.704,75 45.946,75 41.272,85.936 41.272,106.809 78.771,106.809 78.771,140.5 97.521,140.5 97.521,106.809 112.023,106.809 112.023,89.084 97.521,89.084",g[1][8]="polygon|59.145,75 108.75,35.961 108.75,75 120.15,75 120.15,23.586 108,23.586 42.459,75",g[1][9]="polygon|120.15,75 108.75,75 108.75,94.536 34.32,94.536 59.145,75 42.459,75 17.553,94.538 17.551,105.336 108.75,105.336 108.75,127.836 120.15,127.836 120.15,105.336 135,105.336 135,94.536 120.15,94.536",g[0][10]="path|M64.63,75c2.55-3.498,6.453-6.372,11.542-6.372c6.338,0,9.814,2.41,11.719,6.372h18.989c-3.288-12.291-10.992-20.435-26.094-20.435c-7.983,0-13.916,1.831-18.75,4.688l1.172-31.787h41.016V8.716H46.216V75H64.63z",g[0][11]="path|M64.63,75H46.216v4.468h15.967C62.758,77.976,63.583,76.437,64.63,75zM87.891,75c2.015,4.188,2.271,10.11,2.271,16.772c0,16.699,0.879,34.57-15.454,34.57c-11.133,0-12.671-9.888-12.671-20.947v-2.93h-18.75c0,24.097,8.057,38.818,32.446,38.818c26.66,0,33.179-21.68,33.179-48.193c0-6.601-0.599-12.737-2.031-18.091H87.891z",g[1][10]="path|M37.59,68.361c4.556-1.148,10.441-1.726,17.653-1.726h37.86c12.088,0,20.483,2.792,25.203,8.364h13.739c-1.794-4.632-4.68-8.399-8.671-11.289c-7.251-5.25-18.674-7.875-34.273-7.875H57.75c-8.801,0-15.501,0.626-20.1,1.875c-4.601,1.252-7.702,2.925-9.3,5.025V34.386H131.4v-10.8H16.951v49.95h11.4C29.954,71.236,33.034,69.512,37.59,68.361z",g[1][11]="path|M118.307,75c3.024,3.57,4.545,8.277,4.545,14.136v5.101c0,8.5-2.427,14.427-7.274,17.774c-4.853,3.353-14.527,5.025-29.025,5.025h-24.9c-13.5,0-22.901-1.55-28.2-4.65c-4.702-2.7-7.05-7.399-7.05-14.1H15c0,10.2,3.525,17.677,10.575,22.425c7.05,4.751,18.375,7.125,33.975,7.125H90c15.999,0,27.375-2.572,34.125-7.725c6.75-5.149,10.125-13.774,10.125-25.875v-6.15c0-4.943-0.738-9.303-2.204-13.086H118.307z",g[0][12]="path|M103.752,75c-4.029-8.696-11.462-14.063-24.064-14.063c-9.302,0-15.454,3.662-18.75,9.375v-18.75c0-18.75,4.688-28.125,14.063-28.125c11.279,0,14.063,7.251,14.063,18.75h18.75C107.813,20.801,96.24,8.057,75,8.057c-25.415,0-32.813,22.485-32.813,48.193V75H103.752z",g[0][13]="path|M75,75c14.063,0,14.063,14.063,14.063,28.125c0,11.426-2.856,23.438-14.063,23.438c-11.133,0-14.063-11.938-14.063-23.438v-18.75C63.428,79.688,67.822,75,75,75H42.188v23.438c0,23.584,9.814,43.506,32.813,43.506c23.73,0,32.813-19.702,32.813-43.506c0-9.058-1.135-17.124-4.061-23.438H75z",g[1][12]="path|M95.102,66.186H55.801c-9.6,0-16.552,1.051-20.85,3.15c-2.462,1.232-4.459,3.121-5.993,5.664h99.083c-0.553-0.509-1.127-1.001-1.74-1.464C119.701,68.638,109.299,66.186,95.102,66.186zM28.351,75V58.986c0-9.699,2.021-16.374,6.066-20.025c4.043-3.649,11.655-5.475,22.837-5.475H91.85c11.683,0,19.967,1.649,24.86,4.949c4.294,2.902,6.44,7.5,6.44,13.801h11.399c0-10.299-3.728-17.799-11.176-22.5c-7.45-4.699-19.875-7.051-37.274-7.051H62.7c-17.302,0-29.351,2.752-36.15,8.25c-6.802,5.501-10.2,15-10.2,28.5V75H28.351z",g[1][13]="path|M128.041,75H28.958c-0.211,0.35-0.414,0.711-0.607,1.086V75h-12v15.636c0,14.501,3,24.401,9,29.7c5.599,5.002,16.05,7.5,31.35,7.5h38.4c14.797,0,25.398-2.4,31.799-7.2c5.701-4.298,8.552-11.1,8.552-20.399v-6.149C135.451,85.902,132.975,79.545,128.041,75z M123.15,99.336c0,5.801-1.926,10.2-5.775,13.2s-10.225,4.5-19.125,4.5H52.201c-8.501,0-14.602-1.522-18.3-4.575c-3.701-3.049-5.55-7.425-5.55-13.125v-4.5c0-5.4,1.849-9.648,5.55-12.75c4.099-3.398,10.298-5.1,18.6-5.1h46.05c8.498,0,14.85,1.75,19.051,5.25c3.697,3.101,5.549,7.301,5.549,12.6V99.336L123.15,99.336z",g[0][14]="polygon|72.272,75 89.479,75 100.561,18.259 100.561,9.25 48.046,9.25 48.046,24.851 82.689,24.851",g[0][15]="polygon|72.272,75 58.667,140.5 76.684,140.5 89.479,75",g[1][14]="polygon|81.6,75 97.572,75 141,33.486 141,23.586 10.651,23.586 10.651,34.386 123.992,34.386",g[1][15]="polygon|81.6,75 26.424,127.861 42.301,127.836 97.572,75",g[0][16]="path|M56.397,71.213c-1.818,1.158-3.444,2.412-4.893,3.787h46.943c-1.422-1.37-3.008-2.625-4.77-3.787c8.274-6.226,12.229-14.941,12.229-29.15c0-21.021-9.814-34.131-30.834-34.131c-21.094,0-30.981,13.037-30.981,34.131C44.092,56.271,48.121,64.987,56.397,71.213z M75.074,23.313c9.521,0,11.719,9.229,11.719,18.75c0,10.254-1.465,20.581-11.719,20.581c-10.327,0-11.865-10.327-11.865-20.581C63.208,32.395,65.406,23.313,75.074,23.313z",g[0][17]="path|M98.447,75H51.504c-6.434,6.104-9.316,14.623-9.316,28.073c0,23.877,8.936,38.745,32.886,38.745c23.877,0,32.738-14.868,32.738-38.745C107.813,89.658,104.82,81.145,98.447,75z M75.074,126.438c-12.671,0-14.136-10.84-14.136-23.363c0-11.499,2.49-22.485,14.136-22.485c11.572,0,13.988,11.06,13.988,22.485C89.063,115.451,87.672,126.438,75.074,126.438z",g[1][16]="path|M23.401,69.704c3.698,3.206,8.648,4.807,14.85,4.807c-1.878,0-3.634,0.176-5.295,0.489h88.216c-1.797-0.366-3.729-0.564-5.82-0.564c6.099,0,11.047-1.649,14.851-4.949c4.198-3.699,6.299-9.15,6.299-16.351v-3.75c0-8.7-2.899-15.248-8.698-19.649c-6.103-4.699-15.503-7.051-28.201-7.051h-46.5c-12.3,0-21.501,2.354-27.6,7.06c-5.7,4.406-8.55,10.967-8.55,19.679v3.757C16.951,60.49,19.1,65.998,23.401,69.704z M29.25,49.836c0-5.6,1.749-9.649,5.25-12.15c3.9-2.798,10.549-4.199,19.95-4.199H99c9.5,0,16.201,1.401,20.102,4.199c3.397,2.501,5.101,6.551,5.101,12.15v2.55c0,6-1.978,10.401-5.927,13.2c-3.95,2.801-11.174,4.2-21.674,4.2H56.551c-10.301,0-17.55-1.5-21.75-4.5c-3.701-2.6-5.55-6.9-5.55-12.9L29.25,49.836L29.25,49.836z",g[1][17]="path|M130.051,79.25c-2.385-2.126-5.354-3.532-8.879-4.25H32.956c-3.731,0.704-6.926,2.182-9.555,4.468c-4.301,3.808-6.45,9.314-6.45,16.523v5.106c0,8.613,2.974,15.223,8.925,19.828c5.949,4.607,15.023,6.909,27.225,6.909h46.5c12.697,0,22.023-2.28,27.976-6.844c5.946-4.562,8.924-11.205,8.924-19.933v-5.113C136.5,88.627,134.35,83.061,130.051,79.25zM124.201,100.62c0,5.623-1.852,9.765-5.551,12.425c-3.701,2.662-10.252,3.991-19.65,3.991H54.451c-9.501,0-16.076-1.329-19.725-3.991c-3.651-2.66-5.475-6.802-5.475-12.425v-3.914c0-6.022,1.974-10.44,5.925-13.254c3.949-2.81,11.074-4.216,21.375-4.216h40.051c10.398,0,17.748,1.507,22.049,4.519c3.699,2.61,5.552,6.929,5.552,12.951L124.201,100.62L124.201,100.62z",g[0][18]="path|M107.703,75V51.438c0-23.584-9.814-43.506-32.813-43.506c-23.73,0-32.813,19.702-32.813,43.506c0,9.118,1.15,17.23,4.119,23.563L107.703,75L107.703,75z M74.89,23.313c11.133,0,14.063,11.938,14.063,23.438V65.5c-2.564,4.688-6.813,9.375-14.063,9.375c-14.063,0-14.063-14.063-14.063-28.125C60.828,35.324,63.684,23.313,74.89,23.313z",g[0][19]="path|M46.196,75c4.042,8.622,11.464,13.938,24.006,13.938c9.301,0,15.381-3.734,18.75-9.375v18.75c0,18.75-4.688,28.125-14.063,28.125c-11.279,0-14.063-7.25-14.063-18.75h-18.75c0,21.388,11.572,34.131,32.813,34.131c25.416,0,32.813-22.484,32.813-48.192V75H46.196z",g[1][18]="path|M123.206,75c0.081-0.139,0.167-0.271,0.245-0.414V75h12V59.982c0-14.478-2.902-24.289-8.701-29.431c-5.801-5.143-16.35-7.716-31.648-7.716h-38.4c-14.801,0-25.401,2.4-31.8,7.2c-5.7,4.301-8.55,11.1-8.55,20.399v6.15c0,7.696,2.262,13.83,6.767,18.414h100.088V75z M28.5,51.336c0-5.799,1.927-10.2,5.785-13.2c3.855-3,10.24-4.5,19.155-4.5h45.973c8.612,0,14.874,1.601,18.778,4.8c3.506,2.902,5.26,7.2,5.26,12.9v4.5c0,5.4-1.955,9.727-5.859,12.975c-3.908,3.251-10.066,4.875-18.479,4.875H53.141c-8.515,0-14.876-1.748-19.081-5.25c-3.708-3.098-5.56-7.298-5.56-12.6V51.336z",g[1][19]="path|M25.801,77.361c6.3,4.75,16.598,7.125,30.9,7.125h39.15c9.601,0,16.549-1.051,20.851-3.15c2.669-1.335,4.833-3.453,6.505-6.336H23.117C23.94,75.837,24.828,76.628,25.801,77.361zM123.451,75v16.652c0,9.656-2.025,16.302-6.076,19.935c-4.049,3.633-11.676,5.449-22.875,5.449H59.851c-11.7,0-20.001-1.636-24.9-4.91c-4.301-2.876-6.45-7.438-6.45-13.69h-11.4c0,10.25,3.724,17.713,11.175,22.389c7.448,4.676,19.924,7.013,37.425,7.013h23.4c17.299,0,29.349-2.744,36.148-8.237c6.8-5.492,10.201-14.979,10.201-28.461V75H123.451z";var y="rgba(255, 255, 255, 1)",v="rgba(0, 0, 0, 1)",w="rgba(255, 255, 255, 1)",x="rgba(0, 0, 0, 1)",M="rgba(100, 100, 200, 1)",S="rgba(30, 30, 60, 1)";return this.pause_anim=function(){p=!0},this.play_anim=function(){p=!1},this.destroy_countdown=function(){d=!0},this.set_options=function(t){s=!0;for(var e=0;e0&&_t<=Jt.length/2+1?ve.clearRect(0,yt,T,V/2+1):_t<=Jt.length&&ve.clearRect(0,V/2-1,T,vt-V/2+1),_t<=Jt.length) for(var l=0;q>l;l++) o=l,it=Qt[l],ht=Ut[l],st=it,pt=ht,(ot[l]||rt)&&(ft=c(x,Z[o],_t/(Jt.length-1)),gt=c(x,G[o],_t/(Jt.length-1)),dt=c(Z[o],w,_t/(Jt.length-1)),mt=c(G[o],w,_t/(Jt.length-1)),fillStyleSymbolFromLighter=c(N[o],y,_t/(Jt.length-1)),fillStyleSymbolToDarker=c(v,N[o],_t/(Jt.length-1)),t=lt[l],e=ct[l],0==_t?($t[l]=t,te[l]=t,n(ae[2*t+1],1,Z[o],G[o],N[o]),n(ae[2*t],0,Z[o],G[o],N[o])):1==_t?($t[l]=e,n(ae[2*e],0,Z[o],G[o],N[o])):_t>0&&_t=Jt.length&&(te[l]=e,n(ae[2*e+1],1,Z[o],G[o],N[o])),_t>0&&_t<=Jt.length/2?C(_t,ae[2*t],0,o):0!=_t&&_t50&&(_t=Jt.length+1),ue) pe=h.new_custom_state,a(h.new_custom_state)&&(_t=0,b());else if(r(_t,p)){for(var i=!1,l=0;q>l;l++) o=l,it=Qt[l],ht=Ut[l],st=it,pt=ht,$t[l]!=lt[l]&&(n(ae[2*lt[l]],0,Z[o],G[o],N[o]),$t[l]=lt[l],i=!0),te[l]!=lt[l]&&(n(ae[2*lt[l]+1],1,Z[o],G[o],N[o]),te[l]=lt[l],i=!0),ee=i?!1:!0;_t=0,b()}} function a(t){if(t!=_e){for(i=0;ia-r&&bt&&!ne) return isFunction(h.complete)&&!e&&h.complete.call(this),e||Xt&&se.destroy(),void(ne=!0);if(1e3>a-r&&(oe=!0),e) return!1;var n=Math.floor(o/1e3);if(ne&&!Xt&&(n=0,oe=!1),n!=nt){nt=n;var i=Math.floor(n/60),s=Math.floor(i/60),p=Math.floor(s/denominator),_=s-24*p,u=i-24*p*60-60*_,d=n-24*p*60*60-60*_*60-60*u;Math.floor(p/10)%10,Math.floor(p/100)%10;for(j=0;P-6>j;j++) l[j]=Math.floor(p/Math.pow(10,j))%10;var m=_%10,f=Math.floor(_/10)%10,g=u%10,y=Math.floor(u/10)%10,v=d%10,w=Math.floor(d/10)%10;if(tj;j++) lt[j]=ct[j];var x=0;if(B&&(ct[x++]=v,ct[x++]=w),X&&(ct[x++]=g,ct[x++]=y),Y&&(ct[x++]=m,ct[x++]=f),J) for(j=0;P-6>j;j++) ct[x++]=l[j];return!0} return!1} function n(t,a,r,o,l){var c,n,i,h,s,p,_=ge,u=Math.floor(Q/30);_.lineWidth=u;var d=re[a];for(min_x=-1,min_y=-1,max_x=-1,max_y=-1,_.beginPath(),j=0;jmax_x)&&(max_x=c),(-1==max_y||n>max_y)&&(max_y=n),_.moveTo(c,n)):"L"==d[j][0]||"l"==d[j][0]||"V"==d[j][0]||"v"==d[j][0]||"H"==d[j][0]||"h"==d[j][0]||"Z"==d[j][0]||"z"==d[j][0]?(c=e(d[j][1],75,K,"round"),n=e(d[j][2],75,K,"round"),c+=st,n+=pt,(-1==min_x||cmax_x)&&(max_x=c),(-1==max_y||n>max_y)&&(max_y=n),_.lineTo(c,n)):("C"==d[j][0]||"c"==d[j][0]||"S"==t[j][0]||"s"==t[j][0])&&(c=e(d[j][1],75,K,"round"),n=e(d[j][2],75,K,"round"),c+=st,n+=pt,i=e(d[j][3],75,K,"round"),h=e(d[j][4],75,K,"round"),i+=st,h+=pt,s=e(d[j][5],75,K,"round"),p=e(d[j][6],75,K,"round"),s+=st,p+=pt,_.bezierCurveTo(c,n,i,h,s,p));_.clearRect(min_x,min_y,max_x-min_x,max_y-min_y),0==a?yt=min_y:vt=max_y,_.fillStyle=r;var m;for(o!=r&&(m=_.createLinearGradient(0,min_y,0,max_y),min_yt;t++) ot[t]=lt[t]!=ct[t]} function z(t){var a,r,o,l,c,n,i=ge,h=re[t];for(i.beginPath(),j=0;j=C?(b>=v?py=(b-v)/b:py=0,x=b+C*py,d.fillStyle=n):(b>=v?py=0:py=(v-b)/b,x=b+C*py,d.fillStyle=i),w="single"==At?y+px*py*z-Q/2+st:y+px*py*z,"round"==u?m[k]=Math.round(w):m[k]=w,f[k]=Math.round(x)} "M"==o[j][0]||"m"==o[j][0]?d.moveTo(m[0],f[0]):"L"==o[j][0]||"l"==o[j][0]||"V"==o[j][0]||"v"==o[j][0]||"H"==o[j][0]||"h"==o[j][0]||"Z"==o[j][0]||"z"==o[j][0]?d.lineTo(m[0],f[0]):("C"==o[j][0]||"c"==o[j][0]||"S"==o[j][0]||"s"==o[j][0])&&d.bezierCurveTo(m[0],f[0],m[1],f[1],m[2],f[2]),"round"==u&&((-1==min_y||f[0]max_y)&&(max_y=f[0]))} var H;"round"==u?min_y';var pe,_e,ue,de=se.childrens("#panel_labels"),me=de.getContext("2d"),fe=se.childrens("#panel_static"),ge=fe.getContext("2d"),ye=se.childrens("#animation"),ve=ye.getContext("2d");se.init=function(){pe=h.new_custom_state,_e=h.custom_state,ue=h.use_custom_update,At=h.type3d,Ft=h.max_height,Ht=h.show_labels,St=h.target_date,zt=h.server_now_date,bt=h.target_future,Ct=new Date(St),B=h.show_ss,X=h.show_mm,Y=h.show_hh,J=h.show_dd,O=h.fillStyleSymbol1,I=h.fillStyleSymbol2,E=h.fillStylesPanel_g1_1,D=h.fillStylesPanel_g2_1,W=h.fillStylesPanel_g1_2,R=h.fillStylesPanel_g2_2,Vt=h.text_blur,qt=h.labels_space,Xt=h.destroy_on_complete,Tt=h.groups_spacing,Lt=h.spacer,le=!1,F=h.day_digits,wt=h.set_id,jt=h.pan_id,kt=h.days_long,Pt=h.days_short,Ot=h.hours_long,It=h.hours_short,Et=h.mins_long,Dt=h.mins_short,Wt=h.secs_long,Rt=h.secs_short,Mt=h.f_family,Bt=h.font_to_digit_ratio,Zt=h.min_f_size,Gt=h.max_f_size,_=h.text_color,u=h.text_glow,Nt=h.time_zone,xt=m[jt],oe=!1,re[0]=o(f[jt][0]),re[1]=o(f[jt][1]);for(var e=0;20>e;e++) ae[e]=l(g[wt][e]);for(ue&&(B=!1,X=!1,Y=!1,J=!0),ve.clearRect(0,0,ye.width,ye.height),ge.clearRect(0,0,ge.width,ge.height),me.clearRect(0,0,me.width,me.height),V=se.getElementHeight(),T=se.getElementWidth(),L=T,A=V,P=F+6,ot=new Array(P),e=0;P>e;e++) ot[e]=1;for(lt=new Array(P),e=0;P>e;e++) lt[e]=0;for(ct=new Array(P),e=0;P>e;e++) lt[e]=0;Z=new Array(P),G=new Array(P),N=new Array(P);var c=0;for(B&&(c+=2),X&&(c+=2),Y&&(c+=2),e=0;P>e;e++) 0==e||1==e||4==e||5==e?(Z[e]=E,G[e]=W,N[e]=O):(Z[e]=D,G[e]=R,N[e]=I),e>=c&&((2==c||6==c)&&(Z[e]=D,G[e]=R,N[e]=I),(0==c||4==c)&&(Z[e]=E,G[e]=W,N[e]=O));q=P,et=0,B?et++:q-=2,X?et++:q-=2,Y?et++:q-=2,J?et++:q-=F,ue&&(et=Math.ceil(F/3)),Ht||(qt=0);var i=0;Yt=0;var s=Ft;0!=qt&&(s=Ft/(Bt*qt+1)),K=s/150,Q=xt*K,U=Q/10,tt=Tt*U,temp_w=q*(Q+U)+3*U+tt*(et-1),temp_w>T&&(K*=T/temp_w,Q=xt*K,U=Q/10,tt=Tt*U,temp_w=q*(Q+U)+3*U+tt*(et-1)),0!=qt&&(i=150*K*Bt*qt,Yt=Math.floor(150*K*Bt/1.3),Yt>Gt&&(Yt=Gt),Zt>Yt&&(Yt=Zt),i=1.3*Yt*qt),V=150*K+2*i,se.style.height=V-2*i+1.3*Yt*qt+"px",fe.width=T,ye.width=T,de.width=T,fe.height=V,ye.height=V,de.height=V,fe.style.top=-i+"px",ye.style.top=-i+"px",de.style.top=-i+"px",$=temp_w>T?(temp_w-T)/2:(T-temp_w)/2,h.counter_width=temp_w,radiusX=.5*V,radiusY=.5*temp_w*.5/q,Jt=[],Kt=[],at=0;for(var e=1.5*Math.PI;e>=.5*Math.PI;e-=.2) Jt[at]=radiusY*Math.cos(e),Kt[at]=radiusX*Math.sin(e),at++;Qt=[],Ut=[];for(var p=0,e=0;q>e;e++) e>q-F-1&&J?p=0:0==e||1==e?p=(et-1)*tt:2==e||3==e?p=(et-2)*tt:(4==e||5==e)&&(p=(et-3)*tt),ue&&(p=(et-(Math.floor(e/3)+1))*tt),Qt[e]=Math.round((q-1-e)*U+(q-1-e+.5)*Q+$+2*U+p),Ut[e]=Math.round(V/2);nt=-1,rt=!0,ue?a(pe):r(0,0);for(var e=0;q>e;e++) color_id=e,it=Qt[e],ht=Ut[e],st=it,pt=ht,new_digit=ct[e],oe||(n(ae[2*new_digit],0,Z[color_id],G[color_id],N[color_id]),n(ae[2*new_digit+1],1,Z[color_id],G[color_id],N[color_id])),lt[e]=ct[e],$t[e]=new_digit,te[e]=new_digit;Vt>0?(me.shadowColor=u,me.shadowOffsetX=0,me.shadowOffsetY=0,me.shadowBlur=Vt):(me.shadowColor=null,me.shadowBlur=null),me.fillStyle=_;var d=0,y=0,v=0,w=0,j=20*K;if("none"!=Lt&&(J&&(Y||X||B)&&(d=(P-6)*(Q+U)-U,"squares"==Lt?(me.rect((T-temp_w)/2+2*U+d+(tt+U-1.2*U)/2,(V-1.2*U)/2-j,1.2*U,1.2*U),me.rect((T-temp_w)/2+2*U+d+(tt+U-1.2*U)/2,(V-1.2*U)/2+j,1.2*U,1.2*U)):(me.beginPath(),me.arc((T-temp_w)/2+2*U+d+(tt+U)/2,V/2-j,.7*U,0,2*Math.PI,!1),me.arc((T-temp_w)/2+2*U+d+(tt+U)/2,V/2+j,.7*U,0,2*Math.PI,!1)),me.fill(),d+=U+tt),Y&&(X||B)&&(y=2*(Q+U)-U,"squares"==Lt?(me.rect((T-temp_w)/2+2*U+d+y+(tt+U-1.2*U)/2,(V-1.2*U)/2-j,1.2*U,1.2*U),me.rect((T-temp_w)/2+2*U+d+y+(tt+U-1.2*U)/2,(V-1.2*U)/2+j,1.2*U,1.2*U)):(me.beginPath(),me.arc((T-temp_w)/2+2*U+d+y+(tt+U)/2,V/2-j,.7*U,0,2*Math.PI,!1),me.arc((T-temp_w)/2+2*U+d+y+(tt+U)/2,V/2+j,.7*U,0,2*Math.PI,!1)),me.fill(),y+=U+tt),X&&B&&(v=2*(Q+U)-U,"squares"==Lt?(me.rect((T-temp_w)/2+2*U+d+y+v+(tt+U-1.2*U)/2,(V-1.2*U)/2-j,1.2*U,1.2*U),me.rect((T-temp_w)/2+2*U+d+y+v+(tt+U-1.2*U)/2,(V-1.2*U)/2+j,1.2*U,1.2*U)):(me.beginPath(),me.arc((T-temp_w)/2+2*U+d+y+v+(tt+U)/2,V/2-j,.7*U,0,2*Math.PI,!1),me.arc((T-temp_w)/2+2*U+d+y+v+(tt+U)/2,V/2+j,.7*U,0,2*Math.PI,!1)),me.fill()),ue)){for(var e=1;q>e;e++) e%3==0&&(x_pos=T-Math.ceil(.5*(T-temp_w)+2*U+e*(Q+U)+Math.floor(e/3)*tt)+(tt+U-.5*U)/2,me.rect(x_pos,(V-2*U)/2+3*j,.5*U,2*U));me.fill()} if(Ht&&!oe||!bt){me.font="normal "+Yt+"px "+Mt,d=0,y=0,v=0,w=0;var x,M,S=V-(V-150*K)/2+Yt*qt;ue?(x=me.measureText(kt),d=F*(Q+U)+Math.ceil(F/3)*tt,M=x.width,M>d?(x=me.measureText(Pt),M=x.width,me.fillText(Pt,(T-temp_w)/2+2*U+(d-U-M)/2,S)):me.fillText(kt,(T-temp_w)/2+2*U+(d-U-M)/2,S)):(J&&(x=me.measureText(kt),d=(P-6)*(Q+U),M=x.width,M>d?(x=me.measureText(Pt),M=x.width,me.fillText(Pt,(T-temp_w)/2+2*U+(d-U-M)/2,S)):me.fillText(kt,(T-temp_w)/2+2*U+(d-U-M)/2,S),d+=tt),Y&&(x=me.measureText(Ot),y=2*(Q+U),M=x.width,M>y?(x=me.measureText(It),M=x.width,me.fillText(It,(T-temp_w)/2+2*U+d+(y-U-M)/2,S)):me.fillText(Ot,(T-temp_w)/2+2*U+d+(y-U-M)/2,S),y+=tt),X&&(x=me.measureText(Et),v=2*(Q+U),M=x.width,M>v?(x=me.measureText(Dt),M=x.width,me.fillText(Dt,(T-temp_w)/2+2*U+d+y+(v-U-M)/2,S)):me.fillText(Et,(T-temp_w)/2+2*U+d+y+(v-U-M)/2,S),v+=tt),B&&(x=me.measureText(Wt),w=2*(Q+U),M=x.width,M>w?(x=me.measureText(Rt),M=x.width,me.fillText(Rt,(T-temp_w)/2+2*U+d+y+v+(w-U-M)/2,S)):me.fillText(Wt,(T-temp_w)/2+2*U+d+y+v+(w-U-M)/2,S)))} _t=0,b(),clearInterval(ut),ut=setInterval(t,33)},se.destroy=function(){clearInterval(ut),fe.remove(),ye.remove(),de.remove()},se.init()})};var extend=function(){var t={},e=!1,a=0,r=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(e=arguments[0],a++);for(var o=function(a){for(var r in a) Object.prototype.hasOwnProperty.call(a,r)&&(e&&"[object Object]"===Object.prototype.toString.call(a[r])?t[r]=extend(!0,t[r],a[r]):t[r]=a[r])};r>a;a++){var l=arguments[a];o(l)} return t};Element.prototype.childrens=function(t){var e=this.childNodes;t=t.substring(1);for(var a=0;ae;++e) t.call(this[e]);else t.call(this)},Element.prototype.getElementWidth=function(){return "undefined"!=typeof this.clip?this.clip.width:this.style.pixelWidth?this.style.pixelWidth:this.offsetWidth},Element.prototype.getElementHeight=function(){return "undefined"!=typeof this.clip?this.clip.height:this.style.pixelHeight?this.style.pixelHeight:this.offsetHeight};if(countdownConfig.useFloatingBar==!0) window.loadFloatingBar=!0;if(countdownConfig.useInlineCountdown==!0) window.loadInlineCountdown=!0;if(typeof domready!=="function"){window.addEventListener("load",function() {setStyling(countdownConfig);showCountdown(countdownConfig)},!1);if(document.readyState==='complete'){setStyling(countdownConfig);showCountdown(countdownConfig)} console.log('DF attached to windowonload')}else{domready(function(){setStyling(countdownConfig);showCountdown(countdownConfig)})}} function do_resize(){var allElems=document.querySelectorAll('.df-circular-countdown li.chart');for(var i=0;icircleParentWidthNew){circleParent.style.maxWidth=circleParentWidthNew+"px"}else{circleParent.style.maxWidth='700px'} var circleWidth=circleParentWidthNew/4-20+"px";allElems[i].style.height=circleWidth;circlePaddingTop=parseInt(circleWidth)/4+"px";allElems[i].style.paddingTop=circlePaddingTop;var circleCanvas=allElems[i].querySelector('canvas');if(typeof circleCanvas!=='undefined'&&circleCanvas!=null){circleCanvas.style.width=parseInt(circleWidth)+"px";circleCanvas.style.height=parseInt(circleWidth)+"px"} var circleLabel=allElems[i].querySelector('.circular-label');if(typeof circleLabel!=='undefined'&&circleLabel!=null){circleLabel.style.fontSize=parseInt(circleWidth)*.1+"px"} var circleCounter=allElems[i].querySelector('.dfCounter');if(typeof circleCounter!=='undefined'&&circleCounter!=null){circleCounter.style.fontSize=parseInt(circleWidth)*.4+"px";circleCounter.style.lineHeight=parseInt(circleWidth)*.4+"px"}} return circleWidth} function runCountdownLogic(countdownConfig){showLog(countdownConfig,'countdown config');if(countdownConfig.redirectToOptinNow==1&&countdownConfig.optinUrl!==null){window.onbeforeunload=null;window.location=addGetParamsToRedirectUrl(countdownConfig.optinUrl);return} if(countdownConfig.redirectIfPrivacyOn==1&&navigator.cookieEnabled!==!0) {window.onbeforeunload=null;window.location=countdownConfig.redirectUrlIfPrivacyOn;return} if(countdownConfig.promotionExpired) {var meta=document.createElement('meta');meta.name="referrer";meta.content="no-referrer";document.getElementsByTagName('head')[0].appendChild(meta);window.onbeforeunload=null;var expiredUrl=(countdownConfig.useTwoDeadlines)?countdownConfig.secondAfterUrl:countdownConfig.afterUrl;if(!expiredUrl){showHideText();return} if(expiredUrl&&countdownConfig.pass_to_after==0&&countdownConfig.doRedirectOnComplete&&window.location.href!=expiredUrl){window.location=expiredUrl;return} if(countdownConfig.pass_to_after==1){var redirectAfterLocation=(self==top)?window.location:parent.window.location;if(expiredUrl&&countdownConfig.doRedirectOnComplete&&redirectAfterLocation.href!=expiredUrl){var searchQuery=(expiredUrl.indexOf('?')!=-1)?redirectAfterLocation.search.replace('?','&'):redirectAfterLocation.search;redirectAfterLocation.href=expiredUrl+searchQuery}}} if(countdownConfig.useTwoDeadlines&&(!countdownConfig.isFirstDeadline)&&countdownConfig.afterUrl){var meta=document.createElement('meta');meta.name="referrer";meta.content="no-referrer";document.getElementsByTagName('head')[0].appendChild(meta);if(countdownConfig.pass_to_after==0&&window.location.href!=countdownConfig.afterUrl){window.location=countdownConfig.afterUrl;return} if(countdownConfig.pass_to_after==1){var redirectAfterLocation=(self==top)?window.location:parent.window.location;if(countdownConfig.doRedirectOnComplete&&redirectAfterLocation.href!=expiredUrl){var searchQuery=(countdownConfig.afterUrl.indexOf('?')!=-1)?redirectAfterLocation.search.replace('?','&'):redirectAfterLocation.search;redirectAfterLocation.href=countdownConfig.afterUrl+searchQuery}}} clientParams.showCountdownNow=showCountdownYet(countdownConfig);if(clientParams.showCountdownNow){var dBefore=document.getElementsByClassName('deadlinebefore');if(dBefore.length>0){for(n=0;n":'';var bar="
"+closeBarHtml+"
"+countdownConfig.floatingBarText+"
";var e=document.createElement('div');e.innerHTML=generateFloatBarInlineStyleCss(appConfig,countdownConfig,!1);if(typeof getQueryParams=='function'){var query=getQueryParams(document.location.search);if(query.floatingBar!=0){while(e.firstChild){document.body.appendChild(e.firstChild)}}}else{while(e.firstChild){document.body.appendChild(e.firstChild)}} if(countdownConfig.floatingBarBottom){document.body.className+=" df-bottom-padding-150"}else{document.body.className+=" df-top-padding"} if(countdownConfig.floatingBarUseGradient==1){document.getElementById('floating-cta').className+=countdownConfig.floatingBarGradientCss}else{document.getElementById('floating-cta').style.backgroundColor=countdownConfig.floatingBarBackgroundColor} loadFloatingBarHTML('#floating-cta #floating-cta-inner #fbar-side',d);if(typeof clientParams.floatingBarDelaySeconds!=='undefined') {countdownConfig.floatingBarDelaySeconds=clientParams.floatingBarDelaySeconds} if(countdownConfig.floatingBarDelaySeconds>-1&&countdownConfig.promotionExpired===!1){var totalDelay=countdownConfig.floatingBarDelaySeconds*1000;if(totalDelay==0&&(countdownConfig.countdownType!==1)){totalDelay=500} setTimeout(function(){document.getElementById('floating-cta').dfFadeIn();do_resize();resizeHtmlTimer()},parseInt(totalDelay))}} if(window.loadInlineCountdown||(!countdownConfig.useFloatingBar&&countdownConfig.countdownType!==3)||(typeof getQueryParams=='function'&&countdownConfig.useFloatingBar&&query.floatingBar==0)){var countdownWrap=document.getElementsByClassName('ddio_countdown_wrap');for(i=0;i #timer');if(countdownTimer){timer.innerHTML=d;timer.style.float=none;timer.style.left='-100px';timer.style.display='block'} var countdownLP=document.querySelector('ul#countdown');if(countdownLP){countdownLP.style.display="none"} var countdownLPFirstCountdown=document.querySelector('.counter-body .first_countdown');if(countdownLP){countdownLP.style["text-align"]="left"}} var closebar=document.getElementById("closebar");if(closebar){closebar.addEventListener("click",function(){document.getElementById('floating-cta').style.display="none";setCookie('nofloatingbar','true',30);document.body.className=document.body.className.replace(" df-bottom-padding-150","");document.body.className=document.body.className.replace(" df-top-padding","");return!1})}} function showCountdownYet(countdownConfig) {if(countdownConfig.delayShow==1){var timeNow=new Date();utc=timeNow.getTime()+(timeNow.getTimezoneOffset()*60000);nd=new Date(utc+(3600000*countdownConfig.tzOffset));showLog(nd,'Date with Timezone Offset:');countdownConfig.countdownTimeDate=new Date(countdownConfig.countdownTimeDate);countdownConfig.hoursLeftUntilDeadline=Math.floor((countdownConfig.countdownTimeDate-nd)/36e5);countdownConfig.hoursLeftUntilShow=countdownConfig.hoursLeftUntilDeadline-countdownConfig.hoursLeftUntilReveal;return(countdownConfig.hoursLeftUntilShow<0)?1:0} return 1} function showCountdown(countdownConfig){var exitnow=!1;countdownConfig.tzOffset=countdownConfig.tzOffset;if(countdownConfig.autoTimeZone){tzOffset=(new Date().getTimezoneOffset()/60)*(-1)} countdownConfig.countdownTimeDate=new Date(countdownConfig.countdownTimeDate);var firstCountdown=document.getElementsByClassName("first_countdown");var countdownTimeDate=new Date(countdownConfig.countdownTimeDate);countdownConfig.target_date=countdownTimeDate;countdownConfig.time_zone=countdownConfig.tzOffset;countdownConfig.complete=function(){countdownCompleted=!0;if(countdownConfig.doRedirectOnComplete){document.getElementsByTagName('body')[0].style.display="none";if(!exitnow){};window.onbeforeunload=null;window.location=(countdownConfig.useTwoDeadlines)?countdownConfig.secondAfterUrl:countdownConfig.afterUrl;exitnow=!0;return} var countdowns=document.getElementsByClassName('ddio_countdown_wrap');for(var i=0;i0){for(n=0;n0){for(n=0;n0){for(n=0;n0){for(n=0;n