Files
azuracast-themes/backrooms/backrooms-no-sound.js
T

24 lines
899 B
JavaScript

// 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);
});