forked from 0x2620/oxjs
modularize oxui
This commit is contained in:
parent
2e3292e9ce
commit
0024af978c
106 changed files with 16127 additions and 47034 deletions
25
source/js/Ox.CalendarDate.js
Normal file
25
source/js/Ox.CalendarDate.js
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
Ox.CalendarDate = function(options) {
|
||||
|
||||
var self = {},
|
||||
that = this;
|
||||
|
||||
['start', 'stop'].forEach(function(v) {
|
||||
var date = self.options[v];
|
||||
if (Ox.isString(date)) {
|
||||
date = new Date(self.options[v]);
|
||||
}
|
||||
});
|
||||
|
||||
self.duration = self.options.stop - self.options.start;
|
||||
|
||||
that.format = function() {
|
||||
|
||||
};
|
||||
|
||||
that.formatDuration = function() {
|
||||
|
||||
};
|
||||
|
||||
return that;
|
||||
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue