Changed graphics panel (stick to right) + corrected month in date indicator
This commit is contained in:
@ -961,12 +961,26 @@ let graphs = (function (){
|
||||
|
||||
let graphicsPanel = container.parentNode.querySelector('.panel')
|
||||
graphicsPanel.classList.add('graphics');
|
||||
if(!created){
|
||||
globalControls.loadControls(graphicsPanel);
|
||||
globalIndicators.loadIndicators(graphicsPanel);
|
||||
}
|
||||
|
||||
|
||||
// The cross to display "main" panel at the location of the graphs
|
||||
let gotoMainElm = document.createElement('div');
|
||||
gotoMainElm.innerHTML = "×";
|
||||
gotoMainElm.addEventListener('click', function () {
|
||||
currentSwiper.enableSwiping(true);
|
||||
console.log("MAIN")
|
||||
currentSwiper.slideNext();
|
||||
});
|
||||
|
||||
if(!created){
|
||||
globalIndicators.loadIndicators(graphicsPanel);
|
||||
globalControls.loadControls(graphicsPanel);
|
||||
graphicsPanel.appendChild(gotoMainElm);
|
||||
gotoMainElm.style.marginTop = "auto";
|
||||
gotoMainElm.style.marginBottom = "auto";
|
||||
gotoMainElm.style.marginRight = "6px";
|
||||
gotoMainElm.style.marginLeft = "6px";
|
||||
created = true;
|
||||
}
|
||||
|
||||
// gotoNowElm.addEventListener('click', gotoNow);
|
||||
//gotoNowElm.innerHTML = "go to now";
|
||||
@ -1013,9 +1027,6 @@ let graphs = (function (){
|
||||
// container.parentNode.querySelector('.panel span').appendChild(zoomMode);
|
||||
}
|
||||
|
||||
// The cross to display "main" panel at the location of the graphs
|
||||
let gotoMainElm = document.createElement('div');
|
||||
gotoMainElm.innerHTML = "×";
|
||||
let currentSwiper = swiper[f];
|
||||
|
||||
function setSlidingMode(mode) {
|
||||
@ -1027,16 +1038,7 @@ let graphs = (function (){
|
||||
currentSwiper.enableSwiping(false);
|
||||
})
|
||||
|
||||
gotoMainElm.addEventListener('click', function () {
|
||||
currentSwiper.enableSwiping(true);
|
||||
console.log("MAIN")
|
||||
currentSwiper.slideNext();
|
||||
});
|
||||
// container.parentNode.querySelector('.panel span').appendChild(gotoMainElm);
|
||||
if(!created){
|
||||
graphicsPanel.appendChild(gotoMainElm);
|
||||
created = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user