MarseyWorld/files/assets/js/userpage.js

7 lines
257 B
JavaScript
Raw Normal View History

2022-07-16 21:00:02 +00:00
function badge_timestamp(t) {
2022-11-22 22:36:33 +00:00
const date = formatDate(new Date(t.dataset.until*1000));
2022-09-04 23:15:37 +00:00
const text = t.getAttribute("data-bs-original-title")
t.setAttribute("data-bs-original-title", `${text} ${date.toString()}`);
t.removeAttribute("data-onmouseover")
}