aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/style/transition.js
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-08-03 01:10:23 +0200
committermetamuffin <metamuffin@disroot.org>2023-08-03 01:10:23 +0200
commit9b04719d09937a112b1ac6bbe64402006f9fb261 (patch)
treefd67983fd6aa043ace204036c13225618fcb4486 /server/src/routes/ui/style/transition.js
parent9aa0cceedb52ddea5b08af7372f4c87f60e401d4 (diff)
downloadjellything-9b04719d09937a112b1ac6bbe64402006f9fb261.tar
jellything-9b04719d09937a112b1ac6bbe64402006f9fb261.tar.bz2
jellything-9b04719d09937a112b1ac6bbe64402006f9fb261.tar.zst
small cleanup and some custom video controls
Diffstat (limited to 'server/src/routes/ui/style/transition.js')
-rw-r--r--server/src/routes/ui/style/transition.js14
1 files changed, 7 insertions, 7 deletions
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 @@
/// <reference lib="dom" />
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 => {