From e2ab390b01d2e7dfe7f4351422c0505bd4c596c6 Mon Sep 17 00:00:00 2001 From: piair Date: Sat, 30 Sep 2023 19:30:42 +0200 Subject: [PATCH] mis dans le js + fix quelques problemes --- Flask/static/js/main.js | 20 ++++++++++++++++++++ Flask/templates/vnc_get.html | 20 -------------------- V6.py | 4 ++-- version | 2 +- 4 files changed, 23 insertions(+), 23 deletions(-) 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 %} -