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