|
@ -34,10 +34,10 @@ function CustomTime (body, options) { |
|
|
|
|
|
|
|
|
this.eventParams = {}; // stores state parameters while dragging the bar
|
|
|
this.eventParams = {}; // stores state parameters while dragging the bar
|
|
|
|
|
|
|
|
|
|
|
|
this.setOptions(options); |
|
|
|
|
|
|
|
|
// create the DOM
|
|
|
// create the DOM
|
|
|
this._create(); |
|
|
this._create(); |
|
|
|
|
|
|
|
|
this.setOptions(options); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
CustomTime.prototype = new Component(); |
|
|
CustomTime.prototype = new Component(); |
|
@ -63,7 +63,7 @@ CustomTime.prototype.setOptions = function(options) { |
|
|
CustomTime.prototype._create = function() { |
|
|
CustomTime.prototype._create = function() { |
|
|
var bar = document.createElement('div'); |
|
|
var bar = document.createElement('div'); |
|
|
bar['custom-time'] = this; |
|
|
bar['custom-time'] = this; |
|
|
bar.className = 'vis-custom-time'; |
|
|
|
|
|
|
|
|
bar.className = 'vis-custom-time ' + (this.options.id || ''); |
|
|
bar.style.position = 'absolute'; |
|
|
bar.style.position = 'absolute'; |
|
|
bar.style.top = '0px'; |
|
|
bar.style.top = '0px'; |
|
|
bar.style.height = '100%'; |
|
|
bar.style.height = '100%'; |
|
|