console not shown at start, infobox for touch device
This commit is contained in:
@ -15,6 +15,7 @@ var writePermission = false;
|
||||
var panelOn = true;
|
||||
var firstState = 0;
|
||||
var showParams = false;
|
||||
var showConsole = false;
|
||||
|
||||
function Settings() {
|
||||
// get key/value pairs from search part of the URL and fill into query
|
||||
@ -73,7 +74,7 @@ new Settings()
|
||||
.treat("debugGraphics", "dg", to_bool, false)
|
||||
.treat("hostPort", "hp", 0, location.hostname + ":" + location.port)
|
||||
.treat("showMain", "sm", to_bool, true)
|
||||
.treat("showConsole", "sc", to_bool, true)
|
||||
.treat("initConsole", "ic", to_bool, true)
|
||||
.treat("showGraphics", "sg", to_bool, true) // false)
|
||||
.treat("hideRightPart", "hr", to_bool, false) //used to completely disable the right part
|
||||
.treat("wideGraphs", "wg", to_bool, false) //used to toggle the size of the graphs part
|
||||
@ -96,7 +97,7 @@ if (window.instrument) {
|
||||
|
||||
function loadFirstBlocks() {
|
||||
if (showMain) pushInitCommand("getblock?path=main&", "main")
|
||||
if (showConsole) pushInitCommand("console?", "console")
|
||||
if (initConsole) pushInitCommand("console?", "console")
|
||||
if (nColumns == 1) { // probably mobile phone}
|
||||
if (showGraphics) pushInitCommand("gettime?time=" + window.timerange + "&", "graphics")
|
||||
var goFS = document.getElementById('header');
|
||||
@ -173,11 +174,10 @@ window.onload = function() {
|
||||
|
||||
let logIcon = document.getElementsByClassName("log-icon-container")[0];
|
||||
logIcon.onclick = function(){
|
||||
if (window.showConsole) {
|
||||
window.showConsole = false;
|
||||
if (showConsole) {
|
||||
showConsole = false;
|
||||
} else {
|
||||
window.showConsole = true;
|
||||
// Initialize?
|
||||
showConsole = true;
|
||||
}
|
||||
adjustGrid();
|
||||
}
|
||||
|
Reference in New Issue
Block a user