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