From ae1ca08dbe679b004a57d3123257c464f2134b58 Mon Sep 17 00:00:00 2001 From: HeNine <> Date: Sun, 14 Nov 2021 11:29:16 +0100 Subject: [PATCH] add line links --- buscribe-web/line.less | 15 +++++++++++---- buscribe-web/script.js | 7 ++++++- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/buscribe-web/line.less b/buscribe-web/line.less index 21e047d..fcf9541 100644 --- a/buscribe-web/line.less +++ b/buscribe-web/line.less @@ -61,11 +61,18 @@ grid-column: text; } - a { - font-size: small; - font-family: @sans-serif; - color: lightgray; + .line_links { text-align: right; + a { + grid-column: times; + + margin-left: 0.5em; + + font-size: small; + font-family: @sans-serif; + color: lightgray; + text-align: right; + } } } diff --git a/buscribe-web/script.js b/buscribe-web/script.js index ad9bcde..6f61206 100644 --- a/buscribe-web/script.js +++ b/buscribe-web/script.js @@ -45,6 +45,8 @@ function fillResults(results) { const results_element = document.getElementById("results") results_element.innerHTML = "" + const channel = document.getElementById("channel_select").value; + for (const line of results) { const line_div = document.createElement("div"); @@ -59,7 +61,10 @@ function fillResults(results) {
${line.speakers == null ? "" : line.speakers.join(", ")}
${line.start_time}
${line.text}
- Show context + `;