forked from jaredmcqueen/analytics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.html
230 lines (187 loc) · 5.87 KB
/
app.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<!--css imports-->
<link rel="stylesheet" href="lib/normalize.css"/>
<link rel="stylesheet" href="lib/ion.rangeSlider.css"/>
<link rel="stylesheet" href="lib/ion.rangeSlider.skinFlat.css"/>
<link rel="stylesheet" href="lib/bootstrap.min.css">
<link rel="stylesheet" href="lib/bootstrap-theme.min.css">
<style>
body {
font-family: Monospace;
background-color: black;
margin: 0px;
overflow: hidden;
}
canvas {
width: 100%;
height: 100%;
}
html, body {
height: 100%;
}
a {
color: #0078ff;
}
#csv-file {
position: absolute;
left: 0px;
top: 0px;
z-index: 1;
}
#slider {
position: absolute;
left: 50%;
top: 80%;
width: 800px;
margin-left: -400px;
z-index: 2;
}
#layouts {
position: absolute;
right: 50px;
top: 150px;
/*width: 800px;*/
/*margin-left: -400px;*/
z-index: 1;
}
.overlay {
-webkit-box-align: center;
-webkit-box-pack: center;
-webkit-transition: 0.25s opacity;
background: -webkit-radial-gradient(rgba(127, 127, 127, 0.5),
rgba(127, 127, 127, 0.5) 1%,
rgba(0, 0, 0, 0.7));
bottom: 0;
display: -webkit-box;
left: 0;
/*padding: 20px;*/
/*padding-bottom: 130px;*/
position: fixed;
right: 0;
top: 0;
z-index: 1;
}
.instruction {
position: absolute;
left: 0;
width: 100%;
bottom: 20px;
padding-right: 20px;
padding-left: 20px;
pointer-events: none;
font-size: 16px;
color: #fff;
z-index: 2;
}
.footer {
position: absolute;
text-align: right;
left: 0;
width: 100%;
bottom: 20px;
padding-right: 20px;
padding-left: 20px;
font-size: 16px;
color: #999;
z-index: 2;
}
.footer a {
color: #bbb;
}
html.is-white .footer {
color: #000;
}
html.is-white .footer a {
color: #121212;
}
</style>
<!--vendor includes-->
<script src="lib/jquery.min.js"></script>
<script src="lib/bootstrap.min.js"></script>
<script src="lib/ion.rangeSlider.min.js"></script>
<script src="lib/three.js"></script>
<script src="lib/stats.min.js"></script>
<script src="lib/dat.gui.min.js"></script>
<script src="lib/OrbitControls.js"></script>
<script src="lib/papaparse.min.js"></script>
<script src="lib/moment.js"></script>
<script src="lib/underscore-min.js"></script>
<script src="lib/ShaderLoader.js"></script>
<script src="lib/UbuntuMono.js"></script>
<script src="lib/Wagner.js"></script>
<script src="lib/Wagner.base.js"></script>
<script src="lib/chroma.min.js"></script>
<!--app includes-->
<script src="app/graph.js"></script>
<script src="app/generators.js"></script>
<script src="app/slider.js"></script>
<script src="app/picking.js"></script>
<script src="app/main.js"></script>
<script src="app/textureGenerator.js"></script>
<script src="app/createGeometry.js"></script>
<script src="app/simulator.js"></script>
<script src="app/TextParticles.js"></script>
<script src="app/guiinterface.js"></script>
<script src="examples/sampleData.js"></script>
</head>
<body>
<canvas id="c" class="overlay"></canvas>
<div id="slider" style="display: none;">
<div>
<input type="text" id="range" value="" name="range">
</div>
<br/>
<div id="buttons" style="display: none;">
<button type="button" id="play" class="btn btn-primary">
<span class="glyphicon glyphicon-play" aria-hidden="true"></span>
</button>
<button type="button" id="expand" class="btn btn-primary">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
</button>
<button type="button" id="repeat" class="btn btn-primary">
<span class="glyphicon glyphicon-repeat text-muted" aria-hidden="true"></span>
</button>
</div>
</div>
<div class="instruction">click nodes to see neighbors, double-click to clear</div>
<div class="footer">
<span><a href="http://www.metastack.io" target="_blank">MetaStack</a></span>
<span>|</span>
<span><a href="https://github.com/metastackio/analytics" target="_blank">Github</a></span>
<span>|</span>
<span><a href="https://youtu.be/TM8B2GdWtiQ" target="_blank">Youtube</a></span>
</div>
<script>
$(document).ready(function () {
// var csvfile = "examples/output.csv";
// $.get(csvfile, function (file) {
//
// Papa.parse(file, {
// header: true,
// dynamicTyping: true,
// delimeter: ',',
// quotes: true,
// complete: function (results) {
//// console.log(results);
// for (var i = 0; i < results.data.length; i++) {
// g.addCSVRow(results.data[i]);
// }
//
g.edges = cannedGraph.edges;
g.nodes = cannedGraph.nodes;
g.settings = cannedGraph.settings;
//
// initNodes();
// simulate = true;
// }
// });
//
// });
});
</script>
</body>
</html>