-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
211 lines (189 loc) · 6.8 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<title>Twitter GeoTrends Analytics - Home</title>
<link rel="stylesheet" type="text/css" href="/assets/css/semantic.min.css">
<script src="/assets/jquery-2.2.0.min.js"></script>
<script src="/assets/css/semantic.min.js"></script>
<script src="/assets/main.js"></script>
<style type="text/css">
.ui.vertical.stripe {
padding: 8em 0em;
}
.ui.vertical.stripe h3 {
font-size: 2em;
}
.ui.vertical.stripe .button + h3,
.ui.vertical.stripe p + h3 {
margin-top: 3em;
}
.ui.vertical.stripe .floated.image {
clear: both;
}
.ui.vertical.stripe p {
font-size: 1.33em;
}
.ui.vertical.stripe .horizontal.divider {
margin: 3em 0em;
}
#map {
width: 100%;
height: 100%;
background: red;
}
.menu a.header {
padding: 0 !important;
}
.header img.logo {
width: 5.7em !important;
}
.ui.menu:not(.vertical) .item>.button {
padding-bottom: .51428571em !important;
padding-top: .51428571em !important;
}
body .ui.form .error.message {
display: block !important;
}
</style>
</head>
<body>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAquu9CH7H7PLjIF3lcjFCU2VwmyvmgNfk&signed_in=true&libraries=visualization&callback=initMap">
</script>
<div class="ui large menu fixed">
<a href="/" class="header item">
<img class="logo" src="/assets/logo.png">
</a>
<div class="item">
<div class="ui labeled icon top right pointing dropdown button" id="filter-trends-menu">
<i class="map icon"></i>
<span class="text">Select Trend</span>
<div class="menu">
<div class="ui search icon input">
<i class="search icon"></i>
<input type="text" name="search" placeholder="Search trends...">
</div>
<div class="divider"></div>
<div class="header">
<i class="tags icon"></i>
Filter by trend
</div>
</div>
</div>
</div>
<div class="item">
<div class="ui primary button" id="add-keyword">Add Trend</div>
</div>
<div class="item">
Attitude: <span id="stats-likes"></span><i class="thumbs outline up icon"></i>
<span id="stats-dislikes"></span><i class="thumbs outline down icon"></i>
</div>
<a class="item" href="/reports.php">
<i class="icon pie chart"></i> Reports
</a>
<div class="right menu">
<a class="item help-link" href="#">
<i class="icon help"></i> Help
</a>
<a class="item about-app-link" href="#">
<i class="icon idea"></i> About
</a>
</div>
</div>
<div id="map"></div>
<div class="ui active dimmer" id="loading-screen">
<div class="ui large text loader">Loading</div>
</div>
<div class="ui modal about-app">
<i class="close icon"></i>
<div class="header">
Twitter GeoTrends Analytics - About
</div>
<div class="image content">
<div class="ui medium image">
<img src="/assets/big-logo.png">
</div>
<div class="description">
<div class="ui">
<p>This tool is aimed to allow deeper analysis of global trends on different topics and just to allow curious users to discover something interesting.</p>
<p>What is under the hood?</p>
<ul>
<li>Twitter Stream daemon</li>
<li>Tweets parser on cron</li>
<li>MySQL database collecting mentions, locations and attitudes data</li>
<li><a href="http://thematicmapping.org/downloads/world_borders.php" target="_blank">World Boundaries database</a> for reverse geolocations</li>
</ul>
<p>Who are the developers?</p>
<ul>
<li><a href="https://www.linkedin.com/in/denisilyasov" target="_blank">Denis Ilyasov</a> - server configuration and testing</li>
<li><a href="https://ua.linkedin.com/in/vadimilyasov" target="_blank">Vadim Ilyasov</a> - idea and development</li>
</ul>
</div>
</div>
</div>
<div class="actions">
<div class="ui positive right labeled icon button">
That's cool!
<i class="checkmark icon"></i>
</div>
</div>
</div>
<div class="ui modal add-trend">
<i class="close icon"></i>
<div class="header">
Add Trend
</div>
<div class="content">
<form class="ui form">
<div class="field">
<label>Keyword</label>
<input type="text" id="form-keyword" placeholder="Keyword">
</div>
</form>
</div>
<div class="actions">
<div class="ui black deny button">
Cancel
</div>
<div class="ui positive right labeled icon button">
Add
<i class="checkmark icon"></i>
</div>
</div>
</div>
<div class="ui modal help">
<i class="close icon"></i>
<div class="header">
Twitter GeoTrends Analytics - Help
</div>
<div class="image content">
<div class="ui medium image">
<img src="/assets/big-logo.png">
</div>
<div class="description">
<div class="ui">
<p>Application consists of two pages:</p>
<ul>
<li><a href="/">Map</a> page displays heatmap for select trend (keyword)</li>
<li><a href="/reports.php">Reports</a> page allows users to see detailed report for selected trends, compare them, etc.</li>
</ul>
<p>On the map page, you can select Trend by clicking drop-down filter on the left side of the header. You can also add new trend by clicking "Add new" button. Please note, it takes a time to collect information for your trend, you should allow at least 30-60 minutes to see some results for most keywords.</p>
<p>You can also see a trend attitude. We analyze tweets to see if they are positive or negative and collect that information also.</p>
<p>On reports page, you can see a detailed table with the list of mentions for each trend, top 3 Countries, the number of positive and negative tweets accordingly.</p>
<p>In addition, there is a nice trendline chart that displays popularity of each trend and allows you to compare them. With bigger timeline it could be useful to see the impact of advertisement campaigns for brands or new products.</p>
</div>
</div>
</div>
<div class="actions">
<div class="ui positive right labeled icon button">
Got it!
<i class="checkmark icon"></i>
</div>
</div>
</div>
</body>
</html>