This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(async () => { | |
const head = document.querySelector('head'); | |
const body = document.querySelector('body'); | |
const includes = document.querySelectorAll('include'); | |
const parser = new DOMParser(); | |
const templates = { | |
styles: [], | |
scripts: [], | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function seededRandomColor(seed) { | |
function LCG(s) { | |
return (Math.imul(741103597, s) >>> 0) / 2 ** 32; | |
} | |
const symbols = '0123456789ABCDEF'; | |
let color = '#'; | |
for (let i = 0; i < 6; i++) { |