Skip to content

Commit 2ec205e

Browse files
committed
Working noscript message
1 parent 9a156db commit 2ec205e

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
<body class="h-100">
2424
<script type="module" src="./index.ts"></script>
25-
<div class="scriptonly" id="loading">
25+
<div class="d-flex h-100 w-100 align-items-center justify-content-center" id="loading">
2626
<img src="/images/spinner.gif" alt="Loading..." />
2727
</div>
2828
<div id="emojitable" style="display:none">

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ async function main() {
452452
}
453453
});
454454

455-
document.getElementById("loading")!.style.display = "none";
455+
document.getElementById("loading")!.classList.add("d-none");
456456
document.getElementById("emojitable")!.style.display = "block";
457457
}
458458

src/styles.css

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ body {
1111
font-family: sans-serif;
1212
}
1313

14-
div#loading {
15-
width: 100%;
16-
height: 100%;
17-
display: flex;
18-
justify-content: center;
19-
align-items: center;
20-
background-color: white;
21-
}
14+
2215

2316

0 commit comments

Comments
 (0)