mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 08:03:48 +01:00
index.html is empty now
This commit is contained in:
parent
97624395c1
commit
60a91cd9f7
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user