From 627e2f50d8baa18e5e3e4db09f6fe7132547fab2 Mon Sep 17 00:00:00 2001 From: Nicholas Jitkoff Date: Sat, 9 Jul 2022 08:33:14 -0700 Subject: [PATCH] Add bitsy renderer --- docs/index.js | 5 + docs/render/bitsy.html | 11776 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 11781 insertions(+) create mode 100644 docs/render/bitsy.html diff --git a/docs/index.js b/docs/index.js index 434c185..b93ac22 100644 --- a/docs/index.js +++ b/docs/index.js @@ -67,6 +67,7 @@ "application/ld+json": {script:"recipe"}, "text/canvas+javascript": {script:"canvas"}, "text/javascript": {script:"script"}, + "application/bitsy": {script:"/render/bitsy.html", sandbox:"bitsy"}, "c": {script:"color"}, "text/rawhtml": {script:"parse"}, "javascript": {script:"bookmarklet"}, @@ -369,6 +370,10 @@ let src = window.scriptDomain ?? location.origin; src += "/render"; + + if (params.script.endsWith(".html")) { + src = params.script; + } let sandbox = params.renderer?.sandbox; if (sandbox == "hash") { // Generate sandbox based off of body hash let hash = await bitty.hashString(params.body); diff --git a/docs/render/bitsy.html b/docs/render/bitsy.html new file mode 100644 index 0000000..57b6896 --- /dev/null +++ b/docs/render/bitsy.html @@ -0,0 +1,11776 @@ + + + + + + + + +Bitsy in a URL + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file