|
|
@ -4,6 +4,8 @@ function onSiteLoad(e) {
|
|
|
|
function (event) {
|
|
|
|
function (event) {
|
|
|
|
if (event.key === 'Enter') doSearch()
|
|
|
|
if (event.key === 'Enter') doSearch()
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
doSearch();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function query(text, start_time, end_time) {
|
|
|
|
function query(text, start_time, end_time) {
|
|
|
@ -19,6 +21,8 @@ function query(text, start_time, end_time) {
|
|
|
|
query_string += `&query=${text}`
|
|
|
|
query_string += `&query=${text}`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
query_string += "&limit=30";
|
|
|
|
|
|
|
|
|
|
|
|
fetch(`http://localhost:8010/buscribe/json?${query_string}`)
|
|
|
|
fetch(`http://localhost:8010/buscribe/json?${query_string}`)
|
|
|
|
.then(response => response.json())
|
|
|
|
.then(response => response.json())
|
|
|
|
// .then(response => console.log(response.error()))
|
|
|
|
// .then(response => console.log(response.error()))
|
|
|
|