()
| 184 | } |
| 185 | |
| 186 | function initFile(){ |
| 187 | var q = RegExp('[?&]file=([^&]*)').exec(location.href); |
| 188 | var file=q && decodeURIComponent(q[1].replace(/\+/g, ' ')) |
| 189 | if(file){ |
| 190 | console.log('file',file) |
| 191 | fetch('/rawtext?file='+file,{method:'GET'}).then(resp=>{ |
| 192 | return resp.text() |
| 193 | }).then(text=>{ |
| 194 | loadAstJson(text) |
| 195 | }) |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | // ========= Mermaid & FDP =========== |
| 200 | var gMermaidScale=1 |
nothing calls this directly
no test coverage detected