Summary Files Commits Branches @commit @diff @stats
path: root / src / scripts / styling-preload.js
diff options
context:
space:
mode:
Commit7456799a58fcbb63c193a1e793a92e6aca17ebfd (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-12-11 10:59:51 +0200
Committer
 Syndamia <kamen@syndamia.com>
2023-12-11 10:59:51 +0200
Filesaf38e5953b5ef33f15e7d10197c1c343ccdbb8c1 /src/scripts/styling-preload.js
syndamia.com-7456799a58fcbb63c193a1e793a92e6aca17ebfd.tar
syndamia.com-7456799a58fcbb63c193a1e793a92e6aca17ebfd.tar.gz
syndamia.com-7456799a58fcbb63c193a1e793a92e6aca17ebfd.zip
Parentd2c7b4eb144d674ad174bf33b43706e7a967ae9f (diff)
(presentation) Big overhaul, presentation.css is now always included, loading an article-mode page happens without slides flash, fixed certain cases where slides wouldn't resize but needed to
1 files changed, 5 insertions, 0 deletions
-rw-r--r--src/scripts/styling-preload.js5
diff --git a/src/scripts/styling-preload.js b/src/scripts/styling-preload.js
index c73a6b3..db87911 100644
--- a/src/scripts/styling-preload.js
+++ b/src/scripts/styling-preload.js
@@ -6,3 +6,8 @@ if (localStorage.getItem('theme') === 'light')
/* No JS */
const hideJSStylings = document.styleSheets[2];
hideJSStylings.disabled = true;
+
+/* Presentation */
+const presentationStyle = document.styleSheets[3];
+if (window.location.href.indexOf('?a') > -1)
+ presentationStyle.disabled = true;