summaryrefslogtreecommitdiff
path: root/static/script.js
blob: f21372a2c471411415ad4775859cc9b5639d6068 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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()
    }
}