Removed live indicator + began to write graphics menu
This commit is contained in:
@ -270,7 +270,6 @@ let globalControls = (function (){
|
||||
})();
|
||||
|
||||
let datesKey = "dates-indicator";
|
||||
let liveKey = "live-indicator";
|
||||
|
||||
let globalIndicators = (function (){
|
||||
|
||||
@ -279,16 +278,12 @@ let globalIndicators = (function (){
|
||||
function loadIndicators(panel){
|
||||
let leftDate = Date.now() - 30*60*1000;
|
||||
let datesIndicator = new DatesIndicator(leftDate);
|
||||
let liveIndicator = new LiveStateIndicator();
|
||||
|
||||
panel.appendChild(datesIndicator);
|
||||
panel.appendChild(liveIndicator);
|
||||
liveIndicator.changeToDisable();
|
||||
liveIndicator.style.marginLeft = "auto"; //sticks element to the right
|
||||
datesIndicator.style.marginLeft = "auto";
|
||||
datesIndicator.style.marginRight = "auto";
|
||||
|
||||
indicatorsMap[datesKey] = datesIndicator;
|
||||
indicatorsMap[liveKey] = liveIndicator;
|
||||
}
|
||||
|
||||
function getIndicatorsMap(){
|
||||
@ -424,8 +419,6 @@ let graphs = (function (){
|
||||
function setLiveMode(mode=null) {
|
||||
if (mode !== null){
|
||||
liveMode = mode;
|
||||
if(mode) globalIndicators.getIndicatorsMap()[liveKey].changeToEnable();
|
||||
else globalIndicators.getIndicatorsMap()[liveKey].changeToDisable();
|
||||
}
|
||||
if (liveMode && cursorLinePos === null)
|
||||
// gotoNowElm.innerHTML = '';
|
||||
|
Reference in New Issue
Block a user