diff options
-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;' } } |