From 1046c86029abc29c02b679473679731752e8bc5e Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Sat, 23 May 2020 15:49:51 +0200 Subject: Make querying work (scoping) --- search.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'search.html') 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); + } }; -- cgit v1.2.3