-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
86 lines (72 loc) · 2.3 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
<!DOCTYPE>
<html>
<head>
<title>Topological Sort</title>
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<script src="http://cytoscape.github.io/cytoscape.js/api/cytoscape.js-latest/cytoscape.min.js"></script>
<!-- for testing with local version of cytoscape.js -->
<!--<script src="../cytoscape.js/build/cytoscape.js"></script>-->
<script src="https://cdn.rawgit.com/cpettitt/dagre/v0.7.4/dist/dagre.min.js"></script>
<script src="https://cdn.rawgit.com/cytoscape/cytoscape.js-dagre/1.5.0/cytoscape-dagre.js"></script>
<style>
body {
font-family: helvetica;
font-size: 14px;
}
#cy {
width: 75%;
height: 90%;
position: absolute;
left: 0;
top: 10%;
z-index: 999;
}
#info {
width: 25%;
height: 75%;
position: absolute;
left:72%;
top: 10%;
padding: 1em;
}
#help {
width: 25%;
height: 25%;
position: absolute;
left:72%;
top: 70%;
padding: 1em;
text-align: right;
}
#help span {
padding: 0.1em;
display: block;
}
h1 {
opacity: 0.5;
font-size: 1em;
}
</style>
<script src="main.js" type="text/javascript"></script>
</head>
<body>
<h1>Topological Sort</h1>
<input type="text" id="sentence" style="width: 100%; height:30px;" onkeypress="return onPressEnter(event)" placeholder='Type the sentence hierachy sentence or type command and press ENTER. For example: "Blimpy is-a Managers" or "Sort Blimpy".'>
<div id="cy"></div>
<div id="info">
<h3 class="title"></h3>
<div class="content"></div>
</div>
<div id="help">
<h3 class="title">Commands</h3>
<div class="content">
<span>{child} is-a {parent}</span>
<span>{child} ako {parent}</span>
<span>Figure {Number}</span>
<span>Sort {child}</span>
<span>clear</span>
</div>
</div>
</body>
</html>