-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
104 lines (104 loc) · 4.37 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Properties of a Graph</title>
<link href='https://fonts.googleapis.com/css?family=Lato:400,700' rel='stylesheet' type='text/css'>
<link href="js/libs/twitter-bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="js/libs/twitter-bootstrap/css/bootstrap-theme.min.css" rel="stylesheet" type="text/css"/>
<link href="css/main.css" rel="stylesheet" type="text/css"/>
<script src="js/libs/jquery/jquery.min.js" type="text/javascript"></script>
<script src="js/libs/jquery-scrollTo/jquery.scrollTo.js" type="text/javascript"></script>
<script src="js/libs/jquery-color/jquery.color.js" type="text/javascript"></script>
<script src="js/libs/twitter-bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="js/libs/underscore.js/underscore.js" type="text/javascript"></script>
<script src="js/libs/d3/d3.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
type="text/javascript"></script>
<script src="js/Matrix.js" type="text/javascript"></script>
<script src="js/graphs.js" type="text/javascript"></script>
</head>
<body>
<div class="container">
<h1>Graph Explorer</h1>
<h4>by <a href="http://sonaxaton.net/">Daniel Beckwith</a></h4>
<hr>
<!--<form class="form-inline">
<div class="form-group">
<input type="file" id="file-load-input" class="form-control" accept="application/json">
</div>
<button type="submit" class="btn btn-default">Load</button>
</form>-->
<div class="row">
<div class="col-md-8">
<svg id="canvas" xmlns="http://www.w3.org/2000/svg"></svg>
</div>
<div class="col-md-4">
<div class="checkbox">
<label>
<input id="auto-calc-props-checkbox" type="checkbox" value="" checked> Calculate properties
automatically
</label>
</div>
<div id="graph-prop-table-container">
<table id="graph-prop-table" class="table table-hover">
<thead>
<tr>
<th>Graph Property</th>
<th>Symbol</th>
<th>Value</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<table id="common-graphs-table" class="table table-hover">
<thead>
<tr>
<th>Graph Name</th>
<th>Symbol</th>
<th>Vertices</th>
<th>Edges</th>
<th>Inputs</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<hr>
<div id="help">
<h3>Help</h3>
<ul>
<li>Click the display area to create a vertex.</li>
<li>Drag vertices around to rearrange them.</li>
<li>Click a vertex to select it and it will turn green.
<ul>
<li>Click another vertex to connect the two with an edge.</li>
<li>Click on a blank area to deselect the vertex.</li>
<li>Click another already connected vertex to remove the edge between them.</li>
<li>Hold <kbd>SHIFT</kbd> while connecting vertices to keep selecting the vertex you click on.</li>
</ul>
</li>
<li><kbd>CTRL</kbd>+click a vertex to delete it and any edges connected to it.</li>
</ul>
</div>
<hr>
Made with
<a href="https://getbootstrap.com/" target="_blank">Bootstrap</a>,
<a href="https://d3js.org/" target="_blank">D3</a>,
<a href="https://jquery.com/" target="_blank">jQuery</a>,
<a href="http://underscorejs.org/" target="_blank">Underscore</a>, and
<a href="http://www.typescriptlang.org/" target="_blank">TypeScript</a>.
<footer class="footer">
© <a href="mailto:[email protected]">Daniel Beckwith</a> 2015
</footer>
</div>
</body>
</html>