blob: f08859d0125d0ece798a3f08f429b96285a81aaf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
module.exports = Ferdi => {
const getMessages = () => {
const events = document.querySelectorAll(".today")[0].getElementsByClassName('list')[0].getElementsByClassName('task-list')[0].getElementsByClassName('event-section')[0].getElementsByClassName('droppable')[0].children[0].childElementCount
const tasks = document.querySelectorAll(".today")[0].getElementsByClassName('list')[0].getElementsByClassName('task-list')[0].getElementsByClassName('task-section')[0].getElementsByClassName('droppable')[0].children[0].childElementCount
Ferdi.setBadge(events + tasks);
};
Ferdi.loop(getMessages);
}
|