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> </head>
<body> <body>
<div id="entire-game-container"> <div id="root" />
<div id="mainmenu-container" style="display: flex; flex-direction: row"></div>
</div>
</body> </body>
<script src="src/ThirdParty/raphael.min.js"></script> <script src="src/ThirdParty/raphael.min.js"></script>
</html> </html>

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

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

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