()
| 50 | }, 250); |
| 51 | |
| 52 | function onBreakpointHit() { |
| 53 | evalInPage( |
| 54 | "globalThis._hyperscript.hdb && globalThis._hyperscript.hdb.getRenderedCode()", |
| 55 | function (html) { |
| 56 | if (html != null) { |
| 57 | document.querySelector(".code-container code").innerHTML = html; |
| 58 | if (html) { |
| 59 | _hyperscript.processNode( |
| 60 | document.querySelector(".code-container code"), |
| 61 | ); |
| 62 | } |
| 63 | } |
| 64 | }, |
| 65 | ); |
| 66 | |
| 67 | evalInPage( |
| 68 | "globalThis._hyperscript.hdb && globalThis._hyperscript.hdb.getRenderedConsole()", |
| 69 | function (html) { |
| 70 | const consoleEl = document.querySelector("#console"); |
| 71 | consoleEl.innerHTML = html; |
| 72 | consoleEl.scrollTop = consoleEl.scrollHeight; |
| 73 | }, |
| 74 | ); |
| 75 | } |
| 76 | |
| 77 | function escapeHTML(unsafe) { |
| 78 | return unsafe |
no test coverage detected