Add back button to keys scene and allow fullscreen

Closes #29
This commit is contained in:
Unrud 2022-01-28 00:13:34 +01:00
parent facaacb3fb
commit c85275f263
7 changed files with 202 additions and 11 deletions

View file

@ -488,6 +488,11 @@ window.addEventListener("load", function() {
document.getElementById("reloadbutton").addEventListener("click", function() {
location.reload();
});
document.querySelectorAll(".backbutton").forEach(function(button) {
button.addEventListener("click", function() {
history.back();
});
});
document.addEventListener("touchstart", handleStart);
document.addEventListener("touchend", handleEnd);
document.addEventListener("touchcancel", handleEnd);