-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
66 lines (65 loc) · 2.44 KB
/
index.php
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
<html>
<head>
<title>Sentimentweet</title>
<link href="styles/style.css" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r69/three.js"></script>
<script src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script src="http://google-maps-utility-library-v3.googlecode.com/svn/trunk/canvaslayer/src/CanvasLayer.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.9/d3.min.js"></script>
<script src="./lib/colorbrewer.js" charset="utf-8"></script>
<script src="./lib/jquery.linkify-1.0-min.js"></script>
<script src="./lib/detector.js"></script>
<script src="./lib/dat.gui.js"></script>
<script src="./lib/threejs-layer.js"></script>
<script src="./lib/app.js"></script>
<script src="./lib/fuse.min.js"></script>
<script id="vertexshader" type="x-shader/x-vertex">
attribute vec3 a_color;
attribute float a_alpha;
varying vec3 v_color;
varying float v_alpha;
void main()
{
v_color = a_color;
v_alpha = a_alpha;
gl_PointSize = 10.0;
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
}
</script>
<script id="fragmentshader" type="x-shader/x-fragment">
varying vec3 v_color;
varying float v_alpha;
uniform sampler2D texture;
void main()
{
float centerDist = length(gl_PointCoord - 0.5);
float radius = 0.5;
gl_FragColor = vec4(v_color.r, v_color.g, v_color.b, v_alpha * step(centerDist, radius));
}
</script>
</head>
<body>
<div id="map"></div>
<div id="notice">
<div class="loading">
<i class="fa fa-cog fa-spin"></i>
Loading...
</div>
</div>
<div id="search">
<input type="text" class="sent_input" placeholder="Enter a term..." oninput="fuseSearch(this.value);">
<ul class="sent_ul"></ul>
<ul class="selected-terms">
</ul>
</div>
<div id="term_frequency_wrapper">
<table id="term_frequency">
<thead></thead>
<tbody></tbody>
</table>
<div id="colorblind-btn"><i class="fa fa-circle-o"></i>Colorblind safe</div>
</div>
</body>
</html>