summaryrefslogtreecommitdiff
path: root/js/main.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/main.ts')
-rw-r--r--js/main.ts13
1 files changed, 12 insertions, 1 deletions
diff --git a/js/main.ts b/js/main.ts
index 44d28ad..3c3b25b 100644
--- a/js/main.ts
+++ b/js/main.ts
@@ -1,8 +1,19 @@
-/// <reference path="init.ts" />
/// <reference path="navigation.ts" />
+/// <reference path="page.ts" />
/// <reference path="theme.ts" />
namespace Ach {
+ export async function init() {
+ Ach.loadTheme();
+
+ Ach.initImages();
+ Ach.initLinks();
+
+ window.addEventListener("popstate", (_e) => {
+ location.reload();
+ });
+ }
+
export function currentPage() {
let body = Ach.getFirstElement(document, "body");
let page = body.getAttribute("data-page");