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