Implement auto-show and auto-focus

Fixes #30
This commit is contained in:
Florine W. Dekker 2022-11-21 23:23:29 +01:00
parent ae202b072b
commit b97afae983
Signed by: FWDekker
GPG Key ID: D3DCFAA8A4560BE0
1 changed files with 6 additions and 0 deletions

View File

@ -251,4 +251,10 @@ doAfterLoad(() => {
footerTarget
);
}
if (getMetaProperty("fwd:auto:show-main") !== undefined)
$("main")?.classList?.remove("hidden");
if (getMetaProperty("fwd:auto:autofocus") !== undefined)
$("[autofocus]")?.focus();
});