esp first

This commit is contained in:
derlole
2025-04-22 08:51:46 +00:00
parent ffa0a56e1e
commit d04df5049d
3 changed files with 9 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ unsecure = Blueprint('unsecure', __name__, url_prefix='/unsecure')
@unsecure.route('/')
def index():
return render_template('index.html')
return render_template('index.html', title='gimmiCoffee')
@unsecure.route('/send')
def send_command():
@@ -22,4 +22,4 @@ def send_command():
@unsecure.route('/live')
def test():
return render_template('live.html')
return render_template('live.html', users=[{'name': 'Max'}, {'name': 'Moritz'}, {'name': 'Hans'}])

View File

@@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>gimmiCoffee</title>
<title>{{ title }}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>

View File

@@ -10,7 +10,12 @@
<p><strong>Test:</strong> <span id="test"></span></p>
<p><strong>Status:</strong> <span id="status"></span></p>
<p><strong>Counter:</strong> <span id="counter"></span></p>
<h1>Benutzer</h1>
<ul>
{% for user in users %}
<li>{{ user.name }}</li>
{% endfor %}
</ul>
<script>
const socket = io();