console not shown at start, infobox for touch device

This commit is contained in:
Daniel
2025-04-25 09:54:55 +02:00
parent ff0c00cabb
commit 654d79461b
4 changed files with 45 additions and 24 deletions

View File

@ -70,7 +70,7 @@ function adjustGrid() {
switch (nColumns) {
case 1:
if (window['showConsole']) {
if (showConsole) {
if (showParams) {
style(0); // hide
style(1); // hide
@ -100,7 +100,7 @@ function adjustGrid() {
case 3:
rightWidth = Math.min(50, MINWIDTH / width * 100);
leftWidth = 100 - rightWidth;
if (window['showConsole']) {
if (showConsole) {
if (nRows == 1) {
if (showParams) {
style(0,leftWidth + "vw","100vh");
@ -157,7 +157,7 @@ function adjustGrid() {
case 4:
rightWidth = MINWIDTH / width * 100;
leftWidth = 100 - 2 * rightWidth;
if (window['showConsole']) {
if (showConsole) {
style(0,leftWidth + "vw","100vh");
style(1,rightWidth + "vw","50vh");
style(2,rightWidth + "vw","50vh");