moved js files in public into js and css into css folder

This commit is contained in:
2026-09-22 21:55:02 +02:00
parent 99a3277e64
commit 08f5f3f8d9
40 changed files with 1772 additions and 1555 deletions
+17
View File
@@ -0,0 +1,17 @@
import {post} from './api.js?v=20260909-account-controls';
// Every page gets this control from the same server-rendered header.
for (const button of document.querySelectorAll('[data-sign-out]')) {
button.addEventListener('click', async () => {
button.disabled = true;
const result = await post('/logout', {});
if (result.error) {
button.disabled = false;
const notice = document.querySelector('#shellNotice');
notice.textContent = result.error;
notice.classList.remove('hidden');
return;
}
location.assign('/');
});
}