pub.solar/scripts/background.js
2022-10-02 21:38:38 +02:00

12 lines
356 B
JavaScript

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