util.js 716 Bytes
function getQuery(t){var i=window.location.search.match(new RegExp("[?&]"+t+"=([^&]+)","i"));if(!(null==i||i.length<1))return decodeURIComponent(i[1])}getCDNFile=function(t){var i=t.substring(t.indexOf("/uploads/"),t.indexOf("?"));return i};var timer={options:{timer:null,dom:null},init:function(t){this.options.dom=t,this.startTimer()},getTimer:function(){var t=this.options.dom,i=1,n=0,e=0,o=1,r=1;return function(){o>0&&o%60==0&&(e+=1,o=0),e>0&&e%60==0&&(n+=1,e=0),i=(n<10?"0"+n:n)+":"+(e<10?"0"+e:e)+":"+(o<10?"0"+o:o),t.html(i).val(r),o+=1,r+=1}},startTimer:function(){var t=this.getTimer();this.options.timer=setInterval(t,1e3)},stopTimer:function(){clearInterval(this.options.timer),this.options.timer=null}};