4 <meta http-equiv="X-UA-Compatible" content="IE=9">
6 <title>Mind Graph Canvas</title>
7 <style type="text/css">
12 font-family: Consolas, 'Courier New', Courier, Monaco, monospace;
17 <script type="text/javascript" src="./header.js" charset="UTF-8"></script>
18 <script type="text/javascript">
24 memdb = new MemoryDB("./../memdb/memdb.php");
25 mgmain = new MGCanvas(document.getElementById("mainCanvas"));
26 mgmain.setSourceMemoryDB(memdb);
31 <h1>Mind Graph Canvas</h1>
32 <canvas id="mainCanvas" width="1024" height="768" style="border:1px solid #000000;"></canvas>
34 <button onclick="mgmain.bringToCenter();">Center</button>
35 <button onclick="mgmain.isPaused = !mgmain.isPaused;">Freeze</button>
36 <button onclick="mgmain.zoomIn();">+</button>
37 <button onclick="mgmain.zoomOut();">-</button>
38 <button onclick="mgmain.moveViewRelative(0, -10);">↑</button>
39 <button onclick="mgmain.moveViewRelative(0, 10);">↓</button>
40 <button onclick="mgmain.moveViewRelative(-10, 0);">←</button>
41 <button onclick="mgmain.moveViewRelative(10, 0);">→</button>
43 identifier:<input id="identBox" type="text"></input>
45 <button onclick="mgmain.setIdentifierForSelectedNode(getElementById('identBox').value);">setNodeIdent</button>
46 <button onclick="memdb.updateNode(getElementById('identBox').value);">addNode</button>