ngx-countdown-timer
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -32,11 +32,6 @@ import { Component, Input, NgModule } from '@angular/core'; | ||
} | ||
if (datetime < now) { | ||
var /** @type {?} */ milisec_diff = now - datetime; | ||
} | ||
else { | ||
var /** @type {?} */ milisec_diff = datetime - now; | ||
} | ||
var /** @type {?} */ milisec_diff = datetime - now; | ||
var /** @type {?} */ days = Math.floor(milisec_diff / 1000 / 60 / (60 * 24)); | ||
var /** @type {?} */ date_diff = new Date(milisec_diff); | ||
var /** @type {?} */ day_string = (days) ? days + " " : ""; | ||
var /** @type {?} */ day_string = (days) ? this.twoDigit(days) + ":" : ""; | ||
return day_string + this.twoDigit(date_diff.getHours()) + | ||
@@ -43,0 +38,0 @@ ":" + this.twoDigit(date_diff.getMinutes()) + ":" |
@@ -35,11 +35,6 @@ (function (global, factory) { | ||
} | ||
if (datetime < now) { | ||
var /** @type {?} */ milisec_diff = now - datetime; | ||
} | ||
else { | ||
var /** @type {?} */ milisec_diff = datetime - now; | ||
} | ||
var /** @type {?} */ milisec_diff = datetime - now; | ||
var /** @type {?} */ days = Math.floor(milisec_diff / 1000 / 60 / (60 * 24)); | ||
var /** @type {?} */ date_diff = new Date(milisec_diff); | ||
var /** @type {?} */ day_string = (days) ? days + " " : ""; | ||
var /** @type {?} */ day_string = (days) ? this.twoDigit(days) + ":" : ""; | ||
return day_string + this.twoDigit(date_diff.getHours()) + | ||
@@ -46,0 +41,0 @@ ":" + this.twoDigit(date_diff.getMinutes()) + ":" |
{ | ||
"name": "ngx-countdown-timer", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9703
208