-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
100 lines (99 loc) · 4.34 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">
<link rel="shortcut icon" href="static/favicon.ico" type="image/x-icon">
<title>Twittermap</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" integrity="sha384-PsH8R72JQ3SOdhVi3uxftmaW6Vc51MKb0q5P2rRUpPvrszuE4W1povHYgTpBfshb" crossorigin="anonymous">
<link href="static/css/css.css" rel="stylesheet" type="text/css">
<style>
</style>
</head>
<body>
<button id="collapse-button" class="btn btn-light" onclick="extendMap()" data-toggle="collapse" data-target="#floating-panel" aria-expanded="false" aria-controls="floating-panel">
Hide controls
</button>
<div id="map"></div>
<div id="floating-panel" class="collapse show">
<div class="panel-box">
Search for a location:
<div class="input-group">
<input id="search" type="text" class="form-control">
</div>
<br>
Map Center:
<div>
 Latitude : <span id="lat"/>
</div>
<div>
 Longitude: <span id="lng"/>
</div>
<div>
Handles on map: <span id="points"/>
</div>
</div>
<div id="options" class="panel-box">
<div>
Filter by:
<select class="custom-select" onChange="filterBy(this.value)">
<option value="Person">People</option>
<option value="Artist"> Artists</option>
<option value="Athlete"> Athletes</option>
<option value="Comedian"> Comedians</option>
<option value="Musician"> Musicians</option>
<option value="Politician"> Politicians</option>
<option value="Scientist"> Scientists</option>
<option value="Company">Companies</option>
<option value="AutomotiveCompany"> Automotive</option>
<option value="financial"> Financial</option>
<option value="InternetCompany"> Internet</option>
<option value="retail"> Retail</option>
<option value="BigCompany"> Big (> 1000 employees)</option>
<option value="SmallCompany"> Small (<= 1000 employees)</option>
<option value="None" selected="selected">None</option>
</select>
</div>
<div>
Weight by:
<select class="custom-select" onChange="weightBy(this.value)">
<option value="followers">Followers</option>
<option value="retweets">Retweets</option>
<option value="influence" selected="selected">Influence</option>
</select>
</div>
<br>
<div>
<button class="btn btn-light" onclick="changeGradient()">grad</button>
<button class="btn btn-light" onclick="changeRadius()">radius</button>
<button class="btn btn-light" onclick="changeOpacity()">opacity</button>
<button class="btn btn-light" onclick="debugger;">debug</button>
</div>
</div>
<div id="data-display" class="panel-box">
<ul class="list-group">
<li class="list-group-item"><span id="one"/></li>
<li class="list-group-item"><span id="two"/></li>
<li class="list-group-item"><span id="three"/></li>
<li class="list-group-item"><span id="four"/></li>
<li class="list-group-item"><span id="five"/></li>
</ul>
</div>
<div id="info" class="panel-box">
Twittermap<br><br>
Caelean Barnes<br>&<br>
Evan Doyle<br><br>
<span style="font-size:14px;">Dynamically view the influence of twitter users based on location</span>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
<script src="static/js/jquery-1.11.0.min.js"></script>
<script src="static/js/data.js"></script>
<script src="static/js/style.js"></script>
<script src="static/js/maps.js"></script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBM8_cEr-cbYvTdCvbZT98iHQyHuzohK3g&libraries=visualization&callback=initMap">
</script>
</body>
</html>