index.html is empty now

This commit is contained in:
Olivier Gagnon 2021-09-25 14:14:50 -04:00
parent 97624395c1
commit 60a91cd9f7
5 changed files with 6 additions and 9 deletions

@ -38,10 +38,7 @@
<% } %>
</head>
<body>
<div id="entire-game-container">
<div id="mainmenu-container" style="display: flex; flex-direction: row"></div>
</div>
<div id="root" />
</body>
<script src="src/ThirdParty/raphael.min.js"></script>
</html>

@ -9,7 +9,7 @@ ReactDOM.render(
<Theme>
<LoadingScreen />
</Theme>,
document.getElementById("mainmenu-container"),
document.getElementById("root"),
);
function rerender(): void {
@ -18,7 +18,7 @@ function rerender(): void {
<Theme>
<LoadingScreen />
</Theme>,
document.getElementById("mainmenu-container"),
document.getElementById("root"),
);
}

@ -18,7 +18,7 @@ let gameContainer: HTMLElement;
(function () {
function getGameContainer(): void {
const container = document.getElementById("entire-game-container");
const container = document.getElementById("root");
if (container == null) {
throw new Error(`Failed to find game container DOM element`);
}

@ -10,7 +10,7 @@ let gameContainer: HTMLElement;
(function () {
function getGameContainer(): void {
const container = document.getElementById("entire-game-container");
const container = document.getElementById("root");
if (container == null) {
throw new Error(`Failed to find game container DOM element`);
}

@ -31,7 +31,7 @@ export function createPopup(id: string, elems: HTMLElement[], options: ICreatePo
}
container.appendChild(content);
getElementById("entire-game-container").appendChild(container);
getElementById("root").appendChild(container);
return container;
}