-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
51 lines (38 loc) · 1.42 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
<!DOCTYPE html>
<html>
<head>
<title>Draw Graph</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.6/sandstone/bootstrap.min.css" rel="stylesheet" integrity="sha256-oqtj+Pkh1c3dgdH6V9qoS7qwhOy2UZfyVK0qGLa9dCc= sha512-izanB/WZ07hzSPmLkdq82m5xS7EH/qDMgl5aWR37EII+rJOi5c6ouJ3PYnrw6K+DWQcnMZ+nO1NqDr6SBKLBDg==" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vis/4.14.0/vis.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/vis/4.14.0/vis.min.css" rel="stylesheet" type="text/css" />
<style type="text/css">
#data {
height: 300px;
}
#graph {
height: 400px;
border: 2px solid lightgray;
}
</style>
<script src="draw-graph.js"></script>
</head>
<body>
<div class="container">
<div class="page-header">
<h1 class="col-lg-offset-3">Draw Graph</h1>
</div>
<div class="col-lg-4">
<textarea class="form-control" id="data"></textarea><br>
<input type="checkbox" id="ignore">Ignore the first line</input>
<input type="checkbox" id="directed">Directed Graph</input><br><br>
<button class="btn btn-primary" onclick="submit();">Submit</button>
(Ctrl / Cmd + Enter)
</div>
<div class="col-lg-6 well well-lg">
<div id="graph">Your graph will be shown here.</div>
</div>
</div>
</body>
</html>