This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let elements = Array.from(document.querySelectorAll('.chartlist-row')); | |
let mapp = new Map(); | |
elements.forEach(function(elem, i, elems) { | |
let today = new Date(Date.now()); | |
let elemArr = new Array(2); | |
let nameElement = elem.querySelector('.chartlist-name'); | |
let timeStamp = elem.querySelector('.chartlist-timestamp'); | |
if (timeStamp && timeStamp.textContent.includes('ago')) { |