From fa2d9b6f912b48f4968f012bce5f14d225395a77 Mon Sep 17 00:00:00 2001 From: Tyler Murphy Date: Sat, 17 Jun 2023 01:34:20 -0400 Subject: layout changed --- client/src/main.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'client/src/main.ts') diff --git a/client/src/main.ts b/client/src/main.ts index c8a1758..7ac13a3 100644 --- a/client/src/main.ts +++ b/client/src/main.ts @@ -5,7 +5,7 @@ import { GameKeyMap, Frame, Key } from "./types.js"; const join = document.getElementById("join") const lobby = document.getElementById("lobby") -lobby.style.display = "none" +const mapeditor = document.getElementById("mapeditor") join.onsubmit = async function(event) { event.preventDefault() @@ -24,10 +24,15 @@ join.onsubmit = async function(event) { } join.style.display = "none" + mapeditor.style.display = "none" startGame(room_code, player_name) } +mapeditor.onclick = function() { + window.location.href = 'mapeditor.html' +} + const updateGraphics = startGraphicsUpdater() const onLoad = (startData: Frame) => { -- cgit v1.2.3-freya