From 43188f65ac578efc695faae5fcd598f9c8fab5da Mon Sep 17 00:00:00 2001 From: piair Date: Sat, 30 Sep 2023 19:26:17 +0200 Subject: [PATCH] names are back --- Flask/static/js/main.js | 2 -- Flask/templates/vnc_get.html | 28 +++++++++++++++++++++------- V6.py | 2 +- version | 2 +- 4 files changed, 23 insertions(+), 11 deletions(-) diff --git a/Flask/static/js/main.js b/Flask/static/js/main.js index 7bd640d..59d9612 100644 --- a/Flask/static/js/main.js +++ b/Flask/static/js/main.js @@ -79,6 +79,4 @@ function change_logs(value) { myIframe.contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight); }); myIframe.src = "/static/logs/" + value + ".txt"; - - } diff --git a/Flask/templates/vnc_get.html b/Flask/templates/vnc_get.html index 8edd500..d35f4c7 100644 --- a/Flask/templates/vnc_get.html +++ b/Flask/templates/vnc_get.html @@ -14,11 +14,25 @@ function change_override(value, data) { for (let i = 1; i < 6; i++) { document.getElementById("compte_"+ i).innerHTML = data[parseInt(value)]['accounts'][i]["mail"]; + if (!(data[parseInt(value)]['accounts'][i]["mail"])){ + console.log("hiding" + i); + for (let j = 1; j <= 5; j++) { + + document.getElementById(i.toString() +j.toString()).style.visibility = "hidden"; + } + } else { + console.log("showing" + i); + for (let j = 1; j <= 5; j++) { + console.log("element " + i.toString()+j.toString()); + document.getElementById(i.toString()+j.toString()).style.visibility = "visible"; + } + } } }
- - - - + + + + + + {% endfor %} diff --git a/V6.py b/V6.py index 102b9ac..3bb4857 100755 --- a/V6.py +++ b/V6.py @@ -824,9 +824,9 @@ def CustomStart(): driver.quit() def very_custom_start(json): + global driver display = SmartDisplay(backend="xvnc", size=(1920, 1080), rfbport=2345, color_depth=24) display.start() - print(f'input : {json}') for i in range(5): cred = g._cred[i] g._mail = cred[0] diff --git a/version b/version index d8b5d16..abaa5b1 100644 --- a/version +++ b/version @@ -1 +1 @@ -v6.6.41 +v6.6.42