diff --git a/actaddmanual/index.html b/actaddmanual/index.html index 1125600..295b0b7 100644 --- a/actaddmanual/index.html +++ b/actaddmanual/index.html @@ -30,7 +30,11 @@ -
+
+ + + +
diff --git a/actaddmanual/style.css b/actaddmanual/style.css index 8cd8bbe..bc094e8 100644 --- a/actaddmanual/style.css +++ b/actaddmanual/style.css @@ -26,6 +26,12 @@ body { background-color: white; } +.alert { + width: 90%; + margin-left: auto; + margin-right: auto; +} + #entries { margin-left: 300px; } diff --git a/index.html b/index.html index e6ccde7..f145427 100644 --- a/index.html +++ b/index.html @@ -28,6 +28,7 @@ + @@ -79,7 +80,7 @@
- +
diff --git a/scripts/cookieinfo.js b/scripts/cookieinfo.js new file mode 100644 index 0000000..4cbf353 --- /dev/null +++ b/scripts/cookieinfo.js @@ -0,0 +1,15 @@ +if (getCookie("notification") !== "true") { + let notif = ""; + notif += ''; + document.write(notif); + + $("#notif-close").on("click", function () { + setCookie("notification", "true", 365); + }); +} \ No newline at end of file diff --git a/scripts/cookies.js b/scripts/cookies.js index 56359cf..de73e51 100644 --- a/scripts/cookies.js +++ b/scripts/cookies.js @@ -1,15 +1,14 @@ -if (cookieNotification) { - let notif = ""; - notif += ''; - document.write(notif); +function getCookie(key) { + let c = document.cookie; + if (!c) + return undefined; + let start = c.indexOf(key + "=") + key.length + 1; + let end = c.indexOf(";", start); + return c.substring(start, end < 0 ? c.length : end); +} - $("#notif-close").on("click", function () { - setCookie("notification", "true", 365); - }); +function setCookie(key, value, days) { + var date = new Date(); + date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); + document.cookie = key + "=" + value + "; expires=" + date.toUTCString(); } \ No newline at end of file diff --git a/scripts/main.js b/scripts/main.js index 1c950df..0efdd3a 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -1,5 +1,4 @@ let dark = getCookie("dark") === "true"; -let cookieNotification = getCookie("notification") !== "true"; let pride = new Date().getMonth() == 5; if (dark) { @@ -39,19 +38,4 @@ $(function () { }); PR.prettyPrint(); -}); - -function getCookie(key) { - let c = document.cookie; - if (!c) - return undefined; - let start = c.indexOf(key + "=") + key.length + 1; - let end = c.indexOf(";", start); - return c.substring(start, end < 0 ? c.length : end); -} - -function setCookie(key, value, days) { - var date = new Date(); - date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); - document.cookie = key + "=" + value + "; expires=" + date.toUTCString(); -} \ No newline at end of file +}); \ No newline at end of file