Fix typos, debugging
[erdiag.git] / example.html
CommitLineData
20bccb53
BA
1<div id="mcd"></div>
2<div id="mld"></div>
525c4d2a 3
48a55161 4<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
525c4d2a
BA
5<script src="parser.js"></script>
6<script>
7 let er =
8 new ErDiags(`
9 [Musician]
10 #id (integer)
11 name
12 band
13 role (varchar not null)
14
15 [Instrument]
16 #name
17 family (varchar not null default "Brass")
18
19 [Piano]
20 type
21
22 [Guitar]
23 type
24
25 {Play}
26 Musician +
27 Instrument *
28 --
29 event
30
31 is_a
32 Instrument Piano Guitar
33 `);
20bccb53
BA
34 er.drawMcd("mcd"); //,"bubble"
35 er.drawMld("mld");
525c4d2a 36</script>