mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-04 12:24:57 +00:00
Refactor button handling in index.html and app.py
This commit is contained in:
@@ -4,11 +4,11 @@
|
||||
<img src="kobuki.jpg" alt="Kobuki Robot" id="robot-image" />
|
||||
</div>
|
||||
<div class="button-section">
|
||||
<form action="/move" method="post">
|
||||
<button class="btn" name="direction" value="left">←</button>
|
||||
<button class="btn" name="direction" value="up">↑</button>
|
||||
<button class="btn" name="direction" value="right">→</button>
|
||||
<button class="btn" name="direction" value="down">↓</button>
|
||||
<form action="/" method="post">
|
||||
<button type = "submit" class="btn" name="direction" value="left">←</button>
|
||||
<button type = "submit" class="btn" name="direction" value="up">↑</button>
|
||||
<button type = "submit" class="btn" name="direction" value="right">→</button>
|
||||
<button type = "submit" class="btn" name="direction" value="down">↓</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user