channel selection closes #5

pull/414/head
HeNine 3 years ago
parent 0a3fc28a01
commit 753784657e

@ -16,6 +16,9 @@
<div id="time_search_line" class="form_line"> <div id="time_search_line" class="form_line">
<label for="start_time">Start time</label> <input id="start_time" type="datetime-local"> <label for="start_time">Start time</label> <input id="start_time" type="datetime-local">
<label for="end_time">End time</label> <input id="end_time" type="datetime-local"> <label for="end_time">End time</label> <input id="end_time" type="datetime-local">
<label for="channel_select">Channel</label><select id="channel_select">
<option value="loadingreadyrun">loadingreadyrun</option>
</select>
<button id="search_button" onclick="doSearch()" type="button">Search</button> <button id="search_button" onclick="doSearch()" type="button">Search</button>
</div> </div>
</div> </div>

@ -23,9 +23,10 @@ function query(text, start_time, end_time) {
query_string += "&limit=30"; query_string += "&limit=30";
fetch(`/buscribelrr/json?${query_string}`) const channel = document.getElementById("channel_select").value;
fetch(`https://wubloader.raptorpond.com/buscribe/${channel}/json?${query_string}`)
.then(response => response.json()) .then(response => response.json())
// .then(response => console.log(response.error()))
.then(fillResults) .then(fillResults)
} }

Loading…
Cancel
Save