From 1f82fbf863e23273926a464867457fc46f51c198 Mon Sep 17 00:00:00 2001 From: KryvasCZ Date: Thu, 23 Feb 2023 21:26:31 +0200 Subject: [PATCH] https://www.youtube.com/watch?v=hlv672jqbtE --- ui/.gitignore | 3 +- ui/forge.config.js | 22 + ui/index.html | 12 +- ui/package-lock.json | 5041 +++++++++++++++++++++++++++++++++++++++++- ui/package.json | 12 +- 5 files changed, 5083 insertions(+), 7 deletions(-) create mode 100644 ui/forge.config.js diff --git a/ui/.gitignore b/ui/.gitignore index b512c09..5695e9f 100644 --- a/ui/.gitignore +++ b/ui/.gitignore @@ -1 +1,2 @@ -node_modules \ No newline at end of file +node_modules +out/ \ No newline at end of file diff --git a/ui/forge.config.js b/ui/forge.config.js new file mode 100644 index 0000000..9a4060f --- /dev/null +++ b/ui/forge.config.js @@ -0,0 +1,22 @@ +module.exports = { + packagerConfig: {}, + rebuildConfig: {}, + makers: [ + { + name: '@electron-forge/maker-squirrel', + config: {}, + }, + { + name: '@electron-forge/maker-zip', + platforms: ['darwin'], + }, + { + name: '@electron-forge/maker-deb', + config: {}, + }, + { + name: '@electron-forge/maker-rpm', + config: {}, + }, + ], +}; diff --git a/ui/index.html b/ui/index.html index 994262a..77f6557 100644 --- a/ui/index.html +++ b/ui/index.html @@ -73,7 +73,17 @@ console.log(document.activeElement); document.activeElement.click(); } - }) + if(sex3.code === "KeyS" && i+3 < prvnihra.length){ + console.log(i); + i = i+3; + prvnihra[i].focus(); + } + if(sex3.code === "KeyW" && i-3 >= 0){ + console.log(i); + i = i-3; + prvnihra[i].focus(); + } + })