From 8c199ac34bd80aeb241412a967d4202cacf5a69b Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Wed, 13 Mar 2024 21:17:32 +0000 Subject: Make content on single page (needs CSS and new name) --- static/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'static/index.js') diff --git a/static/index.js b/static/index.js index 022082d..c09faea 100644 --- a/static/index.js +++ b/static/index.js @@ -1,5 +1,8 @@ import CodeFlask from "https://cdn.jsdelivr.net/npm/codeflask@1.4.1/+esm"; +console.log(CodeFlask); +globalThis.CodeFlask = CodeFlask; + const output = document.querySelector("#output"); const initialCode = document.querySelector("#code").innerHTML; @@ -52,7 +55,7 @@ function appendOutput(content, className) { const editor = new CodeFlask("#editor-target", { language: "gleam", - defaultTheme: false + defaultTheme: false, }); editor.addLanguage("gleam", prismGrammar); editor.updateCode(initialCode); -- cgit v1.2.3