mirror of
https://git.roussel.pro/telecom-paris/pact.git
synced 2026-02-09 10:30:17 +01:00
amélioration interface borne
This commit is contained in:
@@ -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;
|
||||
}
|
||||
3
code/interface_borne/assets/img/logo_tp.svg
Normal file
3
code/interface_borne/assets/img/logo_tp.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 34 KiB |
@@ -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");
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user