Some esponsivity bugfixes
This commit is contained in:
@@ -18,6 +18,7 @@ var writePermission = false;
|
||||
var menuMode = false;
|
||||
var panelOn = true;
|
||||
var firstState = 0;
|
||||
var showParams = false;
|
||||
|
||||
function Settings() {
|
||||
if (debug_main_daniel) {
|
||||
@@ -80,7 +81,7 @@ function to_bool(string) {
|
||||
// example: localhost:5000/SEAWebClient.html?hp=ldmzolliker:5000&dc=1
|
||||
// hostPort given and debugCommunication switched on
|
||||
new Settings()
|
||||
.treat("debugCommunication", "dc", 0, 0) // 1: debug synchronous comm. 2: debug syn and asyn comm
|
||||
.treat("debugCommunication", "dc", 0, 2) // 1: debug synchronous comm. 2: debug syn and asyn comm
|
||||
.treat("debugGraphics", "dg", to_bool, false)
|
||||
.treat("hostPort", "hp", 0, location.hostname + ":" + location.port)
|
||||
.treat("showMain", "sm", to_bool, true)
|
||||
@@ -104,7 +105,7 @@ if (window.instrument) {
|
||||
window.clientTags = args;
|
||||
}
|
||||
|
||||
console.log('TAGS', window.clientTags);
|
||||
// console.log('TAGS', window.clientTags);
|
||||
|
||||
function loadFirstBlocks() {
|
||||
if (debug_main_daniel) {
|
||||
@@ -183,38 +184,15 @@ window.onload = function() {
|
||||
document.body.removeChild(crossElement);
|
||||
}else{
|
||||
crossElement.onclick = function(){
|
||||
if(nColumns == 1){ // if the screen is small, the cross always slides to the next slide
|
||||
// let someSwiper = swiper[0];
|
||||
// someSwiper.enableSwiping(true); // needed because someSwiper might be the graphs swiper, and swiping is disable by default
|
||||
// someSwiper.slideNext(); // someSwiper can be anything, it will swipe to the next slide
|
||||
console.log(elements[0].style.display);
|
||||
// adjustGrid();
|
||||
if (elements[0].style.display == "inline-block") { // only graphics is visible
|
||||
elements[0].style.display = "none"; // hide graphics
|
||||
elements[1].style.display = "inline-block"; // show modules
|
||||
elements[2].style.display = "none"; // hide parameters
|
||||
} else if (elements[1].style.display == "inline-block") { // only modules are visible
|
||||
elements[0].style.display = "inline-block"; // show graphics
|
||||
elements[1].style.display = "none"; // hide modules
|
||||
elements[2].style.display = "none"; // hide parameters
|
||||
} else if (elements[2].style.display == "inline-block") { // only parameters are visible
|
||||
elements[0].style.display = "none"; // hide graphics
|
||||
elements[1].style.display = "inline-block"; // show modules
|
||||
elements[2].style.display = "none"; // hide parameters
|
||||
}
|
||||
}else{ // else it toggles the graphs window's size and triggers the adjustGrid()
|
||||
if (showParams) {
|
||||
showParams = false;
|
||||
} else {
|
||||
window.wideGraphs = ! window.wideGraphs;
|
||||
adjustGrid();
|
||||
}
|
||||
adjustGrid();
|
||||
}
|
||||
}
|
||||
|
||||
// NOT USED ANYMORE -> remove swiper
|
||||
// Create swiper-instances.
|
||||
// for (var s = 0; s < MAXBLOCK; s++) {
|
||||
// swiper[s] = insertSwiper(s);
|
||||
// }
|
||||
|
||||
var homeButton = document.getElementById("home-icon");
|
||||
|
||||
homeButton.onclick = function () {
|
||||
|
||||
Reference in New Issue
Block a user