Swiper removed

- Swiper removal work in progress
+ Fine debugging for every js-file
This commit is contained in:
Daniel
2025-03-17 11:07:50 +01:00
committed by Markus Zolliker
parent c87d08d39f
commit 8dc8839bf0
8 changed files with 420 additions and 157 deletions

View File

@@ -510,11 +510,13 @@ let graphs = (function (){
if (liveMode && cursorLinePos === null)
// gotoNowElm.innerHTML = '';
// globalControls.getControlsMap()[goToNowKey].changeToAlt();
console.log("Need to change to nothing");
// console.log("Need to change to nothing");
;
else
// gotoNowElm.innerHTML = 'go to now';
// globalControls.getControlsMap()[goToNowKey].changeToMain();
console.log("Need to change to seen");
// console.log("Need to change to seen");
;
}
/**
@@ -525,7 +527,7 @@ let graphs = (function (){
* @param {{tag:string, unit:string, curves:[{name:string, label:string, color:string}]}} block - The information of the block to create
*/
function createGraph(gindex, block){
console.log("clear for create graph", gindex)
// console.log("clear for create graph", gindex)
clear(gindex);
tag_dict[block.tag] = gindex;
let dict = {} // {string: [name:string, label:string, color:string]}
@@ -1021,16 +1023,16 @@ let graphs = (function (){
let f = 0;
insertSlide(f, " ", "graphics", container);
let currentSwiper = swiper[f];
// let currentSwiper = swiper[f];
function setSlidingMode(mode) {
currentSwiper.params.noSwipingClass = mode ? "allow-swipe" : "swiper-slide-main";
}
// function setSlidingMode(mode) {
// currentSwiper.params.noSwipingClass = mode ? "allow-swipe" : "swiper-slide-main";
// }
currentSwiper.enableSwiping(false);
currentSwiper.on('reachBeginning', function () {
currentSwiper.enableSwiping(false);
})
// currentSwiper.enableSwiping(false);
// currentSwiper.on('reachBeginning', function () {
// currentSwiper.enableSwiping(false);
// })
let graphicsPanel = container.parentNode.querySelector('.panel')
graphicsPanel.classList.add('graphics');
@@ -1122,7 +1124,7 @@ let graphs = (function (){
"/updategraph?" +
"id=" + clientID).getJSON().then(function(data) {
setLiveMode(data.live);
console.log('LIVE create', liveMode)
// console.log('LIVE create', liveMode)
})
}