INNER CODE UNIT · Python
render
yohey-w/multi-agent-shogun · scripts/dashboard-viewer.py:174
async function render() {
const md = await fetchDashboard();
contentEl.innerHTML = marked.parse(md);
}
function setStatus(ok, text) {
dot.className = 'dot' + (ok ? '' : ' stale');
statusText.textContent = text;
}
async function poll() {
try {
const mtime = await fetchMtime();
if (mtime !== lastMtime) {
lastMtime = mtime;
await render();
const d = new Date();
lastUpdated.textContent = 'Updated ' + d.toLocaleTimeString('ja-JP');