Your IP : 3.139.97.40


Current Path : /proc/self/cwd/sudancam.sd/wp-content/plugins/ibtana-visual-editor/js/
Upload File :
Current File : //proc/self/cwd/sudancam.sd/wp-content/plugins/ibtana-visual-editor/js/jquery.ive-countdown.min.js

var $jscomp={scope:{},findInternal:function(a,f,e){a instanceof String&&(a=String(a));for(var g=a.length,b=0;b<g;b++){var c=a[b];if(f.call(e,c,b,a))return{i:b,v:c}}return{i:-1,v:void 0}}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,f,e){if(e.get||e.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[f]=e.value)};
$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,f,e,g){if(f){e=$jscomp.global;a=a.split(".");for(g=0;g<a.length-1;g++){var b=a[g];b in e||(e[b]={});e=e[b]}a=a[a.length-1];g=e[a];f=f(g);f!=g&&null!=f&&$jscomp.defineProperty(e,a,{configurable:!0,writable:!0,value:f})}};
$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,e){return $jscomp.findInternal(this,a,e).v}},"es6-impl","es3");
(function(a){function f(a){minus="";0>a&&(a=Math.abs(a),minus="- ");var b=Math.floor(a/86400),d=Math.floor(a%86400/3600),e=Math.floor(a%3600/60);a=Math.floor(a%60);return minus+(0<b?b+(1==b?" day ":" days "):"")+(0<d?d+(1==d?" hour ":" hours "):"")+(0<e?e+(1==e?" min. ":" mins. "):"")+(0<a?a+(1==a?" sec.":" secs."):"")}var e=0,g=0;a.fn.iveCountDown=function(b){if(void 0!=a(this)[0]){config={};a.extend(config,b);iveTargetTime=this.setIveibtanaiveTargetTime(config);a.data(a(this)[0],"iveTargetTime",
iveTargetTime);var c=a.parseJSON(iveCountAjax.ivenow);nowTime=new Date(c.now);browserTime=new Date;"true"===config.debug&&a("#"+config.id+"-jsnow").html(browserTime);timeOffset=Math.round((browserTime.getTime()-nowTime.getTime())/1E3);a.ajax({method:"GET",url:iveCountAjax.api_url+"now",beforeSend:function(a){a.setRequestHeader("X-WP-Nonce",iveCountAjax.api_nonce)},success:function(b){serverTime=new Date(c.now);restTime=new Date(b.date);g=Math.round((serverTime.getTime()-restTime.getTime())/1E3);"true"===
config.debug&&(e=Math.round((browserTime.getTime()-restTime.getTime())/1E3),a("#"+config.id+"-jstzone").html(f(e)),seconds=Math.floor((iveTargetTime.getTime()-restTime.getTime())/1E3),a("#"+config.id+"-jstime").html(b.date),a("#"+config.id+"-jsdiff").html(f(seconds)),a("#"+config.id+"-jscached").html(f(g)))},fail:function(a){console.log("error: ",a)}});style=config.style;a.data(a(this)[0],"style",config.style);a.data(a(this)[0],"status","play");a.data(a(this)[0],"adjusted","false");a.data(a(this)[0],
"id",config.id);config.event_id&&(a.data(a(this)[0],"event_id",config.event_id),a.ajax({url:iveCountAjax.ajaxurl,type:"post",dataType:"json",data:{action:"iveevents",event_id:config.event_id,countdownNonce:iveCountAjax.countdownNonce},success:a.proxy(function(b){a.data(a(this)[0],"eventObj",b)},this)}));config.launchtarget&&a.data(a(this)[0],"launchtarget",config.launchtarget);config.onComplete&&a.data(a(this)[0],"callback",config.onComplete);config.hangtime&&a.data(a(this)[0],"hangtime",config.hangtime);
a("#"+a(this).attr("id")+" ."+style+"-digit").each(function(b){digit=a(this).data("digit");a(this).html('<div class="tc_top"></div><div class="tc_bottom">'+digit+"</div>")});diffSecs=Math.floor((iveTargetTime.getTime()-nowTime.getTime())/1E3);a(this).doIveibtanaCountDown(a(this).attr("id"),diffSecs,500);return this}};a.fn.stopIveibtanaCountDown=function(){a.data(this[0],"status","stop")};a.fn.startIveibtanaCountDown=function(){a.data(this[0],"status","play");this.doIveibtanaCountDown(a(this).attr("id"),a.data(this[0],
"diffSecs"),500)};a.fn.setIveibtanaiveTargetTime=function(a){var b=new Date;a.targetDate?b=new Date(a.targetDate.month+"/"+a.targetDate.day+"/"+a.targetDate.year+" "+a.targetDate.hour+":"+a.targetDate.min+":"+a.targetDate.sec+(a.targetDate.utc?" UTC":"")):a.targetOffset&&(b.setFullYear(a.targetOffset.year+b.getFullYear()),b.setMonth(a.targetOffset.month+b.getMonth()),b.setDate(a.targetOffset.day+b.getDate()),b.setHours(a.targetOffset.hour+b.getHours()),b.setMinutes(a.targetOffset.min+b.getMinutes()),
b.setSeconds(a.targetOffset.sec+b.getSeconds()));return b};a.fn.doIveibtanaCountDown=function(b,c,d){$this=a("#"+b);style=a.data($this[0],"style");adjusted=a.data($this[0],"adjusted");seconds_elm=a("#"+b+" ."+style+"-seconds_dash");minutes_elm=a("#"+b+" ."+style+"-minutes_dash");hours_elm=a("#"+b+" ."+style+"-hours_dash");days_elm=a("#"+b+" ."+style+"-days_dash");weeks_elm=a("#"+b+" ."+style+"-weeks_dash");months_elm=a("#"+b+" ."+style+"-months_dash");years_elm=a("#"+b+" ."+style+"-years_dash");0>=c&&
"countup"!=a.data($this[0],"launchtarget")&&(c=0,a.data($this[0],"status","stop"));secs=Math.abs(c%60);mins=Math.floor(Math.abs(c/60)%60);dur=1E3;"false"===adjusted&&(dur=500);seconds_elm.length&&($this.dashIveibtanaChangeTo(b,style+"-seconds_dash",secs,d?d:500),mins!=minutes_elm.data("current")&&(adjusted="false"));if(59==secs||"false"===adjusted)if(mins!=minutes_elm.data("current")&&($this.dashIveibtanaChangeTo(b,style+"-minutes_dash",mins,d?d:dur),minutes_elm.data("current",mins)),59==mins||"false"===
adjusted)hours=Math.floor(Math.abs(c/60/60)%24),hours!=hours_elm.data("current")&&($this.dashIveibtanaChangeTo(b,style+"-hours_dash",hours,d?d:dur),23>hours&&hours_elm.data("current",hours)),23==hours&&hours!=hours_elm.data("current")&&($this.dashIveibtanaChangeTo(b,style+"-days_dash",days_elm.data("next"),d?d:1E3),hours_elm.data("current",hours),weeks_elm.length&&void 0!==weeks_elm.data("next")&&$this.dashIveibtanaChangeTo(b,style+"-weeks_dash",weeks_elm.data("next"),d?d:1E3),months_elm.length&&void 0!==
months_elm.data("next")&&$this.dashIveibtanaChangeTo(b,style+"-months_dash",months_elm.data("next"),d?d:1E3),years_elm=a("#"+b+" ."+style+"-years_dash"),years_elm.length&&void 0!==years_elm.data("next")&&$this.dashIveibtanaChangeTo(b,style+"-years_dash",years_elm.data("next"),d?d:1E3));a.data(a(this)[0],"adjusted","true");a.data($this[0],"event_id")&&$this.checkEvent(b,c);0<c||"countup"==a.data($this[0],"launchtarget")?"play"==a.data($this[0],"status")&&(t=setTimeout(function(){newTime=new Date;newTime.setSeconds(newTime.getSeconds()-
e);c=Math.floor((a.data($this[0],"iveTargetTime").getTime()-newTime.getTime())/1E3);$this.doIveibtanaCountDown(b,c)},1E3)):a.data($this[0],"callback")&&(a.data($this[0],"hangtime"),a.data($this[0],"callback")())};a.fn.dashIveibtanaChangeTo=function(b,c,d,e){$this=a("#"+b);style=a.data($this[0],"style");for(b=$this.find("."+c+" ."+style+"-digit").length-1;0<=b;b--){var f=d%10;d=(d-f)/10;$this.digitIveibtanaChangeTo("#"+$this.attr("id")+" ."+c+" ."+style+"-digit:eq("+b+")",f,e)}};a.fn.digitIveibtanaChangeTo=
function(b,c,d){d||(d=500);"undefined"!=typeof numTransObj&&(c=numTransObj[c]);a(b+" div.tc_top").html()!=c+""&&(a(b+" div.tc_top").css({display:"none"}),a(b+" div.tc_top").html(c?c:"0").stop(!0,!0,!0).slideDown(d),a(b+" div.tc_bottom").stop(!0,!0,!0).animate({height:""},d,function(){a(b+" div.tc_bottom").html(a(b+" div.tc_top").html());a(b+" div.tc_bottom").css({display:"block",height:""});a(b+" div.tc_top").hide().slideUp(10)}))};a.fn.checkEvent=function(){if(a.data(this[0],"eventObj")){var b=a.data(this[0],
"eventObj").tevent,c;for(c in b)if(b[c].hasOwnProperty("tevents_event_time")&&b[c].tevents_event_time==a.data(this[0],"diffSecs")&&(target_elem=b[c].hasOwnProperty("tevents_target_elem")&&"other"==b[c].tevents_event_target?b[c].tevents_target_elem:"#"+a.data(this[0],"id")+"-"+b[c].tevents_event_target,a(target_elem).html(b[c].tevents_event_content),b[c].tevents_event_function)){var d=window[b[c].tevents_event_function];"function"===typeof d&&d()}}}})(jQuery);