mirror of
https://github.com/nafnlj/nljfeeds.git
synced 2024-09-19 17:26:57 +00:00
11 lines
355 B
JavaScript
11 lines
355 B
JavaScript
|
document.addEventListener("click", (event) => {
|
||
|
const actionButton = event.target.closest(`[data-action]`);
|
||
|
|
||
|
if (actionButton) {
|
||
|
actionButton.closest("article").classList.toggle("expanded");
|
||
|
}
|
||
|
});
|
||
|
|
||
|
const timestamp = document.getElementById("build-timestamp");
|
||
|
timestamp.innerText = new Date(timestamp.getAttribute("datetime")).toLocaleString();
|