Very good

This commit is contained in:
Cris Stringfellow 2023-01-14 16:28:14 +08:00
parent bb560f0853
commit a333dc7a79
No known key found for this signature in database
1 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,7 @@
<p>
View <a href=/archive_index.html>the index</a>
</p>
<!--
<form method=POST action=/crawl>
<fieldset>
<legend>Crawl and Index</legend>
@ -142,6 +143,7 @@
</script>
</fieldset>
</form>
-->
<form method=GET action=/search>
<fieldset class=search>
<legend>Search your archive</legend>
@ -182,6 +184,10 @@
async function showCurrentMode() {
const mode = await fetch('/mode').then(r => r.text());
console.log({mode});
if ( ! mode ) {
setTimeout(showCurrentMode, 300);
return;
}
form.notification.value = "";
form.querySelector(`[name="mode"][value="${mode}"]`).checked = true;
}