import {readFile,writeFile} from 'node:fs/promises'; import path from 'node:path'; import {standardHeader,standardFooter,shellPages} from './site-chrome.mjs'; const pub=path.resolve(import.meta.dirname,'../public'); for(const page of shellPages){ const file=path.join(pub,page+'.html');let html=await readFile(file,'utf8'); if(!html.includes('');html=''+html.replace('','').slice(0,at-''.length)+'
'+html.slice(at)+'
';} if(!html.includes(']*)>/,'
').replace('','
'); if(['transport-lab','wisp-captcha-check'].includes(page))html=html.replace('