mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-28 08:47:51 +01:00
navbar
This commit is contained in:
@@ -2,8 +2,10 @@ import { defaultCards } from "../config/defaultCards.js";
|
||||
import { customCards } from "../config/customCards.js";
|
||||
import { DeckStateManager } from "../modules/DeckStateManager.js";
|
||||
import { GameCreationStepManager } from "../modules/GameCreationStepManager.js";
|
||||
import { injectNavbar } from "../modules/Navbar.js";
|
||||
|
||||
const create = () => {
|
||||
injectNavbar();
|
||||
let deckManager = new DeckStateManager();
|
||||
let gameCreationStepManager = new GameCreationStepManager(deckManager);
|
||||
loadDefaultCards(deckManager);
|
||||
|
||||
@@ -7,8 +7,10 @@ import {GameTimerManager} from "../modules/GameTimerManager.js";
|
||||
import {ModalManager} from "../modules/ModalManager.js";
|
||||
import {stateBucket} from "../modules/StateBucket.js";
|
||||
import { io } from 'socket.io-client';
|
||||
import { injectNavbar } from "../modules/Navbar.js";
|
||||
|
||||
const game = () => {
|
||||
injectNavbar();
|
||||
let timerWorker;
|
||||
const socket = io('/in-game');
|
||||
socket.on('disconnect', () => {
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import { XHRUtility } from "../modules/XHRUtility.js";
|
||||
import { toast } from "../modules/Toast.js";
|
||||
import { injectNavbar } from "../modules/Navbar.js";
|
||||
|
||||
const home = () => {
|
||||
injectNavbar();
|
||||
document.getElementById("join-form").onsubmit = (e) => {
|
||||
e.preventDefault();
|
||||
let userCode = document.getElementById("room-code").value;
|
||||
|
||||
Reference in New Issue
Block a user