summaryrefslogtreecommitdiff
path: root/reaction-game.html
diff options
context:
space:
mode:
Diffstat (limited to 'reaction-game.html')
-rw-r--r--reaction-game.html15
1 files changed, 9 insertions, 6 deletions
diff --git a/reaction-game.html b/reaction-game.html
index b112c45..a512a61 100644
--- a/reaction-game.html
+++ b/reaction-game.html
@@ -2,6 +2,7 @@
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>quick-draw</title>
<style>
* {
@@ -9,13 +10,15 @@
margin: 0;
padding: 0;
font-family: sans-serif;
+ -webkit-touch-callout: none; /* iOS Safari */
+ -webkit-user-select: none; /* Safari */
+ -khtml-user-select: none; /* Konqueror HTML */
+ -moz-user-select: none; /* Old versions of Firefox */
+ -ms-user-select: none; /* Internet Explorer/Edge */
+ user-select: none; /* Non-prefixed version, currently
+ supported by Chrome, Edge, Opera and Firefox */
}
:root {
- /**
- --bg: #161616;
- --bg-green: #182118;
- --fg-green: #e1ffdb;
- */
--bg: #182118;
--fg: #e1ffdb;
}
@@ -558,6 +561,7 @@
center.id = "center";
document.body.insertAdjacentElement("afterbegin", center);
+ currentRound++;
console.log("ROUND: " + roundSeconds.toFixed(3) + "s\nTOTAL: " + totalTime.toFixed(3) + "\nhover on circle to start round " + currentRound);
gameText.innerText = "ROUND: " + roundSeconds.toFixed(3) + "s\nTOTAL: " + totalTime.toFixed(3) + "s\nhover on circle to start round " + currentRound;
@@ -569,7 +573,6 @@
center.addEventListener("touchcancel", handleHoverEnd, {passive:false});
normalBullseyeNeeded = true;
- currentRound++;
}
gameText.style.display = "inline";