aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom/onReplayGo.ts
diff options
context:
space:
mode:
authorCaleb <caleb.mabry.15@cnu.edu>2022-09-04 00:02:19 -0400
committerCaleb <caleb.mabry.15@cnu.edu>2022-09-04 00:02:19 -0400
commit67314a8bc22ea198b8e3de788282a0ca0151cb1e (patch)
tree92d827d3acd06bc1e33fc94c45a0be3613a95ae3 /webAO/dom/onReplayGo.ts
parentd20994bd7c244cc84ab138cec441b05c261a83e4 (diff)
Several functions moved
Diffstat (limited to 'webAO/dom/onReplayGo.ts')
-rw-r--r--webAO/dom/onReplayGo.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/webAO/dom/onReplayGo.ts b/webAO/dom/onReplayGo.ts
new file mode 100644
index 0000000..c13a8e6
--- /dev/null
+++ b/webAO/dom/onReplayGo.ts
@@ -0,0 +1,9 @@
+import { client } from "../client";
+/**
+ * Triggered when the user click replay GOOOOO
+ * @param {KeyboardEvent} event
+ */
+ export function onReplayGo(_event: Event) {
+ client.handleReplay();
+ }
+ window.onReplayGo = onReplayGo; \ No newline at end of file