Skip to content

Commit 63b3a64

Browse files
committed
Working noscript message
1 parent efe07be commit 63b3a64

File tree

3 files changed

+7
-19
lines changed

3 files changed

+7
-19
lines changed

src/index.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@
1717
<link href="/css/bootstrap.min.css" rel="stylesheet">
1818
</head>
1919

20-
<body class="h-100">
20+
<body class="h-100 w-100 d-flex">
2121
<script type="module" src="./index.ts"></script>
22-
<div class="scriptonly" id="loading">
22+
<div class="h-100 w-100 align-items-center justify-content-center scriptonly" id="loading">
2323
<img src="/images/spinner.gif" alt="Loading..." />
2424
</div>
25-
<div id="achtable" style="display:none">
26-
</div>
25+
<div id="unicodetable" class="d-none w-100 h-100"></div>
2726
<div id="errdiv" class="d-none d-flex flex-column justify-content-center align-items-center w-100 h-100">
2827
<div class="alert alert-danger m-3" role="alert">
2928
<img class="pe-2" src="/images/stop.svg" alt="Error" width="100" height="100" />

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ async function main() {
508508
TooltipModule,
509509
]);
510510

511-
const table = new Tabulator("#achtable", {
511+
const table = new Tabulator("#unicodetable", {
512512
autoResize: true,
513513
data,
514514
columns: [
@@ -767,8 +767,8 @@ async function main() {
767767
};
768768
});
769769

770-
document.getElementById("loading")!.style.display = "none";
771-
document.getElementById("achtable")!.style.display = "block";
770+
document.getElementById("loading")!.classList.add("d-none");
771+
document.getElementById("unicodetable")!.classList.remove("d-none");
772772
}
773773

774774
main();

src/styles.css

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,6 @@ html, body {
77
}
88

99
body {
10-
background-color: #f0f0f0;
11-
font-family: sans-serif;
10+
font-family: sans-serif;
1211
}
1312

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-
}
22-
23-

0 commit comments

Comments
 (0)