aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Borner2019-04-14 18:03:51 +0200
committerMarvin Borner2019-04-14 18:03:51 +0200
commitdd56bcdf951a8868461c80f72783a0e411e4fae4 (patch)
tree907262a6ae2fc5ba4b27fc2b0d84962b2b98e4df
parent8c6905d0553b88b1257cab13355873d5438704fa (diff)
Added settings support for non-preview files
-rw-r--r--src/main/resources/js/fileview.js2
-rw-r--r--src/main/resources/js/prettify.js2
2 files changed, 3 insertions, 1 deletions
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) {