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");
27 var c = document.getElementById("mainCanvas");
28 mgmain = new MGCanvas(c);
29 mgmain.loadGraphFromMemoryDB(memdb);
34 <h1>Mind Graph Canvas</h1>
35 <canvas id="mainCanvas" width="1024" height="768" style="border:1px solid #000000;"></canvas>
37 <button onclick="mgmain.bringToCenter();">Center</button>
38 <button onclick="mgmain.isPaused = !mgmain.isPaused;">Freeze</button>
39 <button onclick="mgmain.zoomIn();">+</button>
40 <button onclick="mgmain.zoomOut();">-</button>
41 <button onclick="mgmain.moveViewRelative(0, -10);">↑</button>
42 <button onclick="mgmain.moveViewRelative(0, 10);">↓</button>
43 <button onclick="mgmain.moveViewRelative(-10, 0);">←</button>
44 <button onclick="mgmain.moveViewRelative(10, 0);">→</button>
46 identifier:<input id="identBox" type="text"></input>
48 <button onclick="mgmain.setIdentifierForSelectedNode(getElementById('identBox').value);">setNodeIdent</button>
49 <button onclick="memdb.addNode(getElementById('identBox').value);">addNode</button>