+
diff --git a/actaddmanual/index.js b/actaddmanual/index.js
index 641bf7f..b23feca 100644
--- a/actaddmanual/index.js
+++ b/actaddmanual/index.js
@@ -16,7 +16,7 @@ replacements.set(/
+
diff --git a/scripts/cookieinfo.js b/scripts/cookieinfo.js
index 6b50f98..52c2f58 100644
--- a/scripts/cookieinfo.js
+++ b/scripts/cookieinfo.js
@@ -1,5 +1,5 @@
if (getCookie("notification") !== "true") {
- document.write( /*html*/ `
+ $('#cookieinfo').html( /*html*/ `
This site uses cookies to store information about your browsing activity.
For more information, check out the privacy policy. @@ -9,7 +9,6 @@ if (getCookie("notification") !== "true") {
`);
-
$("#notif-close").on("click", function () {
setCookie("notification", "true", 365);
});
diff --git a/scripts/main.js b/scripts/main.js
index 9cb85f5..e402dd0 100644
--- a/scripts/main.js
+++ b/scripts/main.js
@@ -3,20 +3,13 @@ const pride = new Date().getMonth() === 5;
const loc = $("script").last().attr("src").split("/")[0];
if (dark) {
- document.write( /*html*/ ``);
- document.write( /*html*/ ``);
+ addStyle(`${loc}/style/dark.css`);
+ addStyle(`${loc}/style/prettify-dark.css`);
}
if (pride)
- document.write( /*html*/ ``);
+ addStyle(`${loc}/style/pride.css`);
$(function () {
- let openModals = function (hash) {
- if (hash && hash.startsWith("#")) {
- let modal = $(`${hash}-modal`);
- if (modal.length)
- modal.modal('show');
- }
- }
openModals(window.location.hash);
$('a').on('click', function () {
openModals($(this).attr('href'));
@@ -39,4 +32,12 @@ $(function () {
});
PR.prettyPrint();
-});
\ No newline at end of file
+});
+
+function openModals(hash) {
+ if (hash && hash.startsWith("#")) {
+ let modal = $(`${hash}-modal`);
+ if (modal.length)
+ modal.modal('show');
+ }
+}
\ No newline at end of file
diff --git a/scripts/util.js b/scripts/util.js
index 7dc7eee..c876e2a 100644
--- a/scripts/util.js
+++ b/scripts/util.js
@@ -23,4 +23,11 @@ function forceToAnchor() {
}, 0);
}
}
+}
+
+function addStyle(path) {
+ $('head').append($("", {
+ rel: "stylesheet",
+ href: path
+ }));
}
\ No newline at end of file
diff --git a/style/style.css b/style/style.css
index fa90459..5e7fdd8 100644
--- a/style/style.css
+++ b/style/style.css
@@ -243,11 +243,11 @@ blockquote {
.sellout {
flex-direction: column;
- max-height: none;
}
.sellout iframe {
margin-bottom: 10px;
+ margin-right: 0 !important;
}
}
For more information, check out the privacy policy. @@ -9,7 +9,6 @@ if (getCookie("notification") !== "true") {