add services

This commit is contained in:
2026-06-02 22:54:55 +02:00
parent f83e01380c
commit 28bcb6232f
9 changed files with 160 additions and 37 deletions
+11 -1
View File
@@ -11,8 +11,18 @@ async function refreshGallery() {
}
document.addEventListener("keydown", async (e) => {
if (e.key !== "c" && e.key !== "C") return;
if (e.key !== ">") return;
const flash = document.getElementById("flash");
flash.classList.remove("fade");
flash.classList.add("active");
await new Promise((r) => setTimeout(r, 300));
await fetch("/capture");
flash.classList.remove("active");
flash.classList.add("fade");
refreshGallery();
});