fetch('/content/445ec16f5a098ca0d29a0179e2aa4f39f636d01d716ad49811b1656d0694f767i0')
.then(response => response.json())
.then(data => {
document.getElementById('title').innerText = data.title;
const manifestoDiv = document.getElementById('manifesto');
manifestoDiv.innerHTML = `${data.title}
${data.author}
${data.date}
`; // Adding paragraphs data.content.forEach(para => { manifestoDiv.innerHTML += `${para}
`; }); }); let blockHeight; const mod = 2 ** 31 - 1; const a = 1103515245; const c = 12345; let seed; async function getBlockHeight() { const response = await fetch('/blockheight'); blockHeight = await response.text() || 0; seed = hashCode(blockHeight); init(); } function random() { seed = (a * seed + c) % mod; return seed / mod; } function getRandomColor() { const letters = '0123456789ABCDEF'; let color = '#'; for (let i = 0; i < 6; i++) { color += letters[Math.floor(random() * 16)]; } return color; } function hashCode(str) { let hash = 0; if (str.length === 0) { return hash; } for (let i = 0; i < str.length; i++) { const char = str.charCodeAt(i); hash = (hash << 5) - hash + char; hash = hash & hash; } return Math.abs(hash); } function init() { document.body.style.color = getRandomColor(); } getBlockHeight(); setTimeout(function() { location.reload(); }, 60000);