From 85da5a5f8d62b75fb811932d5f2452fef3ff7d17e8bd271fbd6a45b41cd170bf Mon Sep 17 00:00:00 2001 From: chillcog <1+chillcog@noreply.chillcog.com> Date: Mon, 6 Jul 2026 07:08:55 +0200 Subject: [PATCH] Add backrooms/backrooms-no-sound.js --- backrooms/backrooms-no-sound.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 backrooms/backrooms-no-sound.js diff --git a/backrooms/backrooms-no-sound.js b/backrooms/backrooms-no-sound.js new file mode 100644 index 0000000..09e3ce5 --- /dev/null +++ b/backrooms/backrooms-no-sound.js @@ -0,0 +1,24 @@ +// Please dont remove this attribution its required by the license of this code. +// This code is licensed under the CPSL License. +// +// Original code by: @chillcog +// See https://git.chillcog.com/chillcog/azuracast-themes +// Copyright (c) 2024-2026 ChillCog +// + +document.addEventListener("DOMContentLoaded", function () { + const scanline = document.createElement('div'); + scanline.id = 'backrooms-scanlines'; + Object.assign(scanline.style, { + position: 'fixed', + top: '0', + left: '0', + width: '100vw', + height: '100vh', + background: 'linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03))', + backgroundSize: '100% 4px, 6px 100%', + zIndex: '9999', + pointerEvents: 'none' + }); + document.body.appendChild(scanline); +}); \ No newline at end of file