Skip to content

Commit 9435f87

Browse files
committed
Add simple intro
Signed-off-by: Felipe Contreras <[email protected]>
1 parent 8f0f161 commit 9435f87

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

script.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
const wait = 100;
22

3+
const intro = '# Type math.js expressions here, like 2 + 2, det([1, 2; 3, 4]), 3600 J to Wh, or help("det")';
4+
35
function showDoc(doc) {
46
if (!doc) {
57
help.style.display = 'none';
@@ -50,5 +52,7 @@ editor.onUpdate(code => {
5052
timer = setTimeout(doMath, wait, code);
5153
});
5254

55+
editor.updateCode(intro);
56+
5357
hljs.configure({ ignoreUnescapedHTML: true });
5458
doMath(editor.toString());

0 commit comments

Comments
 (0)