From 9a3607a10b2854c1eef30ff4b3dad17cddb78644 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 19 Feb 2024 00:42:35 +0200 Subject: [PATCH] show marsify date --- files/assets/js/marsified.js | 4 ++++ files/templates/settings/personal.html | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 files/assets/js/marsified.js diff --git a/files/assets/js/marsified.js b/files/assets/js/marsified.js new file mode 100644 index 0000000000..1021361114 --- /dev/null +++ b/files/assets/js/marsified.js @@ -0,0 +1,4 @@ +const marsified = document.getElementById('marsified').value +const marsified_date = formatDate(new Date(marsified*1000)); +const marsified_text = `You're marsified until ${marsified_date}`; +document.getElementById('marsifyswitch').nextElementSibling.innerHTML += marsified_text; diff --git a/files/templates/settings/personal.html b/files/templates/settings/personal.html index ccd5e16f9b..683f5705d7 100644 --- a/files/templates/settings/personal.html +++ b/files/templates/settings/personal.html @@ -343,6 +343,11 @@ {% endif %} + {% if v.marsify and v.marsify != 1 %} + + + {% endif %} + {% macro permanent_filter_modal(id, form_action, field, friendly_name, badge_name) %}