forked from rDrama/rDrama
partially revert 835ee3e577
parent
a1b295d084
commit
fefe9f1bde
|
@ -1,8 +1,8 @@
|
||||||
function pinned_timestamp(id) {
|
function pinned_timestamp(id) {
|
||||||
const el = document.getElementById(id)
|
const el = document.getElementById(id)
|
||||||
const time = new Date(parseInt(el.dataset.timestamp)*1000)
|
const time = new Date(parseInt(el.dataset.timestamp)*1000)
|
||||||
const pintooltip = el.getAttribute("title")
|
const pintooltip = el.getAttribute("data-bs-original-title")
|
||||||
if (!pintooltip.includes('until')) el.setAttribute("title", `${pintooltip} until ${time}`)
|
if (!pintooltip.includes('until')) el.setAttribute("data-bs-original-title", `${pintooltip} until ${time}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @type {HTMLImageElement} */
|
/** @type {HTMLImageElement} */
|
||||||
|
|
|
@ -54,7 +54,7 @@ else
|
||||||
|
|
||||||
function badge_timestamp(t) {
|
function badge_timestamp(t) {
|
||||||
const date = new Date(t.dataset.until*1000);
|
const date = new Date(t.dataset.until*1000);
|
||||||
const text = t.getAttribute("title")
|
const text = t.getAttribute("data-bs-original-title")
|
||||||
t.setAttribute("title", `${text} ${date.toString()}`);
|
t.setAttribute("data-bs-original-title", `${text} ${date.toString()}`);
|
||||||
t.removeAttribute("onmouseover")
|
t.removeAttribute("onmouseover")
|
||||||
}
|
}
|
|
@ -19,14 +19,14 @@ set CACHE_VER = {
|
||||||
'js/award_modal.js': 254,
|
'js/award_modal.js': 254,
|
||||||
'js/bootstrap.js': 278,
|
'js/bootstrap.js': 278,
|
||||||
'js/category_modal.js': 200,
|
'js/category_modal.js': 200,
|
||||||
'js/comments+submission_listing.js': 266,
|
'js/comments+submission_listing.js': 267,
|
||||||
'js/submission_listing.js': 261,
|
'js/submission_listing.js': 261,
|
||||||
'js/emoji_modal.js': 314,
|
'js/emoji_modal.js': 314,
|
||||||
'js/formatting.js': 240,
|
'js/formatting.js': 240,
|
||||||
'js/lottery.js': 256,
|
'js/lottery.js': 256,
|
||||||
'js/marked.js': 283,
|
'js/marked.js': 283,
|
||||||
'js/submit.js': 269,
|
'js/submit.js': 269,
|
||||||
'js/userpage.js': 243,
|
'js/userpage.js': 244,
|
||||||
'js/userpage_v.js': 245,
|
'js/userpage_v.js': 245,
|
||||||
'js/lozad.js': 260,
|
'js/lozad.js': 260,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue