芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/Ultimate_VC_Addons/assets/min-js/countdown.min.js
!function(h){"use strict";var e="ult_countdown";h.JQPlugin.createPlugin({name:e,defaultOptions:{until:null,since:null,timezone:null,serverSync:null,format:"dHMS",layout:"",compact:!1,padZeroes:!1,significant:0,description:"",expiryUrl:"",expiryText:"",alwaysExpire:!1,onExpiry:null,onTick:null,tickInterval:1},regionalOptions:{"":{labels:["Years","Months","Weeks","Days","Hours","Minutes","Seconds"],labels1:["Year","Month","Week","Day","Hour","Minute","Second"],compactLabels:["y","m","w","d"],whichLabels:null,digits:["0","1","2","3","4","5","6","7","8","9"],timeSeparator:":",isRTL:!1}},_rtlClass:e+"-rtl",_sectionClass:e+"-section",_amountClass:e+"-amount",_periodClass:e+"-period",_rowClass:e+"-row",_holdingClass:e+"-holding",_showClass:e+"-show",_descrClass:e+"-descr",_timerElems:[],_init:function(){var i=this,s=(this._super(),this._serverSyncs=[],"function"==typeof Date.now?Date.now:function(){return(new Date).getTime()}),n=window.performance&&"function"==typeof window.performance.now;var o=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||null,r=0;!o||h.noRequestAnimationFrame?(h.noRequestAnimationFrame=null,h.countdown._timer=setInterval(function(){i._updateElems()},1e3)):(r=window.animationStartTime||window.webkitAnimationStartTime||window.mozAnimationStartTime||window.oAnimationStartTime||window.msAnimationStartTime||s(),o(function e(t){t=t<1e12?n?window.performance.now()+window.performance.timing.navigationStart:s():t||s();1e3<=t-r&&(i._updateElems(),r=t),o(e)}))},UTCDate:function(e,t,i,s,n,o,r,a){"object"==typeof t&&t instanceof Date&&(a=t.getMilliseconds(),r=t.getSeconds(),o=t.getMinutes(),n=t.getHours(),s=t.getDate(),i=t.getMonth(),t=t.getFullYear());var l=new Date;return l.setUTCFullYear(t),l.setUTCDate(1),l.setUTCMonth(i||0),l.setUTCDate(s||1),l.setUTCHours(n||0),l.setUTCMinutes((o||0)-(Math.abs(e)<30?60*e:e)),l.setUTCSeconds(r||0),l.setUTCMilliseconds(a||0),l},periodsToSeconds:function(e){return 31557600*e[0]+2629800*e[1]+604800*e[2]+86400*e[3]+3600*e[4]+60*e[5]+e[6]},resync:function(){var n=this;h("."+this._getMarker()).each(function(){var e=h.data(this,n.name);if(e.options.serverSync){for(var t,i=null,s=0;s
")),this._resetExtraLabels(t.options,i);var s=t.options.timezone!==i.timezone,i=(h.extend(t.options,i),this._adjustSettings(e,t,!this._eqNull(i.until)||!this._eqNull(i.since)||s),new Date);(t._since&&t._since
i)&&this._addElem(e[0]),this._updateCountdown(e,t)},_updateCountdown:function(e,t){var i;e=e.jquery?e:h(e),(t=t||this._getInst(e))&&(e.html(this._generateHTML(t)).toggleClass(this._rtlClass,t.options.isRTL),"pause"!==t._hold&&h.isFunction(t.options.onTick)&&(i="lap"!==t._hold?t._periods:this._calculatePeriods(t,t._show,t.options.significant,new Date),1!==t.options.tickInterval&&this.periodsToSeconds(i)%t.options.tickInterval!=0||t.options.onTick.apply(e[0],[i])),"pause"!==t._hold&&(t._since?t._now.getTime()
=t._until.getTime())&&!t._expiring?(t._expiring=!0,(this._hasElem(e[0])||t.options.alwaysExpire)&&(this._removeElem(e[0]),h.isFunction(t.options.onExpiry)&&t.options.onExpiry.apply(e[0],[]),t.options.expiryText&&(i=t.options.layout,t.options.layout=t.options.expiryText,this._updateCountdown(e[0],t),t.options.layout=i),t.options.expiryUrl)&&(window.location=t.options.expiryUrl),t._expiring=!1):"pause"===t._hold&&this._removeElem(e[0]))},_resetExtraLabels:function(e,t){var i=null;for(i in t)i.match(/[Ll]abels[02-9]|compactLabels1/)&&(e[i]=t[i]);for(i in e)i.match(/[Ll]abels[02-9]|compactLabels1/)&&void 0===t[i]&&(e[i]=null)},_eqNull:function(e){return null==e},_adjustSettings:function(e,t,i){for(var s=null,n=0;n
'+s._minDigits(i,i._periods[e],u)+'
'+(t||p)[e]+"
":""}var p=i.options.compact?i.options.compactLabels:i.options.labels,c=i.options.whichLabels||this._normalLabels,u=i.options.padZeroes?2:1;return i.options.layout?this._buildLayout(i,o,i.options.layout,i.options.compact,i.options.significant,a):(i.options.compact?'
'+l(0)+l(1)+l(2)+l(3)+(o[4]?this._minDigits(i,i._periods[4],2):"")+(o[5]?(o[4]?i.options.timeSeparator:"")+this._minDigits(i,i._periods[5],2):"")+(o[6]?(o[4]||o[5]?i.options.timeSeparator:"")+this._minDigits(i,i._periods[6],2):""):'
'+_(0)+_(1)+_(2)+_(3)+_(4)+_(5)+_(6))+"
"+(i.options.description?'
'+i.options.description+"
":"")},_buildLayout:function(i,e,t,s,n,o){for(var r=i.options[s?"compactLabels":"labels"],a=i.options.whichLabels||this._normalLabels,l=function(e){return(i.options[(s?"compactLabels":"labels")+a(i._periods[e])]||r)[e]},_=function(e,t){return i.options.digits[Math.floor(e/t)%10]},l={desc:i.options.description,sep:i.options.timeSeparator,yl:l(0),yn:this._minDigits(i,i._periods[0],1),ynn:this._minDigits(i,i._periods[0],2),ynnn:this._minDigits(i,i._periods[0],3),y1:_(i._periods[0],1),y10:_(i._periods[0],10),y100:_(i._periods[0],100),y1000:_(i._periods[0],1e3),ol:l(1),on:this._minDigits(i,i._periods[1],1),onn:this._minDigits(i,i._periods[1],2),onnn:this._minDigits(i,i._periods[1],3),o1:_(i._periods[1],1),o10:_(i._periods[1],10),o100:_(i._periods[1],100),o1000:_(i._periods[1],1e3),wl:l(2),wn:this._minDigits(i,i._periods[2],1),wnn:this._minDigits(i,i._periods[2],2),wnnn:this._minDigits(i,i._periods[2],3),w1:_(i._periods[2],1),w10:_(i._periods[2],10),w100:_(i._periods[2],100),w1000:_(i._periods[2],1e3),dl:l(3),dn:this._minDigits(i,i._periods[3],1),dnn:this._minDigits(i,i._periods[3],2),dnnn:this._minDigits(i,i._periods[3],3),d1:_(i._periods[3],1),d10:_(i._periods[3],10),d100:_(i._periods[3],100),d1000:_(i._periods[3],1e3),hl:l(4),hn:this._minDigits(i,i._periods[4],1),hnn:this._minDigits(i,i._periods[4],2),hnnn:this._minDigits(i,i._periods[4],3),h1:_(i._periods[4],1),h10:_(i._periods[4],10),h100:_(i._periods[4],100),h1000:_(i._periods[4],1e3),ml:l(5),mn:this._minDigits(i,i._periods[5],1),mnn:this._minDigits(i,i._periods[5],2),mnnn:this._minDigits(i,i._periods[5],3),m1:_(i._periods[5],1),m10:_(i._periods[5],10),m100:_(i._periods[5],100),m1000:_(i._periods[5],1e3),sl:l(6),sn:this._minDigits(i,i._periods[6],1),snn:this._minDigits(i,i._periods[6],2),snnn:this._minDigits(i,i._periods[6],3),s1:_(i._periods[6],1),s10:_(i._periods[6],10),s100:_(i._periods[6],100),s1000:_(i._periods[6],1e3)},p=t,c=0;c<=6;c++)var u="yowdhms".charAt(c),u=new RegExp("\\{"+u+"<\\}([\\s\\S]*)\\{"+u+">\\}","g"),p=p.replace(u,!n&&e[c]||n&&o[c]?"$1":"");return h.each(l,function(e,t){e=new RegExp("\\{"+e+"\\}","g");p=p.replace(e,t)}),p},_minDigits:function(e,t,i){return(t=""+t).length>=i?this._translateDigits(e,t):this._translateDigits(e,(t="0000000000"+t).substr(t.length-i))},_translateDigits:function(t,e){return(""+e).replace(/[0-9]/g,function(e){return t.options.digits[e]})},_determineShow:function(e){var e=e.options.format,t=[];return t[0]=e.match("y")?"?":e.match("Y")?"!":null,t[1]=e.match("o")?"?":e.match("O")?"!":null,t[2]=e.match("w")?"?":e.match("W")?"!":null,t[3]=e.match("d")?"?":e.match("D")?"!":null,t[4]=e.match("h")?"?":e.match("H")?"!":null,t[5]=e.match("m")?"?":e.match("M")?"!":null,t[6]=e.match("s")?"?":e.match("S")?"!":null,t},_calculatePeriods:function(e,i,t,s){e._now=s,e._now.setMilliseconds(0);function n(e,t){_[e]=i[e]?Math.floor(p/t):0,p-=_[e]*t}var o,r,a,l=new Date(e._now.getTime()),_=(e._since?s.getTime()
e._until.getTime()&&(e._now=s=l)),[0,0,0,0,0,0,0]),p=((i[0]||i[1])&&(o=this._getDaysInMonth(s.getFullYear(),s.getMonth()),a=this._getDaysInMonth(l.getFullYear(),l.getMonth()),a=l.getDate()===s.getDate()||l.getDate()>=Math.min(o,a)&&s.getDate()>=Math.min(o,a),r=function(e){return 60*(60*e.getHours()+e.getMinutes())+e.getSeconds()},a=Math.max(0,12*(l.getFullYear()-s.getFullYear())+l.getMonth()-s.getMonth()+(l.getDate()
a&&s.setDate(a),s.setFullYear(s.getFullYear()+_[0]),s.setMonth(s.getMonth()+_[1]),r)&&s.setDate(a),Math.floor((l.getTime()-s.getTime())/1e3)),c=null;if(n(2,604800),n(3,86400),n(4,3600),n(5,60),n(6,1),0
=d&&(_[h]=0,p=1),0