diff options
author | petrus comestor <petrus@comestor.org> | 2025-05-22 21:18:40 -0400 |
---|---|---|
committer | petrus comestor <petrus@comestor.org> | 2025-05-22 21:18:40 -0400 |
commit | 0c7d88c2697818105fa6256c9dab2cb744ea61e0 (patch) | |
tree | 96d6f683e635e30f3329fb31f771428f213c850d | |
parent | 0ec48e81d7523af1c1b7fbdbcf831270a9597dfa (diff) |
upd
-rw-r--r-- | static/script.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/static/script.js b/static/script.js index f21372a..e5b9bc3 100644 --- a/static/script.js +++ b/static/script.js @@ -1,12 +1,9 @@ // optional var date = new Date(new Date().toDateString()); date.setDate(date.getDate() - 1); -console.log(date) for (var el of document.getElementsByClassName('event')) { - console.log(el) var d = Date.parse(el.getAttribute('data-timestamp')) if (d < date) { - console.log("remove", d) - el.remove() + el.style = 'display: none;' } } |