diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-07-12 13:58:31 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-07-12 13:58:31 +0200 |
| commit | d09eb5e6348ffba76454df871f91d9cd15c20635 (patch) | |
| tree | 4aef8afe9d8a611919ebd33405a6e03e79961da4 /js/utils-prod.js | |
| parent | 1a291fb37fdf0e5a1b2a54825e5af7c5e986f00f (diff) | |
| download | bycs-sol-d09eb5e6348ffba76454df871f91d9cd15c20635.tar.gz bycs-sol-d09eb5e6348ffba76454df871f91d9cd15c20635.zip | |
js: introduce common date formatting helpers
Diffstat (limited to 'js/utils-prod.js')
| -rw-r--r-- | js/utils-prod.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/utils-prod.js b/js/utils-prod.js index 24bef96..70e4980 100644 --- a/js/utils-prod.js +++ b/js/utils-prod.js @@ -1,3 +1,5 @@ +export { DATE_FMT, DATETIME_FMT, dateStringNow, datetimeStringNow } from "./utils-common.js"; + export function isTeacher() { return Boolean(document.querySelector('.editmode-switch-form')) || document.body.classList.contains('editing'); |
