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"; + } + } } }