/
index.html
24 lines (24 loc) · 1.01 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Knots</title>
<link rel="stylesheet" type="text/css" href="app/style.css">
</head>
<body>
<h1>Knots</h1>
<button type="button" onclick="openFile();">Open File</button>
<button type="button" onclick="openDirectory();">Open Directory</button>
<p class="help-paragraph">
Choose a single javascript (.js) file to parse with the "Open File" button, or use "Open Directory" to recursively parse a directory containing javascript files. The resulting graph will be displayed below.<br>
You can hover on a node to display more information. Click on a node to highlight all connected nodes.<br>
You can zoom the graph using the mouse wheel.<br>
</p>
<svg id="graph"></svg>
<!-- build:remove -->
<!-- Connect to server process -->
<script>require('electron-connect').client.create()</script>
<!-- end:build -->
<script src="app/index.js" type="text/javascript" charset="utf-8" async></script>
</body>
</html>