mis dans le js + fix quelques problemes
This commit is contained in:
parent
43188f65ac
commit
e2ab390b01
@ -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) {
|
function change_logs(value) {
|
||||||
var myIframe = document.getElementById('embed');
|
var myIframe = document.getElementById('embed');
|
||||||
myIframe.addEventListener("load", function() {
|
myIframe.addEventListener("load", function() {
|
||||||
|
@ -9,27 +9,7 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<script>data = JSON.parse('{{configs|tojson}}'); </script>
|
<script>data = JSON.parse('{{configs|tojson}}'); </script>
|
||||||
|
|
||||||
<script>
|
|
||||||
|
|
||||||
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";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<form method="post" action="/override/" height="90%">
|
<form method="post" action="/override/" height="90%">
|
||||||
<select onchange="change_override(this.value, data)" name="config">
|
<select onchange="change_override(this.value, data)" name="config">
|
||||||
<option id="-1" value="-1" selected>Select a config</option>
|
<option id="-1" value="-1" selected>Select a config</option>
|
||||||
|
4
V6.py
4
V6.py
@ -854,7 +854,7 @@ def very_custom_start(json):
|
|||||||
else :
|
else :
|
||||||
login(driver)
|
login(driver)
|
||||||
except KeyError :
|
except KeyError :
|
||||||
pass
|
login(driver)
|
||||||
try :
|
try :
|
||||||
if str(i) in json["tout"]:
|
if str(i) in json["tout"]:
|
||||||
daily_routine(True)
|
daily_routine(True)
|
||||||
@ -865,7 +865,7 @@ def very_custom_start(json):
|
|||||||
try :
|
try :
|
||||||
if str(i) in json["daily"]:
|
if str(i) in json["daily"]:
|
||||||
try:
|
try:
|
||||||
bing_pc_search()
|
all_cards()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
log_error(e)
|
log_error(e)
|
||||||
except KeyError :
|
except KeyError :
|
||||||
|
Loading…
Reference in New Issue
Block a user