summaryrefslogtreecommitdiff
path: root/public/site.js
diff options
context:
space:
mode:
authorJonas Kohl2024-11-08 11:51:29 +0100
committerJonas Kohl2024-11-08 11:51:29 +0100
commit196f0d69bcf29cf589fc5f379920286f9db14426 (patch)
tree17b9a29ed4fca01099274e1a6047b9aae17ecb67 /public/site.js
parenta4ea9c666f8f01b56077476e830dd358231bc53f (diff)
Add full width toggle
Diffstat (limited to 'public/site.js')
-rw-r--r--public/site.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/public/site.js b/public/site.js
index e19d6ef..1155126 100644
--- a/public/site.js
+++ b/public/site.js
@@ -49,6 +49,11 @@ $(function() {
});
});
+ $("#toggleFullWidth").on("click", function(e) {
+ e.preventDefault();
+ $("body").toggleClass("full-width");
+ });
+
$("form").on("submit", function(e) {
e.preventDefault();