Skip to content

Commit

Permalink
Dist version compiled
Browse files Browse the repository at this point in the history
  • Loading branch information
androidi committed Dec 26, 2017
1 parent c5d55b6 commit 3f87a1a
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 42 deletions.
29 changes: 21 additions & 8 deletions dist/calenstyle-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -3866,14 +3866,27 @@ CalenStyle.prototype = {
return iUnitDiff;
},

// Public Method
compareDates: function(dDate1, dDate2)
{
var to = this;
dDate1 = to._normalizeDateTime(dDate1, "START", "T");
dDate2 = to._normalizeDateTime(dDate2, "START", "T");
var iDateDiff = to.__getDifference("d", dDate1, dDate2);
return (iDateDiff === 0) ? iDateDiff: (iDateDiff/Math.abs(iDateDiff));
// Offset from UTC in minutes
_iUTCoffset: new Date().getTimezoneOffset() * $.CalenStyle.extra.iMS.m,

// Public Method
compareDates: function(dDate1, dDate2)
{
var to = this;

// Get timestamps as integers
var tsD1 = dDate1.getTime() - to._iUTCoffset;
var tsD2 = dDate2.getTime() - to._iUTCoffset;

// Calculate offsets from 00:00:00 hh:mm:ss
var iOffD1 = tsD1 % $.CalenStyle.extra.iMS.d;
var iOffD2 = tsD2 % $.CalenStyle.extra.iMS.d;

// Calculate date difference
var iDiff = (tsD1 - iOffD1 - (tsD2 - iOffD2));
var iDateDiff = Math.floor(iDiff / $.CalenStyle.extra.iMS.d);

return (iDateDiff === 0) ? iDateDiff: (iDateDiff/Math.abs(iDateDiff));
},

// Public Method
Expand Down
13 changes: 2 additions & 11 deletions dist/calenstyle-custom.min.js

Large diffs are not rendered by default.

31 changes: 22 additions & 9 deletions dist/calenstyle.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* -----------------------------------------------------------------------------
/* -----------------------------------------------------------------------------

CalenStyle - Responsive Event Calendar
Version 2.0.8
Expand Down Expand Up @@ -3870,14 +3870,27 @@ CalenStyle.prototype = {
return iUnitDiff;
},

// Public Method
compareDates: function(dDate1, dDate2)
{
var to = this;
dDate1 = to._normalizeDateTime(dDate1, "START", "T");
dDate2 = to._normalizeDateTime(dDate2, "START", "T");
var iDateDiff = to.__getDifference("d", dDate1, dDate2);
return (iDateDiff === 0) ? iDateDiff: (iDateDiff/Math.abs(iDateDiff));
// Offset from UTC in minutes
_iUTCoffset: new Date().getTimezoneOffset() * $.CalenStyle.extra.iMS.m,

// Public Method
compareDates: function(dDate1, dDate2)
{
var to = this;

// Get timestamps as integers
var tsD1 = dDate1.getTime() - to._iUTCoffset;
var tsD2 = dDate2.getTime() - to._iUTCoffset;

// Calculate offsets from 00:00:00 hh:mm:ss
var iOffD1 = tsD1 % $.CalenStyle.extra.iMS.d;
var iOffD2 = tsD2 % $.CalenStyle.extra.iMS.d;

// Calculate date difference
var iDiff = (tsD1 - iOffD1 - (tsD2 - iOffD2));
var iDateDiff = Math.floor(iDiff / $.CalenStyle.extra.iMS.d);

return (iDateDiff === 0) ? iDateDiff: (iDateDiff/Math.abs(iDateDiff));
},

// Public Method
Expand Down
15 changes: 2 additions & 13 deletions dist/calenstyle.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/calenstyle.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* -----------------------------------------------------------------------------
/* -----------------------------------------------------------------------------

CalenStyle - Responsive Event Calendar
Version 2.0.8
Expand Down

0 comments on commit 3f87a1a

Please sign in to comment.