amélioration interface borne

This commit is contained in:
Quentin Roussel
2023-03-23 00:01:03 +01:00
parent 7284494283
commit 82171ca6fc
8 changed files with 88 additions and 26 deletions

View File

@@ -1,3 +1,7 @@
* {
font-family: Arial, Helvetica, sans-serif;
}
html, body {
margin: 0;
height: 100%;
@@ -24,4 +28,24 @@ html, body {
}
#camera > canvas {
z-index: 1;
}
.instructions {
width: max-content;
height: 300px;
margin: auto;
background: #A6CC00;
padding: 20px;
border-radius: 10px;
border: 3px #6B8000 solid;
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
text-align: center;
}
.instructions > .title {
border-bottom: 3px #6B8000 solid;
}

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 34 KiB

View File

@@ -1,5 +1,5 @@
class WebsocketClient {
constructor(onNewEffects, onNewState) {
constructor(onNewEffects, onNewGrade, onNewState) {
this.socket = new WebSocket("ws://localhost:5000");
this.socket.addEventListener("open", (event) => {
this.socket.send("connected");

View File

@@ -25,8 +25,6 @@ class StateManager {
this._cameraPage.enabled = false;
this._audioPage.enabled = false;
this._thankYouPage.enabled = false;
//TODO: Remove qd implémenté dans le backend
document.getElementById("sleeping-page-continue").onclick = () => this.setState(STATE.video);
}
setState(newState) {