summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruvok cheetah2020-05-23 15:49:51 +0200
committeruvok cheetah2020-05-23 15:49:51 +0200
commit1046c86029abc29c02b679473679731752e8bc5e (patch)
tree4bacf550e7ab39092b1f11621f9aec344edc0075
parent40669b1fd8ff2fcf9270adcdc97fb6fc13b4139e (diff)
Make querying work (scoping)
-rw-r--r--search.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/search.html b/search.html
index 1ec7433..84d89a6 100644
--- a/search.html
+++ b/search.html
@@ -62,8 +62,10 @@ layout: page
}
document.getElementById("qterm").textContent = queryterm;
};
- const qbox = document.getElementById("input_qterm");
document.getElementById("qsubmit").onclick = ev => {
- alert(qbox.value);
+ const qbox = document.getElementById("input_qterm").value;
+ if (qbox.length !== 0) {
+ query(qbox);
+ }
};
</script>