// ---- NO DIVS TEMPLATE (pure tables) ---- if(data.template === "nodivs"){ const navHtml = nav.map(l => `${escapeHtml(l.label)}` ).join("\n"); const extrasHtml = extras.map(x => `${escapeHtml(x)}` ).join("\n"); const topND = data.hotlinks ? renderHotlinksNoDivs(data.hotTopUrls, "Top Stickers") : ""; const sideND = data.hotlinks ? renderHotlinksNoDivs(data.hotSideUrls, "Sidebar Stickers") : ""; const mainND = data.hotlinks ? renderHotlinksNoDivs(data.hotMainUrls, "Main Stickers") : ""; const footND = data.hotlinks ? renderHotlinksNoDivs(data.hotFootUrls, "Footer Stickers") : ""; const marqueeND = data.marquee ? `✨ ${title} ✨ Welcome surfer of the web! ✨ Updated: ${new Date().toLocaleDateString()} ✨` : ""; const blinkND = data.blink ? `THIS BLINKS BECAUSE IT CAN
` : ""; const counterND = data.counter ? `Hit Counter: 000000 (totally real)
` : ""; const webringND = data.webring ? `Webring: Prev | Random | Next
` : ""; const underND = data.under ? `
🚧 UNDER CONSTRUCTION 🚧

` : ""; const midiND = data.midi ? `Music: (add audio later)
` : ""; const noDivsCss = ` body { ${bgCss(data.bg)} font-family:${pack.fonts}; color:#000; } a { color:${pack.primary}; } a:visited { color:${pack.secondary}; } table.page { width: 900px; max-width: calc(100% - 20px); margin: 10px auto; background: rgba(255,255,255,.92); border: 3px ridge #999; } td { font-family:${pack.fonts}; } .cell { border: 2px groove #ccc; vertical-align: top; } .header { background:${pack.chrome}; border-bottom:2px solid #999; } `; const noDivsLayout = `
${title}
${subtitle}

${marqueeND}
${blinkND}
Navigation

${navHtml}

Extras
${extrasHtml}

${sideND}
${counterND} ${webringND}
${topND}
Main

${bodyText}

${mainND} ${underND} ${midiND} ${footND}
© ${new Date().getFullYear()} ${title}
Best viewed at 800×600 | 16-bit color
`; const scriptBits = `