(id, chapter)
| 234 | } |
| 235 | |
| 236 | function findExercise(id, chapter) { |
| 237 | let parts = id.split(".") |
| 238 | if (!chapter) chapter = getChapter(parts[0]) |
| 239 | for (let i = 0; i < chapter.exercises.length; i++) |
| 240 | if (chapter.exercises[i].number == parts[1]) |
| 241 | return chapter.exercises[i] |
| 242 | } |
| 243 | |
| 244 | if (window.page && window.page.type == "code") |
| 245 | window.codeSandbox = new CodeSandbox |
no test coverage detected