From dd56bcdf951a8868461c80f72783a0e411e4fae4 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 14 Apr 2019 18:03:51 +0200 Subject: Added settings support for non-preview files --- src/main/resources/js/fileview.js | 2 ++ src/main/resources/js/prettify.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/resources/js/fileview.js b/src/main/resources/js/fileview.js index c6b10f2..c34ce27 100644 --- a/src/main/resources/js/fileview.js +++ b/src/main/resources/js/fileview.js @@ -33,6 +33,8 @@ if (extension === "md" || extension === "html") { settings.style.display = "none"; } }); +} else { + settings.style.display = "block"; } code.addEventListener("change", () => { diff --git a/src/main/resources/js/prettify.js b/src/main/resources/js/prettify.js index 27b3a38..5c0d71d 100644 --- a/src/main/resources/js/prettify.js +++ b/src/main/resources/js/prettify.js @@ -100,7 +100,7 @@ N.insertBefore(g, N.firstChild) })(H[l]); for (var S = H.length, F = [], l = 0, B = P.length; l < B; ++l) F.push("https://cdn.rawgit.com/google/code-prettify/master/loader/skins/" + encodeURIComponent(P[l]) + ".css"); - F.push("https://cdn.rawgit.com/google/code-prettify/master/loader/prettify.css"); + F.push("/css/lightTheme.css"); (function (g) { function r(l) { if (l !== x) { -- cgit v1.2.3