You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-6Lines changed: 19 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,32 @@
1
1
# htmlifier
2
2
3
-
The HTMLifier "converts" Scratch 3.0 projects to an HTML file by putting all the project data and the entire Scratch engine into one enormous file.
4
-
It does this by making Scratch VM fetch a project, and in doing so, it tracks the assets it fetches from the project.json. It converts the fetched assets and project.json into a base64 data URI. It also fetches the code for the Scratch VM. It inserts all this in a template HTML file, which has been set up to load the project from the base64 data URIs and do other things that the Scratch VM doesn't take of, which is normally handled by [scratch-gui](https://github.com/LLK/scratch-gui/), such as variable/list monitors and ask and wait prompts.
3
+
The HTMLifier "converts" Scratch 3.0 projects to an HTML file by putting all the
4
+
project data and the entire Scratch engine into one enormous file.
5
5
6
-
[hacky-file-getter.js](./hacky-file-getter.js) is based on [Scratch VM's benchmark page](https://github.com/LLK/scratch-vm/blob/develop/src/playground/benchmark.js).
6
+
It does this by making Scratch VM fetch a project, and in doing so, it tracks
7
+
the assets it fetches from the project.json. It converts the fetched assets and
8
+
project.json into a base64 data URI. It also fetches the code for the Scratch
9
+
VM. It inserts all this in a template HTML file, which has been set up to load
10
+
the project from the base64 data URIs and do other things that the Scratch VM
11
+
doesn't take of, which is normally handled by
12
+
[scratch-gui](https://github.com/LLK/scratch-gui/), such as variable/list
0 commit comments