73 lines
64 KiB
HTML
73 lines
64 KiB
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html lang="en">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
|
<title>Fractal Bloom in Deep Space — 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 = "# Roadmap\n\nWhat's coming next. No dates, no promises. Just direction.\n\n## Done\n\n- Three-column UI — left panel (docs/media), center (terminal), right (menu/ask). Repositionable CLI.\n- Email bridge — `/connect email`, receive bookmarks in your inbox, email `username@motd.social` to post\n- Telegram bridge — `/connect telegram`, receive bookmarks on your phone, message users from Telegram\n- Git integration — repos, stars, Voieneur backend\n- Avatar upload — upload an image, server converts to ASCII\n- Reply threading — /reply with grey quote block, /re for quick replies, /goto\n- Feed visible to guests without login\n\n## Next\n\n## Planned\n\n- Paid # posts — sponsors (12€/year) or one-time (2€), 24h promoted placement\n- Rust CLI client — same commands, real terminal, installable binary\n- Draggable media panels — floating windows for images, audio, video\n\n## Ideas\n\n- LLM-powered /find — smarter search behind the same command\n- Self-hosting guide — run your own motd instance\n- Plugin marketplace — discover community-built integrations\n- Media bridging — forward images and audio via Telegram and email\n\n## Sponsor\n\nSponsorship directly extends archive duration for everyone.\nDetails coming in /read support.\n";
|
||
|
|
const passes = [{"t":0,"r":19,"c":1,"a":"hold","s":0.24775306869215882,"ps":9,"e":100.63202454953728,"pr":1.1},{"t":0,"r":17,"c":0,"a":"died","s":0,"ps":8,"e":100,"pr":1},{"t":0,"r":14,"c":3,"a":"hold","s":0.22581534126904965,"ps":9,"e":100.4565227301524,"pr":1.1},{"t":0,"r":26,"c":7,"a":"extend","s":0.349831148839,"ps":9,"e":71.0140544334984,"pr":1.1},{"t":1,"r":19,"c":1,"a":"extend","s":0.35833859672421514,"ps":9,"e":71.50411332633169,"pr":1.1},{"t":1,"r":14,"c":3,"a":"hold","s":0.2277453424829524,"ps":8,"e":101.07848547001602,"pr":1.05},{"t":1,"r":26,"c":7,"a":"extend","s":0.3617829688659091,"ps":9,"e":50.79082272909797,"pr":1.1},{"t":1,"r":26,"c":6,"a":"extend","s":0.4105585145148161,"ps":5,"e":23.078344011332486,"pr":1.2000000000000002},{"t":1,"r":26,"c":8,"a":"extend","s":0.3473143012123258,"ps":5,"e":22.724176416838542,"pr":1.2000000000000002},{"t":2,"r":19,"c":1,"a":"extend","s":0.35833859672421514,"ps":8,"e":51.21957547008778,"pr":1.05},{"t":2,"r":14,"c":3,"a":"retracted","s":0.22581534126904965,"ps":7,"e":101.83500820016842,"pr":1},{"t":2,"r":26,"c":7,"a":"extend","s":0.3617829688659091,"ps":8,"e":36.73956053601766,"pr":1.05},{"t":2,"r":26,"c":6,"a":"extend","s":0.4908628125369955,"ps":5,"e":18.378672558139915,"pr":1.2000000000000002},{"t":2,"r":26,"c":8,"a":"hold","s":0.3404449091410493,"ps":5,"e":24.697735689966937,"pr":1.2000000000000002},{"t":2,"r":18,"c":1,"a":"hold","s":0.2878839523413149,"ps":5,"e":32.197691615729816,"pr":1.2000000000000002},{"t":2,"r":19,"c":0,"a":"hold","s":0.16867794275017017,"ps":5,"e":31.24404353900066,"pr":1.2000000000000002},{"t":2,"r":25,"c":7,"a":"hold","s":0.348064439307208,"ps":5,"e":23.802010969785364,"pr":1.2000000000000002},{"t":2,"r":25,"c":6,"a":"hold","s":0.32938699805247706,"ps":5,"e":11.775814846419454,"pr":1.3000000000000003},{"t":2,"r":27,"c":6,"a":"extend","s":0.38531616659458257,"ps":5,"e":8.556273736329407,"pr":1.3000000000000003},{"t":2,"r":26,"c":9,"a":"hold","s":0.25694613465636773,"ps":5,"e":11.044501827324602,"pr":1.3000000000000003},{"t":2,"r":25,"c":8,"a":"hold","s":0.1925495468489461,"ps":5,"e":10.529329124865228,"pr":1.3000000000000003},{"t":3,"r":19,"c":1,"a":"hold","s":0.24775306869215882,"ps":8,"e":52.00160001962505,"pr":1.05},{"t":3,"r":26,"c":7,"a":"hold","s":0.349831148839,"ps":8,"e":38.338209726729666,"pr":1.05},{"t":3,"r":26,"c":6,"a":"extend","s":0.4908628125369955,"ps":4,"e":15.193902540905114,"pr":1.1500000000000001},{"t":3,"r":26,"c":8,"a":"hold","s":0.3404449091410493,"ps":4,"e":26.82129496309533,"pr":1.1500000000000001},{"t":3,"r":18,"c":1,"a":"hold","s":0.3044169705737071,"ps":5,"e":33.883027380319476,"pr":1.2000000000000002},{"t":3,"r":19,"c":0,"a":"hold","s":0.1849416916311296,"ps":4,"e":32.1235770720497,"pr":1.1500000000000001},{"t":3,"r":25,"c":7,"a":"hold","s":0.30419606163714646,"ps":4,"e":25.635579462882536,"pr":1.1500000000000001},{"t":3,"r":25,"c":6,"a":"hold","s":0.3266145416356383,"ps":4,"e":13.78873117950456,"pr":1.2500000000000002},{"t":3,"r":27,"c":6,"a":"extend","s":0.3845424368730451,"ps":4,"e":7.722829261919637,"pr":1.2500000000000002},{"t":3,"r":26,"c":9,"a":"hold","s":0.2574204590781265,"ps":4,"e":12.503865499949613,"pr":1.2500000000000002},{"t":3,"r":25,"c":8,"a":"hold","s":0.1989675385388894,"ps":5,"e":11.371069433176343,"pr":1.3000000000000003},{"t":3,"r":20,"c":1,"a":"hold","s":0.23531481790394185,"ps":5,"e":23.083765173269153,"pr":1.1500000000000001},{"t":3,"r":27,"c":7,"a":"hold","s":0.33674848715674144,"ps":5,"e":17.6895138412615,"pr":1.1500000000000001},{"t":3,"r":27,"c":5,"a":"hold","s":0.3110416056591703,"ps":5,"e":5.405307303700251,"pr":1.4000000000000004},{"t":4,"r":19,"c":1,"a":"hold","s":0.24775306869215882,"ps":7,"e":52.93362456916232,"pr":1},{"t":4,"r":26,"c":7,"a":"hold","s":0.349831148839,"ps":7,"e":40.08685891744167,"pr":1},{"t":4,"r":26,"c":6,"a":"extend","s":0.4105585145148161,"ps":4,"e":12.51485945991655,"pr":1.1500000000000001},{"t":4,"r":26,"c":8,"a":"retracted","s":0.3473143012123258,"ps":4,"e":28.999809372793937,"pr":1.1500000000000001},{"t":4,"r":18,"c":1,"a":"retracted","s":0.3044169705737071,
|
||
|
|
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>
|