-
Notifications
You must be signed in to change notification settings - Fork 121
/
index.html
100 lines (83 loc) · 2.07 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Graph Visualization</title>
<style type="text/css">
body {
margin: 0;
padding: 0;
font: 14px monospace;
overflow: hidden;
}
h1 {
font-size: 20px;
}
h2 {
font-size: 16px;
}
a {
text-decoration: none;
color: #4285C2;
}
a:hover {
text-decoration: underline;
}
.sidebar {
position: fixed;
left: 0;
width: 20%;
height: 100%;
background-color: #f0f0f0;
}
.sidebar section {
padding: 10px 20px;
}
#viewer {
position: absolute;
left: 20%;
width: 79%;
height: 100%;
overflow: auto;
border: 0;
}
</style>
</head>
<body onload="loadExample()">
<div id="content">
<aside class="sidebar">
<section>
<h1>Graph Visualization</h1>
</section>
<section id="links">
<div>
<a href="https://github.com/davidpiegza/Graph-Visualization">source code</a>
<div>
<div>
<a href="https://github.com/davidpiegza/Graph-Visualization#contribution">contribution</a>
</div>
</section>
<section id="examples">
<h2>examples</h2>
<div>
<a href="examples/simple_graph/index.html" target="viewer">simple graph</a>
</div>
<div>
<a href="examples/sphere_graph/index.html" target="viewer">sphere graph</a>
</div>
<br />
<div>
<a href="https://github.com/davidpiegza/Graph-Visualization#contribution">add more examples</a>
</div>
</section>
</aside>
<iframe id="viewer" name="viewer" allowfullscreen allowvr onmousewheel=""></iframe>
</div>
<script>
function loadExample() {
var viewer = document.getElementById('viewer');
viewer.src = 'examples/simple_graph/index.html'
}
</script>
</body>
</html>