status-icon with statuscode, use entire row as link to parameters
This commit is contained in:
@ -22,6 +22,7 @@ function createGrid() {
|
||||
for (var i = 0; i < 4; i++) {
|
||||
var element = document.createElement('div');
|
||||
element.classList.add("grid-element");
|
||||
element.classList.add("grid-element-"+i);
|
||||
document.getElementById("center").appendChild(element);
|
||||
elements.push(element);
|
||||
}
|
||||
@ -86,34 +87,22 @@ function adjustGrid() {
|
||||
style(0,"100vw","100vh");
|
||||
style(1); // hide
|
||||
style(2); // hide
|
||||
style(3); // hide
|
||||
return
|
||||
// style(3); // hide
|
||||
return;
|
||||
}
|
||||
|
||||
switch (nColumns) {
|
||||
case 1:
|
||||
if (menuMode) {
|
||||
leftWidth = Math.min(100, MINWIDTH / width * 100);
|
||||
style(0,leftWidth + "vw","100vh");
|
||||
style(1,leftWidth + "vw","100vh");
|
||||
} else {
|
||||
// we may want to switch to 90vh on safari ios (workaround)
|
||||
style(0,"100vw","100vh");
|
||||
style(0); // hide
|
||||
style(1,"100vw","100vh");
|
||||
style(2); // hide
|
||||
// style(3); // hide
|
||||
}
|
||||
|
||||
|
||||
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
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
rightWidth = Math.min(50, MINWIDTH / width * 100);
|
||||
@ -123,25 +112,29 @@ function adjustGrid() {
|
||||
style(0,leftWidth + "vw","100vh");
|
||||
style(1); // hide
|
||||
style(2,rightWidth + "vw","100vh");
|
||||
style(3); // hide
|
||||
// style(3); // hide
|
||||
} else {
|
||||
style(0,leftWidth + "vw","100vh");
|
||||
style(1,rightWidth + "vw","100vh");
|
||||
style(2); // hide
|
||||
style(3); // hide
|
||||
// style(3); // hide
|
||||
}
|
||||
} else {
|
||||
if (showParams) {
|
||||
style(0,leftWidth + "vw","100vh");
|
||||
style(1); // hide
|
||||
style(2,rightWidth + "vw","50vh");
|
||||
style(3,rightWidth + "vw","50vh");
|
||||
} else {
|
||||
style(0,leftWidth + "vw","100vh");
|
||||
style(1,rightWidth + "vw","50vh");
|
||||
style(2); // hide
|
||||
style(3,rightWidth + "vw","50vh");
|
||||
}
|
||||
// if (showParams) {
|
||||
// style(0,leftWidth + "vw","100vh");
|
||||
// style(1); // hide
|
||||
// style(2,rightWidth + "vw","50vh");
|
||||
// style(3,rightWidth + "vw","50vh");
|
||||
// } else {
|
||||
// style(0,leftWidth + "vw","100vh");
|
||||
// style(1,rightWidth + "vw","50vh");
|
||||
// style(2); // hide
|
||||
// style(3,rightWidth + "vw","50vh");
|
||||
// }
|
||||
style(0,leftWidth + "vw","100vh");
|
||||
style(1,rightWidth + "vw","50vh");
|
||||
style(2,rightWidth + "vw","50vh");
|
||||
// style(3); // hide
|
||||
}
|
||||
break;
|
||||
case 3:
|
||||
@ -152,46 +145,50 @@ function adjustGrid() {
|
||||
style(0,leftWidth + "vw","100vh");
|
||||
style(1); // hide
|
||||
style(2,rightWidth + "vw","100vh");
|
||||
style(3); // hide
|
||||
// style(3); // hide
|
||||
} else {
|
||||
style(0,leftWidth + "vw","100vh");
|
||||
style(1,rightWidth + "vw","100vh");
|
||||
style(2); // hide
|
||||
style(3); // hide
|
||||
// style(3); // hide
|
||||
}
|
||||
} else {
|
||||
if (showParams) {
|
||||
style(0,leftWidth + "vw","100vh");
|
||||
style(1); // hide
|
||||
style(2,rightWidth + "vw","50vh");
|
||||
style(3,rightWidth + "vw","50vh");
|
||||
} else {
|
||||
style(0,leftWidth + "vw","100vh");
|
||||
style(1,rightWidth + "vw","50vh");
|
||||
style(2); // hide
|
||||
style(3,rightWidth + "vw","50vh");
|
||||
}
|
||||
// if (showParams) {
|
||||
// style(0,leftWidth + "vw","100vh");
|
||||
// style(1); // hide
|
||||
// style(2,rightWidth + "vw","50vh");
|
||||
// style(3,rightWidth + "vw","50vh");
|
||||
// } else {
|
||||
// style(0,leftWidth + "vw","100vh");
|
||||
// style(1,rightWidth + "vw","50vh");
|
||||
// style(2); // hide
|
||||
// style(3,rightWidth + "vw","50vh");
|
||||
// }
|
||||
style(0,leftWidth + "vw","100vh");
|
||||
style(1,rightWidth + "vw","50vh");
|
||||
style(2,rightWidth + "vw","50vh");
|
||||
// style(3); // hide
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
rightWidth = MINWIDTH / width * 100;
|
||||
leftWidth = 100 - 2 * rightWidth;
|
||||
if (nRows == 1 || !window['showConsole']) {
|
||||
// if (nRows == 1 || !window['showConsole']) {
|
||||
style(0,leftWidth + "vw","100vh");
|
||||
style(1,rightWidth + "vw","100vh");
|
||||
if (window['showConsole']) {
|
||||
style(2); // hide
|
||||
style(3,rightWidth + "vw","100vh");
|
||||
} else {
|
||||
// if (window['showConsole']) {
|
||||
// style(2); // hide
|
||||
// style(3,rightWidth + "vw","100vh");
|
||||
// } else {
|
||||
style(2,rightWidth + "vw","100vh");
|
||||
style(3); // hide
|
||||
}
|
||||
} else {
|
||||
style(0,leftWidth + "vw","100vh");
|
||||
style(1,rightWidth + "vw","50vh");
|
||||
style(2,rightWidth + "vw","50vh");
|
||||
style(3,(2 * rightWidth) + "vw","50vh");
|
||||
}
|
||||
// style(3); // hide
|
||||
// }
|
||||
// } else {
|
||||
// style(0,leftWidth + "vw","100vh");
|
||||
// style(1,rightWidth + "vw","50vh");
|
||||
// style(2,rightWidth + "vw","50vh");
|
||||
// style(3,(2 * rightWidth) + "vw","50vh");
|
||||
// }
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
Reference in New Issue
Block a user