diff options
author | uvok cheetah | 2020-05-23 15:36:24 +0200 |
---|---|---|
committer | uvok cheetah | 2020-05-23 15:36:24 +0200 |
commit | def6b0ae49ffcacee91c33a55388b4083b95774d (patch) | |
tree | f91c7b14f2d829c0f67d4a1e205cb23c2c8fb85f | |
parent | 469ab3b72528b06ce4732bd19cfe09403986f710 (diff) |
Prepare querying
-rw-r--r-- | search.html | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/search.html b/search.html index c35817d..ed9efab 100644 --- a/search.html +++ b/search.html @@ -4,8 +4,8 @@ layout: page <script src="/assets/js/lunr.min.js"></script> <p> -<input></input> -<button>Submit</button> +<input id="input_qterm"></input> +<button id="qsubmit">Submit</button> </p> <h1>Search results for <span id="qterm"></span></h1> @@ -64,4 +64,9 @@ layout: page document.getElementById("results").appendChild(el); } document.getElementById("qterm").textContent = queryterm; + + const qbox = document.getElementById("input_qterm"); + document.getElementById("qsubmit").onclick = ev => { + alert(qbox.value); + }; </script> |