5 <meta charset=
"utf-8"/>
6 <title>erdiag tool
</title>
10 <h2>Graph description
</h2>
11 <button onClick=
"processGraphDesc()">Send
</button>
13 <span>MCD graph type:
</span>
14 <input type=
"radio" name=
"output" value=
"compact" checked
/> compact
15 <input type=
"radio" name=
"output" value=
"bubble"/> bubble
18 <textarea id=
"graphDesc" rows=
"15" style=
"width:100%"></textarea>
19 <div id=
"result" style=
"display:none">
24 <h2>SQL instructions:
</h2>
28 <script src=
"//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
29 <script src=
"parser.js"></script>
31 const result = document.getElementById("result");
32 function processGraphDesc() {
33 const graphDesc = document.getElementById("graphDesc").value;
34 const er = new ErDiags(graphDesc);
36 for (let el of document.getElementsByName("output"))
44 er.drawMcd("mcd", mode);
47 result.style.display = "block";
48 //document.location.href = "#result"; //TODO: not working (auto-scroll)