From 7456799a58fcbb63c193a1e793a92e6aca17ebfd Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 11 Dec 2023 10:59:51 +0200 Subject: (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 --- src/scripts/styling-preload.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/scripts/styling-preload.js') 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; -- cgit v1.3.1-23-gd82d