From bf32a1a3dc73bd716a030250dedca01e3496404c Mon Sep 17 00:00:00 2001 From: Lars Kiesow Date: Thu, 1 Feb 2024 18:12:28 +0100 Subject: [PATCH] Make logo configurable This patch allows users to configure a logo each for the different display states. --- assets/index.html | 2 +- assets/index.js | 7 +++ assets/virtuos-logo.png | Bin 3863 -> 0 bytes main.go | 1 + opencast-ca-display.yml | 93 +++++++++++++++++++++++++++++++++++++++- 5 files changed, 101 insertions(+), 2 deletions(-) delete mode 100644 assets/virtuos-logo.png diff --git a/assets/index.html b/assets/index.html index abd7d87..e4fe587 100644 --- a/assets/index.html +++ b/assets/index.html @@ -6,7 +6,7 @@ - +
diff --git a/assets/index.js b/assets/index.js index 33702df..2e71d0f 100644 --- a/assets/index.js +++ b/assets/index.js @@ -20,9 +20,16 @@ function updateTimer() { .then(capturing => { console.debug('capturing', capturing) const active = capturing ? config.capturing : config.idle; + + // Update text document.getElementById('text').innerText = active.text; + + // Update colors const body = document.getElementsByTagName('body')[0]; body.style.backgroundColor = active.background; body.style.color = active.color; + + // Update logo + document.getElementById('logo').src = active.image.replace(/\s/g, ''); }) } diff --git a/assets/virtuos-logo.png b/assets/virtuos-logo.png deleted file mode 100644 index ba03b1c7b033c562ba0ef323a7894be21d97d56a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3863 zcmeHKXIB&262-z3Q9+T8fQm?OqU2H}Dk3QDg7j*D03uC7Kx(cET#*YXN|69jQE4Fv zkq(IxLNO3ZAi+=~9YPHy0g{lH`zzj;_hHVgz0R4nX3aW#W>4Cmwic&^WrYO<1Ww(x zyzRjE-T#`}+ zss|(5!CGXmvDkskk~(8l^rNw*kSY?ox{&H@Os{vxJAbRYsCrQ{r$R{e z^0Ua}LQ^7#4$s!w!A0=1g{QN(B#QTAxq=Ist#^rgMP~(%C6i23nscy6#7TN#fpmo%JxcT*#Ux`_v#YJj|V*v-b0zaGw%Abif`7C!mYgcLv? zLYbiIY8SX)wAqI#<1o^>O{dga;ysDJ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jupINrLY1QdZJwn8y6viSQD + 4yC82zNlOJogcuEEgoi/+av94EDPGSvJQYv2D/ihTRFZfMDsJA9S9j9kVvwg + /eD9ZZoDH4Plsvr12wkUtUvZdEocT3yHxgdxfqsWlOafqNWiz3K/5u/9C81W + FpUnumvJ6te607X1TbOU4+qvyGt5T2y8INRo07Qd7btz9nlkneSrZrR3xBok + 3mer5jkY+yB7m/dPkj7IDzse91dOO6p8MlrFP6NDmtsLtR8f5Fe8HHwsi/ry + aX9UnNMXfyfJwdifwIRMCDLpQ9J1Js+/rSn/arrF1htNMWvFH7wq9KoYH2Q5 + eN2O5jlQ18b6lTHlUidUnEoWY+ir1wP/shsfhJXkD9T8F6LhZ1F7qquOpHu5 + HrhVPXVWTkn97VSgt/62FZZY0/33iOhe/l+Lb5X8k000WMtkiZpKH0S9QSaT + OeiRdiQV+jtsszv4S0ehWoGoej5se96jOgMAAAAAAAAAAAAAAAAAAAAAuBD/ + AO9hftIMDgN8AAAAAElFTkSuQmCC + idle: text: Keine Aufzeichnung color: black background: white + image: > + data:image/png;base64, + iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAC2VBMVEWsBjS5 + LVOxFUDLY4DgobLv0Nn57/L////+/Pz04OXpvsrZjqPCSWq4KlHQc4zjrLvy + 2N/47PDfobOyGELVgpncl6q9OV7BRGevEDz57PDgo7TARGasBzWtCzjObYju + zdb//f389vjmtsPEUHDjrr23KVDlsb+uDTq2JU2sCDbblan79PbMaIT89/j0 + 3+W/P2Ly2uHdnK7Xip+1IUrx2N/HV3bCSmyzHkfKYX7sx9Houcb35+z35+uv + Ej3w1d3blKjls8G6MVfYjKHETm/QcoznuMXMZoK9Ol66L1bDTG3UgJf03uT7 + 8vW0H0n25Onbk6fXh52zGkW+PGD78/XMZ4PrxM/clandmay0IUrksb/GVnXp + vMnz3ePXiZ7w0dr68vSuDjv89vf9+frZj6TReJHObIfHWXfFUnK8OFyyGUPZ + j6PSepPWh539+/uxGEK+PmLNa4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+05KhNr1ciHtrbOIAb2TztuHZwUf/OSIj + bK88oK7dti/ul3z266pm60yaf9sZes/rfda70pFqPTsNaV/XElL7e5Q2/FSa + f4+spFz+r0VResjN9mzc3jXalThjwh+ybVHjPl+Xy+X60+fO9CjG+Gv5fn9N + bdf+Ja02rbN0Tm63v7bb1/63qhYAAAAAAAAAAAAAAAAAAAAAAAAAAIDY8w9T + Gxe/25sMhQAAAABJRU5ErkJggg== + # IP address and port to bind to listen: 127.0.0.1:8080