names are back
This commit is contained in:
parent
7b1a4cae2c
commit
43188f65ac
|
@ -79,6 +79,4 @@ function change_logs(value) {
|
|||
myIframe.contentWindow.scrollTo(0, myIframe.contentDocument.body.scrollHeight);
|
||||
});
|
||||
myIframe.src = "/static/logs/" + value + ".txt";
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<form method="post" action="/override/" height="90%">
|
||||
<select onchange="change_override(this.value, data)" name="config">
|
||||
<option id="-1" value="-1" selected>Select a config</option>
|
||||
{% for i in configs %}
|
||||
<option id="{{configs[i]['name']}}" value="{{i}}">{{configs[i]['name']}}</option>
|
||||
{% endfor %}
|
||||
|
@ -28,18 +42,18 @@ function change_override(value, data) {
|
|||
<td width="30%">name</td>
|
||||
<td width="14%">Unban</td>
|
||||
<td width="14%">tout</td>
|
||||
<td width="14%">daily</td>
|
||||
<td width="14%">pc</td>
|
||||
<td width="14%">mobile</td>
|
||||
<td width="14%">log points</td>
|
||||
</tr>
|
||||
{% for i in range(0,5) %}
|
||||
<tr heigh="15%">
|
||||
<td id="compte_{{i}}"></td>
|
||||
<td><input type="checkbox" id="compte_{{i+1}}" value="{{i}}" name="unban"></td>
|
||||
<td><input type="checkbox" id="compte_{{i+1}}" value="{{i}}" name="tout"></td>
|
||||
<td><input type="checkbox" id="compte_{{i+1}}" value="{{i}}" name="daily"></td>
|
||||
<td><input type="checkbox" id="compte_{{i+1}}" value="{{i}}" name="pc"></td>
|
||||
<td><input type="checkbox" id="compte_{{i+1}}" value="{{i}}" name="mobile"></td>
|
||||
<td id="compte_{{i+1}}"></td>
|
||||
<td id="{{i+1}}1" style="visibility: hidden;"><input type="checkbox" id="compte_{{i+1}}" value="{{i}}" name="unban"></td>
|
||||
<td id="{{i+1}}2" style="visibility: hidden;"><input type="checkbox" id="compte_{{i+1}}" value="{{i}}" name="tout"></td>
|
||||
<td id="{{i+1}}3" style="visibility: hidden;"><input type="checkbox" id="compte_{{i+1}}" value="{{i}}" name="daily"></td>
|
||||
<td id="{{i+1}}4" style="visibility: hidden;"><input type="checkbox" id="compte_{{i+1}}" value="{{i}}" name="pc"></td>
|
||||
<td id="{{i+1}}5" style="visibility: hidden;"><input type="checkbox" id="compte_{{i+1}}" value="{{i}}" name="mobile"></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
|
|
2
V6.py
2
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]
|
||||
|
|
Loading…
Reference in New Issue