aboutsummaryrefslogtreecommitdiff
path: root/src/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.js')
-rw-r--r--src/main.js25
1 files changed, 7 insertions, 18 deletions
diff --git a/src/main.js b/src/main.js
index 91ac386..0e05e0d 100644
--- a/src/main.js
+++ b/src/main.js
@@ -1,20 +1,9 @@
-import 'notyf/notyf.min.css'
-import 'bulma/css/bulma.css'
-import '@fortawesome/fontawesome-free/css/all.css'
-import './style.css'
-
+import "notyf/notyf.min.css";
+import "bulma/css/bulma.css";
+import "@fortawesome/fontawesome-free/css/all.css";
+import "./style.css";
import { GameManager } from "./game.mjs";
+import { Timer } from "./utils.mjs";
-// Court and player handling
-let g = new GameManager();
-
-// Game handling
-document.getElementById("propose").addEventListener("click", () => {
- g.propose();
-});
-document.getElementById("confirm").addEventListener("click", () => {
- g.confirm();
-});
-document.getElementById("reset").addEventListener("click", () => {
- g.reset();
-});
+const t = new Timer();
+const g = new GameManager();