|
|
@@ -20,7 +20,6 @@ class Puzzeltocht {
|
|
|
this.eventId = this.joinScreen.eventId;
|
|
|
this.teamId = teamId;
|
|
|
document.getElementById("join").style.display = "none";
|
|
|
- document.getElementById("questionMission").style.display = "none";
|
|
|
document.getElementById("mission").style.display = "block";
|
|
|
this.location.enable(p => this.updateLocation(p))
|
|
|
}
|
|
|
@@ -34,7 +33,7 @@ class Puzzeltocht {
|
|
|
|
|
|
updateLocation(position) {
|
|
|
let l = document.getElementById("location");
|
|
|
- if (position.accuracy() > 20) {
|
|
|
+ if (position.accuracy() > 20 && window.location.hostname !== "localhost") {
|
|
|
l.innerText = "Onbetrouwbare locatie: " + position.string();
|
|
|
return;
|
|
|
}
|
|
|
@@ -68,8 +67,8 @@ class MissionScreen {
|
|
|
static answer(submitEvent, callback) {
|
|
|
submitEvent.preventDefault();
|
|
|
let form = document.getElementById("answerForm");
|
|
|
- let answer = form.elements["questionAnswer"].value;
|
|
|
- form.elements["questionAnswer"].value = "";
|
|
|
+ let answer = form.elements["questionAnwser"].value;
|
|
|
+ form.elements["questionAnwser"].value = "";
|
|
|
document.getElementById("answerButton").disabled = true;
|
|
|
callback(answer);
|
|
|
}
|