|
|
|
@ -315,12 +315,16 @@ window.addEventListener('load', function (e) {
|
|
|
|
|
timeStr += `${Math.floor(secs)}s` |
|
|
|
|
} |
|
|
|
|
if (!timeStr) { |
|
|
|
|
return |
|
|
|
|
document.querySelectorAll('.lsk').forEach(function (elem) { |
|
|
|
|
elem.textContent = 'Last refreshed now' |
|
|
|
|
elem.classList.add('last-refreshed') |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
document.querySelectorAll('.lsk').forEach(function (elem) { |
|
|
|
|
elem.textContent = `Last refreshed ${timeStr} ago` |
|
|
|
|
elem.classList.add('last-refreshed') |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
document.querySelectorAll('.lsk').forEach(function (elem) { |
|
|
|
|
elem.textContent = `Last refreshed ${timeStr} ago` |
|
|
|
|
elem.classList.add('last-refreshed') |
|
|
|
|
}) |
|
|
|
|
}, 500) |
|
|
|
|
}) |
|
|
|
|