From 1a58f4291859affadbd10eebab2fca0c0b2ddd1b Mon Sep 17 00:00:00 2001 From: jahugg <jan@huggenberg.ch> Date: Mon, 20 Feb 2023 10:12:00 +0100 Subject: [PATCH] base setup --- README.md | 91 ++--------------------------------------- index.html | 16 ++++++++ src/app.webmanifest | 20 +++++++++ src/homescreen.png | Bin 0 -> 13253 bytes src/main.js | 5 +++ src/modules/helpers.js | 3 ++ src/styles/config.css | 31 ++++++++++++++ src/styles/main.css | 16 ++++++++ src/styles/main.less | 18 ++++++++ 9 files changed, 112 insertions(+), 88 deletions(-) create mode 100644 index.html create mode 100644 src/app.webmanifest create mode 100644 src/homescreen.png create mode 100644 src/main.js create mode 100644 src/modules/helpers.js create mode 100644 src/styles/config.css create mode 100644 src/styles/main.css create mode 100644 src/styles/main.less diff --git a/README.md b/README.md index fbd9847..6c0e43a 100644 --- a/README.md +++ b/README.md @@ -1,92 +1,7 @@ # EXP Navigation +Usability experiment for «Almer Connect» Innobooster project. +The experiment is designed as a web application with a centred menu navigation. The navigation can be controlled equally with voice control, motion sensors or physical buttons of the device. The user is free to choose which interaction method to use, depending on personal preferences or contextual constraints. They can be freely mixed and matched and all offer the same level of control. A simple navigation serves as a use case to test the different input methods and determine which mode the user gravitates to. Visual styles are omitted as much as possible to focus on the interaction methods. For dynamic menu items, the corresponding voice commands are displayed below the label. If no additional voice command is listed, the label can be used as a voice command. -## Getting started - -To make it easy for you to get started with GitLab, here's a list of recommended next steps. - -Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)! - -## Add your files - -- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files -- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command: - -``` -cd existing_repo -git remote add origin https://gitlab.zhdk.ch/almer/exp-navigation.git -git branch -M main -git push -uf origin main -``` - -## Integrate with your tools - -- [ ] [Set up project integrations](https://gitlab.zhdk.ch/almer/exp-navigation/-/settings/integrations) - -## Collaborate with your team - -- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/) -- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html) -- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically) -- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/) -- [ ] [Automatically merge when pipeline succeeds](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html) - -## Test and Deploy - -Use the built-in continuous integration in GitLab. - -- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html) -- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing(SAST)](https://docs.gitlab.com/ee/user/application_security/sast/) -- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html) -- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/) -- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html) - -*** - -# Editing this README - -When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thank you to [makeareadme.com](https://www.makeareadme.com/) for this template. - -## Suggestions for a good README -Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information. - -## Name -Choose a self-explaining name for your project. - -## Description -Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors. - -## Badges -On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge. - -## Visuals -Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method. - -## Installation -Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection. - -## Usage -Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README. - -## Support -Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc. - -## Roadmap -If you have ideas for releases in the future, it is a good idea to list them in the README. - -## Contributing -State if you are open to contributions and what your requirements are for accepting them. - -For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self. - -You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser. - -## Authors and acknowledgment -Show your appreciation to those who have contributed to the project. - -## License -For open source projects, say how it is licensed. - -## Project status -If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers. +The head movement is transferred directly to the current menu selection without a pointer object being displayed. This avoids nervous cursor jitter due to inaccurate sensor data. When using head movement, the user can confirm a selection by focusing on the item for a predefined period of time or by pressing a physical button. diff --git a/index.html b/index.html new file mode 100644 index 0000000..a844098 --- /dev/null +++ b/index.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="UTF-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <meta http-equiv="X-UA-Compatible" content="ie=edge" /> + <title>EXP Navigation</title> + <link rel="manifest" href="./src/app.webmanifest" /> + <link rel="stylesheet" type="text/css" href="./src/styles/main.css" /> + </head> + <body> + <div id="app"></div> + <div id="log"></div> + <script type="module" src="./src/main.js"></script> + </body> +</html> diff --git a/src/app.webmanifest b/src/app.webmanifest new file mode 100644 index 0000000..cc708df --- /dev/null +++ b/src/app.webmanifest @@ -0,0 +1,20 @@ +{ + "name": "EXP Navigation", + "short_name": "Navigation", + "description": "Navigation Experiment", + "lang": "en", + "start_url": "/", + "scope": "/", + "display": "fullscreen", + "orientation": "landscape", + "theme_color": "#000", + "background_color": "#000", + "icons": [ + { + "src": "homescreen.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ] +} \ No newline at end of file diff --git a/src/homescreen.png b/src/homescreen.png new file mode 100644 index 0000000000000000000000000000000000000000..00bc20a7841abfc83b31ccc0801f83c6b493c462 GIT binary patch literal 13253 zcmd6NWmr{RyY2*0P(f5s6eR?~K)O35q*J=P7qO5ILFGkCS{fBZS_LE*U?3nakj@1t zT?^@k^WgWs`<x%&IX}+c`#Q(#!c}vQG3GO#xbOQJVQMOJWT&W4AqYYye@|KiK?vb3 zAwqKW;!AzE2wpCuWpvS+C~LH*nVS_NX^AqoqL+6vv$4{!GPCq{ZLtzTkYkQ^TDoXm zWhEgCloOlT(KT#dPA+gaf{2KFxtLivSfT07t!(U^MH!ZA>KW+mEJYb~c$GPnUG7@h z+THVUv(ofY(X#Myun@Fl5Er8t@e+aooUG7h^j=Pm&hA29q6~k=6@vFiU$ZmN|G5P1 zAj<HsMd>Q5(ceY6S<wr!aj;r&aB$G`3$j_7@tE;j@mg8mq37b@;$r9IWar{y<>VIP z<q+cFr~msO15D^<X)UB7E&KO$@JW=x7L9fhVrTdC^knnoW<$BzuyYCu3bJ!>9gP83 zu)2FYqs_cno!uG#8A000-NMbz1#O3Nrav0d%pB!`7G;3N{_826T$GjnV_;|ZzikCp zWA`$1VdrGyV0UsldbB@RyQ4L%{^v6O?bYsD-Y!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mC-vOK;c<MdPF3zfa{H#0apsf~N_D<G$NjG2wCZL9N^9TOwdt!>GI zU-FW-ZrzFxE&-XM3a}3P7`NejhSA?3R%^dedr0v96;M?>15hfS|72(_lWGN-%A#fz zbkC-tkJ*|iwrhSbdOJ^<!O@+|#raC9$uXaQ@3EHKQ85bkD(cfJV&L>x9Gf@+;+0ZP zfLIDC5nPjCVq&r@KJj9^%peFs_CiZjPl6UA_w(pO@)TJG^k#>BP7xx%?V?&)E2R$} ztW2~-m6WcKk{}Iz28TeHYpTb7V=l58zNy-Iu4*)Ksz0(I=vm8`rl#DImf;H2Xmj&D zof}S&3$#m&MVtD-@83J)gcL4CAczSX^a<ak3s4>b&L${^8wxq>mkM|{T$4bMk)-(e zZeWU}n*8tHy#x992n67ZN>`@eCztk$GcW|V9-gy(PAFv^%eT9<U?LYueIGPP(#;x$ zntB)xRHWOqpO~U(MZfL8p+}HRW{j7Irt>E_J*Ve)i3oW%+eA=ozDP`TC*YXG6r?9w zDyr!NhAnvF_jLM!9E1p=!%YsLl%w7s2w*+T77ecFtRI7H30kOkfSF|wf;cJ#-^q*a zaw82X%bE6$Cxpw8t#g<Db0@0*KC+8|!~#?Na}xMJbx8Z)4|%j&0t8t9f2}6--!Y^F n$VdMj<NkL){no3)3#Q0%-C?IJ*TYOOG$JpfB3&$H8vH*1?`Z>o literal 0 HcmV?d00001 diff --git a/src/main.js b/src/main.js new file mode 100644 index 0000000..7f5b320 --- /dev/null +++ b/src/main.js @@ -0,0 +1,5 @@ +import * as helpers from "./modules/helpers.js"; + +function init() {} + +init(); diff --git a/src/modules/helpers.js b/src/modules/helpers.js new file mode 100644 index 0000000..376653a --- /dev/null +++ b/src/modules/helpers.js @@ -0,0 +1,3 @@ +export function map(num, in_min, in_max, out_min, out_max) { + return ((num - in_min) * (out_max - out_min)) / (in_max - in_min) + out_min; +} diff --git a/src/styles/config.css b/src/styles/config.css new file mode 100644 index 0000000..6fed182 --- /dev/null +++ b/src/styles/config.css @@ -0,0 +1,31 @@ +html { + box-sizing: border-box; +} + +*, +*:after, +*:before { + box-sizing: inherit; +} + +body { + margin: 0; +} + +ul { + margin: 0; + padding: 0; + list-style-type: none; +} + +img, +video { + display: block; +} + +/* in order to use LESS color functions use the following workaround +https://github.com/less/less.js/issues/3537 */ +:root { + --color-white: hsl(0 0% 100%); + --color-black: hsl(0 0% 0%); +} diff --git a/src/styles/main.css b/src/styles/main.css new file mode 100644 index 0000000..7222b3e --- /dev/null +++ b/src/styles/main.css @@ -0,0 +1,16 @@ +@import "config.css"; +#app { + display: grid; + grid-template-columns: 1fr; + grid-template-rows: 1fr; + grid-template-areas: "main"; + height: 100vh; + background: black; +} +#log { + position: absolute; + top: 0; + right: 0; + width: 400px; + z-index: 100; +} diff --git a/src/styles/main.less b/src/styles/main.less new file mode 100644 index 0000000..ec70654 --- /dev/null +++ b/src/styles/main.less @@ -0,0 +1,18 @@ +@import "config.css"; + +#app { + display: grid; + grid-template-columns: 1fr; + grid-template-rows: 1fr; + grid-template-areas: "main"; + height: 100vh; + background: black; +} + +#log { + position: absolute; + top: 0; + right: 0; + width: 400px; + z-index: 100; +} -- GitLab