{"size": 2157, "ext": "js", "max_stars_repo_path": "public/plugins/clock/dscountdown.min.js", "max_stars_repo_name": "vikassaini26/yarn", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/plugins/clock/dscountdown.min.js", "max_issues_repo_name": "vikassaini26/yarn", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/plugins/clock/dscountdown.min.js", "max_forks_repo_name": "vikassaini26/yarn", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 2157.0, "max_line_length": 2157, "alphanum_fraction": 0.6569309226}
!function(e){e.fn.dsCountDown=function(s){var l=this,n=1e3,t=null,d=!1,i=0,o=1,a=0,u=0,m=0,v=0,r=0,c=null,h=null,f=null,S=null,D={startDate:new Date,endDate:null,elemSelDays:"",elemSelHours:"",elemSelMinutes:"",elemSelSeconds:"",theme:"white",titleDays:"Days",titleHours:"Hours",titleMinutes:"Minutes",titleSeconds:"Seconds",onBevoreStart:null,onClocking:null,onFinish:null},y=e.extend({},D,s);if(this.length>1)return this.each(function(){e(this).dsCountDown(s)}),this;var M=function(){if(y.elemSelSeconds?S=l.find(y.elemSelSeconds):(l.prepend('<div class="ds-element ds-element-seconds">							<div class="ds-element-value ds-seconds">00</div>							<div class="ds-element-title">'+y.titleSeconds+"</div>						</div>"),S=l.find(".ds-seconds")),y.elemSelMinutes?f=l.find(y.elemSelMinutes):(l.prepend('<div class="ds-element ds-element-minutes">							<div class="ds-element-value ds-minutes">00</div>							<div class="ds-element-title">'+y.titleMinutes+"</div>						</div>"),f=l.find(".ds-minutes")),y.elemSelHours?h=l.find(y.elemSelHours):(l.prepend('<div class="ds-element ds-element-hours">							<div class="ds-element-value ds-hours">00</div>							<div class="ds-element-title">'+y.titleHours+"</div>						</div>"),h=l.find(".ds-hours")),y.elemSelDays?c=l.find(y.elemSelDays):(l.prepend('<div class="ds-element ds-element-days">							<div class="ds-element-value ds-days">00</div>							<div class="ds-element-title">'+y.titleDays+"</div>						</div>"),c=l.find(".ds-days")),l.addClass("dsCountDown"),l.addClass("ds-"+y.theme),y.startDate&&y.endDate&&(a=y.endDate.getTime()-y.startDate.getTime(),a>0)){var e=a/1e3,s=e%86400,n=s%3600;i=e,r=Math.floor(e/86400),v=Math.floor(s/3600),m=Math.floor(n/60),u=Math.floor(n%60)}C()},p=function(e){d&&(clearInterval(t),d=!1),e&&e(l)},C=function(){d||(i>0?(y.onBevoreStart&&y.onBevoreStart(l),t=setInterval(function(){i>0?(i-=o,u-=o,0>=u&&(m>0||v>0||r>0)&&(m--,u=60),0>=m&&(v>0||r>0)&&(v--,m=60),0>=v&&r>0&&(r--,v=24),c&&c.html(10>r?"0"+r:r),h&&h.html(10>v?"0"+v:v),f&&f.html(10>m?"0"+m:m),S&&S.html(10>u?"0"+u:u),y.onClocking&&y.onClocking(l)):p(y.onFinish)},n),d=!0):y.onFinish&&y.onFinish(l))};M()}}(jQuery);