-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
58 lines (46 loc) · 1.6 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
<html>
<head>
</head>
<body>
<div id="canvas"></div>
<div class="settings">
<div>edge count: <span id="edgeCountSpan">5</span></div>
<input id="edgeCount" type="range" value="5" min="2" max="10">
<div>node count: <span id="nodeCountSpan">15</span></div>
<input id="nodeCount" type="range" value="15" min="3" max="100">
<div>update interval: <span id="intervalSpan">40</span></div>
<input id="interval" type="range" value="40" min="10" max="500">
<div>toggle node weight/name <input id="toggleNames" type="checkbox"></div>
<div>toggle edge weights <input checked="true" id="toggleEdges" type="checkbox"></div>
<div>toggle labels <input checked="true" id="toggleLabels" type="checkbox"></div>
<button type="button" id="pause">toggle pause</button>
<a href="https://github.com/rob--" target="_blank">rob--</a>
</div>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
}
#canvas {
width: 100%;
height: 100%;
display: block;
}
.settings {
position: absolute;
left: 10;
bottom: 10;
display: flex;
flex-direction: column;
background-color: white;
border: 1px solid #00000033;
padding: 5px;
}
input, button {
padding-bottom: 2px;
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/cytoscape/3.2.9/cytoscape.min.js" type="text/javascript"></script>
<script src="dist/bundle.js" type="text/javascript"></script>
</body>
</html>