diff --git a/Flask/static/js/main.js b/Flask/static/js/main.js index 59d9612..74807fa 100644 --- a/Flask/static/js/main.js +++ b/Flask/static/js/main.js @@ -71,6 +71,26 @@ function change_proxy(value, data, len) { } } +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"; + } + } + } +} + + function change_logs(value) { var myIframe = document.getElementById('embed'); myIframe.addEventListener("load", function() { diff --git a/Flask/templates/vnc_get.html b/Flask/templates/vnc_get.html index d35f4c7..93be418 100644 --- a/Flask/templates/vnc_get.html +++ b/Flask/templates/vnc_get.html @@ -9,27 +9,7 @@ {% else %} -