From 203d3bf11036d7a5e3dddb6343a1ab79cc23496b Mon Sep 17 00:00:00 2001 From: e7d Date: Sun, 5 Feb 2023 12:00:07 +0100 Subject: [PATCH] feat(): WIP add telemetry skin --- .vscode/tasks.json | 17 ++ css/main.css | 1 + index.html | 7 + js/gamepad.js | 453 ++++++++++++++++++------------ samples.txt | 5 + templates/debug/template.js | 2 +- templates/telemetry/template.css | 116 ++++++++ templates/telemetry/template.html | 32 +++ templates/telemetry/template.js | 143 ++++++++++ 9 files changed, 589 insertions(+), 187 deletions(-) create mode 100644 .vscode/tasks.json create mode 100644 samples.txt create mode 100644 templates/telemetry/template.css create mode 100644 templates/telemetry/template.html create mode 100644 templates/telemetry/template.js diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..4982aed --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,17 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "docker", + "type": "shell", + "command": "docker compose up", + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } + } + ] +} diff --git a/css/main.css b/css/main.css index 2af6222..d63ddad 100644 --- a/css/main.css +++ b/css/main.css @@ -134,6 +134,7 @@ body.unsupported #gamepad { border-radius: 4px; background: whitesmoke; border: none; + max-width: 200px; } #help-popout { diff --git a/index.html b/index.html index 5405e99..489963c 100644 --- a/index.html +++ b/index.html @@ -84,6 +84,12 @@