diff --git a/.editorconfig b/.editorconfig
index cd45b0f..a7b7e60 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -8,5 +8,5 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
-[*.{yaml,yml,toml}]
+[*.{yaml,yml,toml,html,svelte}]
indent_size = 2
diff --git a/src/admin.html b/src/admin.html
index d18ef0b..9b02b40 100644
--- a/src/admin.html
+++ b/src/admin.html
@@ -2,78 +2,78 @@
- Admin
+ Admin
-
+ #dashboard {
+ display: none;
+ }
+
-
-
-
-
+
+
+
+
-
+
-
+ passwordInput.addEventListener("keydown", function (e) {
+ if (e.key === "Enter") { sendCreds(); }
+ });
+
diff --git a/src/client.html b/src/client.html
index 3c1e7e8..e9a7da9 100644
--- a/src/client.html
+++ b/src/client.html
@@ -2,127 +2,127 @@
- Telecommande
+ Telecommande
-
+ #start,
+ #select,
+ #l,
+ #r {
+ border-radius: 25%;
+ width: 3.5rem;
+ }
+
-
+
-
+ a.onclick = function (event) {
+ websocket.send(JSON.stringify({ action: 'a' }));
+ }
+ b.onclick = function (event) {
+ websocket.send(JSON.stringify({ action: 'b' }));
+ }
+ select.onclick = function (event) {
+ websocket.send(JSON.stringify({ action: 'select' }));
+ }
+ start.onclick = function (event) {
+ websocket.send(JSON.stringify({ action: 'start' }));
+ }
+ right.onclick = function (event) {
+ websocket.send(JSON.stringify({ action: 'right' }));
+ }
+ left.onclick = function (event) {
+ websocket.send(JSON.stringify({ action: 'left' }));
+ }
+ up.onclick = function (event) {
+ websocket.send(JSON.stringify({ action: 'up' }));
+ }
+ down.onclick = function (event) {
+ websocket.send(JSON.stringify({ action: 'down' }));
+ }
+ r.onclick = function (event) {
+ websocket.send(JSON.stringify({ action: 'r' }));
+ }
+ l.onclick = function (event) {
+ websocket.send(JSON.stringify({ action: 'l' }));
+ }
+