still improving

This commit is contained in:
piair 2023-08-25 15:25:32 +02:00
parent 4757a2957d
commit f7d6b19fc6
2 changed files with 3 additions and 2 deletions

View File

@ -75,5 +75,6 @@ function change_proxy(value) {
function change_logs(value) {
data = JSON.parse('{{data|tojson}}'); //convertit le dictionnaire data en JSON
document.getElementById("embed")
}

View File

@ -40,12 +40,12 @@
<h1>Already logged in</h1>
{% else %}
<select name="select" onchange="change_logs(this.value)"></select>
<select name="select" onchange="change_logs(this.value)">
{% for i in data %}
<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%">
<embed type="text/html" src="{{url_for('static', filename='log/1.txt')}}" width="100%" height="100%" id="embed">