forked from CringeStudios/gamja
Add tooltip with full date to timestamp component
This commit is contained in:
parent
11878aaaa9
commit
8e631f97ef
@ -36,7 +36,14 @@ function Timestamp({ date, url }) {
|
|||||||
let ss = date.getSeconds().toString().padStart(2, "0");
|
let ss = date.getSeconds().toString().padStart(2, "0");
|
||||||
let timestamp = `${hh}:${mm}:${ss}`;
|
let timestamp = `${hh}:${mm}:${ss}`;
|
||||||
return html`
|
return html`
|
||||||
<a href=${url} class="timestamp" onClick=${(event) => event.preventDefault()}>${timestamp}</a>
|
<a
|
||||||
|
href=${url}
|
||||||
|
class="timestamp"
|
||||||
|
title=${date.toLocaleString()}
|
||||||
|
onClick=${(event) => event.preventDefault()}
|
||||||
|
>
|
||||||
|
${timestamp}
|
||||||
|
</a>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user