4 display: "room", //default: main hall
5 gameid: "undefined", //...yet
8 // TODO: navigation becomes a little more complex
9 const url
= window
.location
.href
;
10 const hashPos
= url
.indexOf("#");
12 this.setDisplay(url
.substr(hashPos
+1));
15 setDisplay: function(elt
) {
17 // Close menu on small screens:
18 let menuToggle
= document
.getElementById("drawer-control");
20 menuToggle
.checked
= false;
25 //const continuation = (localStorage.getItem("variant") === variant.name);
26 // if (continuation) //game VS human has priority
27 // this.continueGame("human");
30 // si quand on arrive il y a une continuation "humaine" : display="game" et retour à la partie !