-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfoo.html
More file actions
32 lines (27 loc) · 690 Bytes
/
Copy pathfoo.html
File metadata and controls
32 lines (27 loc) · 690 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<meta charset='utf-8' />
<link href='foo_static/style.css' rel='stylesheet' />
<form name='container'>
<input type='button' name='tojs' value='Sen to JS' />
<input type='button' name='tosen' value='JSON to Sen' />
<br />
<section>
<h4>SEN</h4>
<textarea name='sen'>sen</textarea>
</section>
<section>
<h4>JSON</h4>
<textarea name='js'>js</textarea>
</section>
</form>
<script src='sen.js'></script>
<script src='foo_static/editor.js'></script>
<script>
//small sanity checks, to see if I introduced any obvious errors
SEN.parse('a');
SEN.parse('(a)');
SEN.parse('(:a b)');
SEN.parse('"a"');
SEN.stringify(0);
SEN.stringify([0]);
SEN.stringify({a:0});
</script>