add exploration replay

This commit is contained in:
motd_admin 2026-03-25 18:56:09 +00:00
parent 37c809435f
commit da61bd950f

73
exploration.html Normal file
View file

@ -0,0 +1,73 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Voronoi Fields in Monochrome — exploration</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #0a0a0f; color: #3a3a4a; font-family: ui-monospace, monospace; overflow: hidden; }
#grid { padding: 20px; font-size: 12px; line-height: 1.4; white-space: pre; }
.c { display: inline-block; transition: all 0.3s; }
.c.active { color: #fde68a; text-shadow: 0 0 6px rgba(253,230,138,0.5); }
.c.strong { color: #34d399; text-shadow: 0 0 10px rgba(52,211,153,0.6); font-weight: bold; }
.c.dead { color: #1a1a2a; }
#info { position: fixed; bottom: 10px; left: 20px; color: #3a3a4a; font-size: 11px; }
#controls { position: fixed; top: 10px; right: 20px; color: #666; font-size: 11px; }
#controls span { cursor: pointer; margin-left: 12px; color: #fde68a; }
</style>
</head>
<body>
<div id="grid"></div>
<div id="info">neurameba · physarum exploration</div>
<div id="controls"><span id="play-btn">play</span><span id="reset-btn">reset</span></div>
<script>
const text = "# Terms of Service\n\nLast updated: 2026-03-22\n\nThese are the rules. Written for humans, not lawyers.\n\n## Age\n\nYou must be at least 16 years old to use motd.\n\n## Your Content\n\nYou own what you post. motd doesn't claim ownership of your content. We don't sell it, mine it, or train models on it.\n\n## What We'll Remove\n\nContent that violates basic decency:\n- Hate speech\n- Harassment or targeted abuse\n- Illegal content\n- Spam or coordinated manipulation\n\nIf you see it, `/kill` it. If enough people kill it, it fades from everyone's view automatically. Admins can also remove content and terminate accounts for terms violations.\n\n## Accounts\n\n- You can delete your account at any time with `/terminate-account`. This is immediate and irreversible. All your posts, media, and data are wiped.\n- Admins can terminate accounts that violate these terms.\n- One account per person. Alts for abuse evasion will be terminated.\n\n## Data Lifecycle\n\nPosts are ephemeral by design:\n- **Active:** visible in the feed for 30 days\n- **Archived:** searchable for 90 more days\n- **Purged:** permanently deleted after 120 days total\n\nThis is not a permanent record. It's a conversation.\n\n## Privacy\n\nWhat we store:\n- Username and display name\n- Password (hashed, never stored in plain text)\n- Posts and media you upload\n- Your preferences and settings\n- Session tokens\n\nWhat we don't do:\n- No tracking\n- No ads\n- No data sales\n- No third-party analytics\n- No cookies beyond the session token\n\nYour kill list (filters) is private and never shared with anyone — not other users, not admins viewing your profile.\n\n## Your Rights (EU)\n\nmotd operates from Finland under EU data protection law.\n\n- You can request a copy of all data we store about you.\n- You can delete all your data at any time with `/terminate-account`.\n- We don't transfer your data outside the EU.\n- Our servers are in Helsinki, Finland (Hetzner).\n- Contact: hello@motd.social\n\n## The Service\n\nmotd is provided as-is. No guarantees on uptime, availability, or data preservation beyond the stated lifecycle. We run it because we want it to exist. We'll do our best to keep it running.\n\n## Changes\n\nThese terms may be updated. Continued use means you accept the current terms. Major changes will be announced via a post from @motd.\n\n## Questions\n\nPost with an @motd mention or email hello@motd.social.\n";
const passes = [{"t":0,"r":7,"c":0,"a":"died","s":0,"ps":8,"e":100,"pr":1},{"t":0,"r":39,"c":7,"a":"extend","s":0.3160264837364918,"ps":9,"e":70.82474830892436,"pr":1.1},{"t":0,"r":55,"c":62,"a":"hold","s":0.2641185257539532,"ps":9,"e":100.76294820603162,"pr":1.1},{"t":1,"r":39,"c":7,"a":"extend","s":0.32999942514301966,"ps":8,"e":50.58532059704796,"pr":1.05},{"t":1,"r":55,"c":62,"a":"hold","s":0.2934229353621895,"ps":9,"e":101.76033168892914,"pr":1.1},{"t":2,"r":39,"c":7,"a":"hold","s":0.30250823710282,"ps":7,"e":51.95538649387052,"pr":1},{"t":2,"r":55,"c":62,"a":"retracted","s":0.2934229353621895,"ps":8,"e":102.90771517182665,"pr":1.05},{"t":3,"r":39,"c":7,"a":"hold","s":0.26772020252839557,"ps":6,"e":53.197148114097686,"pr":0.95},{"t":4,"r":39,"c":7,"a":"retracted","s":0.20099650293506965,"ps":6,"e":53.905120137578244,"pr":0.95}];
const lines = text.split('\n');
const gridEl = document.getElementById('grid');
const charEls = [];
for (let r = 0; r < lines.length; r++) {
const row = [];
for (let c = 0; c < lines[r].length; c++) {
const s = document.createElement('span');
s.className = 'c';
s.textContent = lines[r][c];
row.push(s);
gridEl.appendChild(s);
}
charEls.push(row);
gridEl.appendChild(document.createTextNode('\n'));
}
let tick = -1, playing = false, iv;
function apply(t) {
for (const r of charEls) for (const e of r) e.className = 'c';
const active = new Map();
for (const p of passes) {
if (p.t > t) break;
const k = p.r+','+p.c;
if (p.a === 'died' || p.a === 'retracted') active.set(k, 'dead');
else if (p.ps > 16) active.set(k, 'strong');
else active.set(k, 'active');
}
for (const [k, cls] of active) {
const [r, c] = k.split(',').map(Number);
if (charEls[r]?.[c]) charEls[r][c].className = 'c ' + cls;
}
document.getElementById('info').textContent = 'tick ' + t + ' · ' + [...active.values()].filter(v=>v!=='dead').length + ' alive';
}
function play() {
if (playing) return;
playing = true;
document.getElementById('play-btn').textContent = 'pause';
const max = passes.length > 0 ? passes[passes.length-1].t : 0;
iv = setInterval(() => { tick++; if (tick > max) { pause(); return; } apply(tick); }, 900);
}
function pause() { playing = false; clearInterval(iv); document.getElementById('play-btn').textContent = 'play'; }
function reset() { pause(); tick = -1; for (const r of charEls) for (const e of r) e.className = 'c'; document.getElementById('info').textContent = 'neurameba'; }
document.getElementById('play-btn').addEventListener('click', () => playing ? pause() : play());
document.getElementById('reset-btn').addEventListener('click', reset);
setTimeout(play, 1000);
</script>
</body>
</html>