From 9b04719d09937a112b1ac6bbe64402006f9fb261 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 3 Aug 2023 01:10:23 +0200 Subject: small cleanup and some custom video controls --- server/src/routes/ui/style/transition.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'server/src/routes/ui/style/transition.js') diff --git a/server/src/routes/ui/style/transition.js b/server/src/routes/ui/style/transition.js index df09277..7d39176 100644 --- a/server/src/routes/ui/style/transition.js +++ b/server/src/routes/ui/style/transition.js @@ -6,14 +6,14 @@ /// const duration = 0.2 -// globalThis.addEventListener("load", () => { -// patch_page() -// }) +globalThis.addEventListener("load", () => { + patch_page() +}) -// globalThis.addEventListener("popstate", (_e) => { -// transition_to(window.location.href, true) -// // transition_to(_e.state.href, true) -// }) +globalThis.addEventListener("popstate", (_e) => { + transition_to(window.location.href, true) + // transition_to(_e.state.href, true) +}) function patch_page() { document.querySelectorAll("a").forEach(el => { -- cgit v1.2.3-70-g09d2