Back
Version 64
6/14/2023
export const ocaps_ink = async (req, res) => {
try {
const [ink_js_src, story_ink] = await Promise.all([
stevekrouse.fetchText(
// "https://raw.githubusercontent.com/y-lohse/inkjs/master/templates/browser_serverless/ink.js",
"https://unpkg.com/inkjs@2.2.1/dist/ink-full.js",
),
stevekrouse.fetchText(
"https://gist.githubusercontent.com/zarutian/ec15de4eb4780ae6e6c8f7ad1d2d49f6/raw/ocaps.ink",
),
]);
/* const story_ink = await @stevekrouse.fetchText(
"https://gist.githubusercontent.com/zarutian/ec15de4eb4780ae6e6c8f7ad1d2d49f6/raw/ocaps.ink",
);
*/
const page = "".concat(
'<html lang="en">\n',
"<head>\n",
'<meta charset="utf-8"/>\n',
"<title>Ocaps interactive explainer</title>\n",
'<meta name="viewport" content="width=device-width, initial-scale=1.0">\n',
"</head>",
"<body>",
"<noscript>",
"This page require javascript for doing its thing.",
"</noscript>",
'<a href="#" id="restart">= Restart =</a><br/>\n',
'<div id="story" class="container">',
"<h1>Ocaps interactive explainer</h1>",
"</div>",
'<div id="errorMsg">\n',
"Error message here!",
"</div>\n",
// "<!--\n",
"<style>\n",
"body {\n",
zarutian-ocaps_ink.web.val.run
Updated: June 2, 2024