diff options
author | uvok cheetah | 2020-05-23 15:49:51 +0200 |
---|---|---|
committer | uvok cheetah | 2020-05-23 15:49:51 +0200 |
commit | 1046c86029abc29c02b679473679731752e8bc5e (patch) | |
tree | 4bacf550e7ab39092b1f11621f9aec344edc0075 /search.html | |
parent | 40669b1fd8ff2fcf9270adcdc97fb6fc13b4139e (diff) |
Make querying work (scoping)
Diffstat (limited to 'search.html')
-rw-r--r-- | search.html | 6 |
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> |