From 753784657e46b6a26d0be5cedea1e8ef0f83a139 Mon Sep 17 00:00:00 2001 From: HeNine <> Date: Mon, 8 Nov 2021 16:28:28 +0100 Subject: [PATCH] channel selection closes #5 --- buscribe-web/index.html | 3 +++ buscribe-web/script.js | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/buscribe-web/index.html b/buscribe-web/index.html index 0f5e261..1161146 100644 --- a/buscribe-web/index.html +++ b/buscribe-web/index.html @@ -16,6 +16,9 @@
+
diff --git a/buscribe-web/script.js b/buscribe-web/script.js index c8b9352..744241d 100644 --- a/buscribe-web/script.js +++ b/buscribe-web/script.js @@ -23,9 +23,10 @@ function query(text, start_time, end_time) { 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 => console.log(response.error())) .then(fillResults) }