()
| 202 | }); |
| 203 | |
| 204 | function setInitialText() { |
| 205 | if ('text' in search) { |
| 206 | $markdownElem.value = search.text; |
| 207 | } else { |
| 208 | return fetch('./initial.md') |
| 209 | .then((res) => res.text()) |
| 210 | .then((text) => { |
| 211 | if ($markdownElem.value === '') { |
| 212 | $markdownElem.value = text; |
| 213 | } |
| 214 | }); |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | function setInitialQuickref() { |
| 219 | return fetch('./quickref.md') |