keycloak-theme/common/resources/js/background.js

16 lines
528 B
JavaScript

(() => {
const background = document.getElementById("background");
const logo = document.getElementById("logo").cloneNode(true);
logo.id = "";
const generateBackground = () => (new Array(Math.ceil(window.innerWidth / 100) * Math.ceil(window.innerHeight / 100)))
.fill(null)
.map(_ => logo.cloneNode(true))
.forEach(l => {
background.appendChild(l);
});
generateBackground();
const x1312 = document.getElementById("x1312");
x1312.innerHTML = (new Array(1000)).fill("0x1312").join(" ");
})();