diff options
Diffstat (limited to 'static')
| -rw-r--r-- | static/script.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/static/script.js b/static/script.js new file mode 100644 index 0000000..e5b9bc3 --- /dev/null +++ b/static/script.js @@ -0,0 +1,9 @@ +// optional +var date = new Date(new Date().toDateString()); +date.setDate(date.getDate() - 1); +for (var el of document.getElementsByClassName('event')) { + var d = Date.parse(el.getAttribute('data-timestamp')) + if (d < date) { + el.style = 'display: none;' + } +} |
