`view.js`:
async function section() { const hash = (location.hash||'view/welcome-visitors').replace(/(^[\/#]+)|(\/+$)/g,''); const fields = hash.split('/'); const html = []; while (fields.length) { const [where,slug] = fields.splice(0,2); const pid = newpid(); html.push(`<article id=${pid}><h3>${slug}</h3></article>`); const url = where=='view' ? `./${slug}.json` : `//${where}/${slug}.json`; const panel = {pid, where, slug, url}; lineup.push(panel); const _response = await fetch(url).then(res => res.json()).then(json => {panel.page = json; refresh(panel);}); }