From 0e75d05c1488b907be36c255b91c90f2c4f284e5 Mon Sep 17 00:00:00 2001 From: Steffen Pohle Date: Wed, 1 Dec 2021 21:50:35 +0100 Subject: [PATCH] debug messaged will be print to the console. --- ChangeLog | 7 ++++++- webinterface/gui/guidebug.js | 8 +------- webinterface/index.html | 17 ----------------- webinterface/layout.css | 2 +- 4 files changed, 8 insertions(+), 26 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5b4342b..3d24bdd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ +2021-12-02: +- webinterface: debug messages will be print to the console. +- webinterface: contextmenu will be displayed inside the visible area + 2021-11-06: - fixed: compiling error on compare with pointer + 2021-03-09: - changed: passenger trains (no cargo flag set) will always stop at stations. - added station flag to blocks @@ -14,7 +19,7 @@ 2021-01-31: - automtic mode is improving, manual setting of destination - autoatic routing and moving the train to the destination. + automatic routing and moving the train to the destination. - locked turnouts can not anymore been set. - assign loco and set destination is working now. diff --git a/webinterface/gui/guidebug.js b/webinterface/gui/guidebug.js index 265064b..b7a8790 100644 --- a/webinterface/gui/guidebug.js +++ b/webinterface/gui/guidebug.js @@ -1,11 +1,5 @@ function debug (t) { - - var pre = document.getElementById("debug"); - var div = document.getElementById("debug_div"); - - if (pre) pre.innerHTML = pre.innerHTML + "
" + t; - if (div) div.scrollTop = div.scrollHeight; - + console.log (t); }; diff --git a/webinterface/index.html b/webinterface/index.html index 4068381..5f4f81b 100644 --- a/webinterface/index.html +++ b/webinterface/index.html @@ -28,7 +28,6 @@