Swiper removed
- Swiper removal work in progress + Fine debugging for every js-file
This commit is contained in:
@ -511,11 +511,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");
|
||||
;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -526,7 +528,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]}
|
||||
@ -1011,16 +1013,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');
|
||||
@ -1112,7 +1114,7 @@ let graphs = (function (){
|
||||
"/updategraph?" +
|
||||
"id=" + clientID).getJSON().then(function(data) {
|
||||
setLiveMode(data.live);
|
||||
console.log('LIVE create', liveMode)
|
||||
// console.log('LIVE create', liveMode)
|
||||
})
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user