From 46ba71a1d63aa9179e3f952f8b41f2627fb998d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Wed, 10 Nov 2021 21:40:34 +0100 Subject: [PATCH] style: 2 spaces ident for html files --- .editorconfig | 2 +- src/admin.html | 114 ++++++++++++------------- src/client.html | 216 ++++++++++++++++++++++++------------------------ 3 files changed, 166 insertions(+), 166 deletions(-) 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' })); + } +