-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
30 lines (25 loc) · 901 Bytes
/
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
25
26
27
28
29
30
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head>
<link rel="stylesheet" type="text/css" href="css/default.css">
</head>
<body>
<!-- d3 dependencies for d3-force -->
<script src="node_modules/d3/build/d3.js"></script>
<!-- show what we've loaded -->
<h2 id="fg-title"></h2>
<!-- stick an svg element in here for the factor graph visualizer to use -->
<svg id="fg-svg" width="800" height="600"></svg>
<!-- the factor graph visualizer. it will load a factor graph from disk. -->
<script src="build/factorgraph-viz.js"></script>
<!-- interactivity -->
<form onsubmit="return userSubmits();">
<input id="userInput" type="text" oninput="userTypes()" size="50"
placeholder="Start typing to get autocomplete suggestions below"></input>
<button type="submit">Load</button>
</form>
<p id="suggestionNotice">Completions (live) (clickable):</p>
<p id="suggestions"></p>
</body>
</html>