css darklight
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
ale 2024-10-06 18:12:47 +02:00
parent 03fcba7878
commit 7d1fe46460

View File

@ -368,8 +368,8 @@ document.addEventListener('DOMContentLoaded', function () {
var res = await result.json()
if (res && res.length > 0) {
var bounce = document.getElementById('bounce'),
host = new URL(window.location.href).host
reg = '(<\/?p>|(https?:\/\/)?' + host + ')'
host = new URL(window.location.href).host,
reg = '(<\/?p>|(https?:\/\/)?' + host + ')'
bounce.innerHTML = res.map(function (p) { return `${p.content.replace(new RegExp(reg, 'igm'), '')} ${dayjs().to(p.published)}` }).join(' | ')
}
})