Add backrooms/backrooms-no-sound.js

This commit is contained in:
chillcog committed 2026-07-06 07:08:55 +02:00
1 parent 027e752e25
commit 85da5a5f8d
1 file changed
+24
+24
View File
@@ -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);
});