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
{{ message }}
Repository navigation
Commit f0bc657
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ The site of the [missing-elements](https://github.com/missing-elements) web comp
9
9
|`/`| The project list, the tools (the build page first, with its how-to), and a footer of links |[src/index.njk](src/index.njk); the lists are in [src/_data/site.js](src/_data/site.js)|
10
10
|`/pdfjs-viewer/`| The docs of `<pdfjs-viewer-element>`, with a live preview |[src/pdfjs-viewer/](src/pdfjs-viewer/)|
11
11
|`/h5p/build/`| The build page, for people: what it makes, a sample that plays, and the build of a chat's source into a `.h5p`, in the visitor's browser |[src/h5p/build/](src/h5p/build/)|
12
-
|`/h5p/play/`| The play page: the activity in a link's `#source=`, built in the visitor's browser as the build page builds it, and played with nothing beside it but its download and a link to the build page, for a chat app to show in its reply (h5p-toolkit#210); no page links to it |[src/h5p/play/](src/h5p/play/)|
12
+
|`/h5p/play/`| The play page: the activity in a link's `#source=`, built in the visitor's browser as the build page builds it, with any file of their own it names chosen there, and played with nothing beside it but its download and a link to the build page, for a chat app to show in its reply (h5p-toolkit#210); no page links to it |[src/h5p/play/](src/h5p/play/)|
13
13
|`/h5p/create-with-ai/`| The how-to, for people: installing the skill, asking a chat, the prompts to start from, the types, and what to do when something goes wrong |[src/h5p/create-with-ai/](src/h5p/create-with-ai/)|
14
14
|`/h5p/skill/`| The skill as zips to install: `h5p-author.zip`, installed once in a chat's place for skills, or attached to the message in each new chat where it has none, and `h5p-author-chatgpt.zip`, the same skill laid out as a plugin; and a page that lists them and the bundles' addresses, each in full, which no page links to |[src/h5p/skill/](src/h5p/skill/); the zips written by [vite.config.ts](vite.config.ts)|
15
15
|`/h5p/bundles/`| The skill's build tool and a library bundle per content type, for a chat that runs Node but cannot reach npm; and `h5p-author-build.tar.gz`, the tool and every library in one archive, for a person to attach to a chat whose code can download nothing | written by [vite.config.ts](vite.config.ts)|
returnsay(`The activity has ${problems.length} problem${problems.length===1 ? '' : 's'}: open it in the build page to see and fix ${problems.length===1 ? 'it' : 'them'}.`,'error')
62
137
}
138
+
// A pack that could not open is opened again at the next build.
139
+
opened=null
63
140
say(`It could not be built: ${errorinstanceofError ? error.message : error}`,'error')
64
141
}
65
142
}
66
143
144
+
asyncfunctionstart(): Promise<void>{
145
+
lettext: string|null
146
+
try{
147
+
text=awaitsourceFromFragment(location.hash)
148
+
}catch{
149
+
returnsay('The link is damaged: its activity cannot be read. Ask the chat for it again.','error')
150
+
}
151
+
if(text===null)returnsay('The link carries no activity. This page plays the one an AI chat put in its link.','error')
152
+
constparsed=parseSource(text)
153
+
if('problem'inparsed)returnsay('The activity in the link cannot be read. Open it in the build page to see why.','error')
0 commit comments