|
|
@ -22,7 +22,7 @@ if(typeof VMM.Timeline != 'undefined' && typeof VMM.Timeline.TimeNav == 'undefin |
|
|
|
/* ELEMENTS |
|
|
|
/* ELEMENTS |
|
|
|
================================================== */ |
|
|
|
================================================== */ |
|
|
|
var $timenav, $content, $time, $timeintervalminor, $timeinterval, $timeintervalmajor, $timebackground,
|
|
|
|
var $timenav, $content, $time, $timeintervalminor, $timeinterval, $timeintervalmajor, $timebackground,
|
|
|
|
$timeintervalbackground, $timenavline, $timeintervalminor_minor, $toolbar, $zoomin, $zoomout; |
|
|
|
$timeintervalbackground, $timenavline, $timenavindicator, $timeintervalminor_minor, $toolbar, $zoomin, $zoomout; |
|
|
|
|
|
|
|
|
|
|
|
/* ADD to Config |
|
|
|
/* ADD to Config |
|
|
|
================================================== */ |
|
|
|
================================================== */ |
|
|
@ -746,7 +746,6 @@ if(typeof VMM.Timeline != 'undefined' && typeof VMM.Timeline.TimeNav == 'undefin |
|
|
|
var _largest_pos = 0; |
|
|
|
var _largest_pos = 0; |
|
|
|
|
|
|
|
|
|
|
|
VMM.attachElement(_element_parent, ""); |
|
|
|
VMM.attachElement(_element_parent, ""); |
|
|
|
|
|
|
|
|
|
|
|
_interval.date = new Date(data[0].startdate.getFullYear(), 0, 1, 0,0,0); |
|
|
|
_interval.date = new Date(data[0].startdate.getFullYear(), 0, 1, 0,0,0); |
|
|
|
|
|
|
|
|
|
|
|
for(var i = 0; i < Math.ceil(_interval.number) + 1; i++) { |
|
|
|
for(var i = 0; i < Math.ceil(_interval.number) + 1; i++) { |
|
|
@ -870,7 +869,6 @@ if(typeof VMM.Timeline != 'undefined' && typeof VMM.Timeline.TimeNav == 'undefin |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
_array.push(_obj); |
|
|
|
_array.push(_obj); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
VMM.Lib.width($timeintervalminor_minor, _largest_pos); |
|
|
|
VMM.Lib.width($timeintervalminor_minor, _largest_pos); |
|
|
@ -895,6 +893,7 @@ if(typeof VMM.Timeline != 'undefined' && typeof VMM.Timeline.TimeNav == 'undefin |
|
|
|
$timeinterval = VMM.appendAndGetElement($time, "<div>", "time-interval"); |
|
|
|
$timeinterval = VMM.appendAndGetElement($time, "<div>", "time-interval"); |
|
|
|
$timebackground = VMM.appendAndGetElement(layout, "<div>", "timenav-background"); |
|
|
|
$timebackground = VMM.appendAndGetElement(layout, "<div>", "timenav-background"); |
|
|
|
$timenavline = VMM.appendAndGetElement($timebackground, "<div>", "timenav-line"); |
|
|
|
$timenavline = VMM.appendAndGetElement($timebackground, "<div>", "timenav-line"); |
|
|
|
|
|
|
|
$timenavindicator = VMM.appendAndGetElement($timebackground, "<div>", "timenav-indicator"); |
|
|
|
$timeintervalbackground = VMM.appendAndGetElement($timebackground, "<div>", "timenav-interval-background", "<div class='top-highlight'></div>"); |
|
|
|
$timeintervalbackground = VMM.appendAndGetElement($timebackground, "<div>", "timenav-interval-background", "<div class='top-highlight'></div>"); |
|
|
|
$toolbar = VMM.appendAndGetElement(layout, "<div>", "toolbar"); |
|
|
|
$toolbar = VMM.appendAndGetElement(layout, "<div>", "toolbar"); |
|
|
|
|
|
|
|
|
|
|
@ -949,7 +948,7 @@ if(typeof VMM.Timeline != 'undefined' && typeof VMM.Timeline.TimeNav == 'undefin |
|
|
|
timespan = getDateFractions((data[data.length - 1].enddate) - (data[0].startdate), true); |
|
|
|
timespan = getDateFractions((data[data.length - 1].enddate) - (data[0].startdate), true); |
|
|
|
trace(timespan); |
|
|
|
trace(timespan); |
|
|
|
calculateInterval(); |
|
|
|
calculateInterval(); |
|
|
|
|
|
|
|
|
|
|
|
/* DETERMINE DEFAULT INTERVAL TYPE |
|
|
|
/* DETERMINE DEFAULT INTERVAL TYPE |
|
|
|
millenium, ages, epoch, era and eon are not working yet |
|
|
|
millenium, ages, epoch, era and eon are not working yet |
|
|
|
================================================== */ |
|
|
|
================================================== */ |
|
|
|