Site assistant (Marty 2026-11-15): chat widget in the ViralAdBlitz look on every page, CANNED + FACTS from this repo's code (Boost $5/500 views, 10% x 5 + 50% company, 20 places, 30-day delivery, ad limits, verified views), retrieval over the shared network knowledge base on the hub (netkb.js publishes this site's entries and reads the others', home entries boosted), OpenRouter deepseek-v4-flash with reasoning off, account problems hand off to network support. kb.json is a MySQL document. qa/chatbot.test.mjs 195 pass, smoke 198/198
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -7,7 +7,7 @@ import path from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
const PUB = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'public');
|
||||
const SITE = 'https://viraladblitz.com';
|
||||
const V = { css: 6, common: 7, page: 6 };
|
||||
const V = { css: 6, common: 7, page: 6, chat: 1 }; // chat: the site assistant widget (2026-11-15)
|
||||
const F = { co: 'TrustClickz', addr: '615 Green Valley Drive, Moody, AL 35004', updated: 'November 14, 2026', boostUsd: 5, views: '500', days: 30 };
|
||||
const FONTS = 'https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@1,700;1,800&family=Chakra+Petch:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap';
|
||||
// the daylight look's shared SVG bits (same as common.js)
|
||||
@@ -52,7 +52,7 @@ ${o.ld ? '<script type="application/ld+json">' + JSON.stringify(o.ld) + '</scrip
|
||||
<body>
|
||||
`;
|
||||
}
|
||||
const tail = scripts => '<script src="/assets/common.js?v=' + V.common + '"></script>\n' + scripts.map(s => '<script src="/assets/' + s + '?v=' + V.page + '"></script>').join('\n') + '\n</body>\n</html>\n';
|
||||
const tail = scripts => '<script src="/assets/common.js?v=' + V.common + '"></script>\n<script src="/assets/chat.js?v=' + V.chat + '" defer></script>\n' + scripts.map(s => '<script src="/assets/' + s + '?v=' + V.page + '"></script>').join('\n') + '\n</body>\n</html>\n';
|
||||
const page = (file, o, body, scripts) => fs.writeFileSync(path.join(PUB, file), head(o) + body + tail(scripts));
|
||||
|
||||
// ---------------------------------------------------------------- front page
|
||||
|
||||
Reference in New Issue
Block a user