improvement
This commit is contained in:
parent
f548c3030a
commit
4757a2957d
@ -71,3 +71,9 @@ function change_proxy(value) {
|
||||
document.getElementById("name").value = data[parseInt(value)]["name"];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function change_logs(value) {
|
||||
data = JSON.parse('{{data|tojson}}'); //convertit le dictionnaire data en JSON
|
||||
}
|
||||
|
||||
|
@ -40,15 +40,14 @@
|
||||
<h1>Already logged in</h1>
|
||||
{% else %}
|
||||
|
||||
|
||||
<select name="select" onchange="change_logs(this.value)"></select>
|
||||
{% for i in data %}
|
||||
<select name="select" onchange="change_logs(this.value)">
|
||||
<option id="{{data[i]['name']}}" value="{{i}}">{{data[i]['name']}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
||||
<embed type="text/html" src="{{url_for('static', filename='log/1.txt')}}" width="100%" height="100%">
|
||||
|
||||
{% endfor %}
|
||||
|
||||
|
||||
{% endif %}
|
||||
{% endblock %}
|
Loading…
Reference in New Issue
Block a user