-
Notifications
You must be signed in to change notification settings - Fork 153
/
react_js.scala.html
163 lines (141 loc) · 8.24 KB
/
react_js.scala.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BirdWatch</title>
<!-- Stylesheets -->
<link rel="stylesheet" media="screen" href="/assets/stylesheets/main.css">
<link rel="stylesheet" media="screen" href="/assets/stylesheets/bootstrap-glyphicons.css">
<link rel="stylesheet" media="screen" href="/assets/stylesheets/bootstrap.min.css">
<link rel="stylesheet" media="screen" href="/assets/stylesheets/rickshaw.min.css">
<link rel="shortcut icon" type="image/png" href="/assets/images/favicon.png">
</head>
<body>
<div>
<!-- Navigation Bar -->
<div class="navbar">
<div class="container">
<span class="navbar-brand">BirdWatch</span>
<!-- Search field in NavBar -->
<div class="navbar-form pull-left col-lg-6 input-group">
<form id="searchForm" class="input-group">
<input type="text" id="searchField" class="form-control"
placeholder="Example search: java (job OR jobs OR hiring)" />
<span class="input-group-btn">
<button class="btn btn-primary" type="button" onclick="BirdWatch.search()">
<span class="glyphicon glyphicon-search"></span>
</button>
</span>
</form>
</div>
<div class="nav-collapse">
<!-- Tweets. Project info -->
<ul class="nav navbar-nav pull-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">About
<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="http://matthiasnehlsen.com"
target="_blank">Project Introduction</a></li>
<li><a href="http://matthiasnehlsen.com" target="_blank">Blog</a></li>
<li><a href="https://github.com/matthiasn/BirdWatch" target="_blank">Project on GitHub</a></li>
<li><a href="#" onclick="BirdWatch.legalStuff()">Legal stuff</a></li>
</ul>
</li>
</ul>
<!-- Settings -->
<ul class="nav navbar-nav pull-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Settings
<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Previous Tweets:</a></li>
<li>
<a>
<select class="form-control" id="prev-size">
<option value="5000">5000</option>
<option value="10000">10000</option>
<option value="20000">20000</option>
<option value="50000">50000</option>
<option value="100000">100000</option>
</select>
</a>
</li>
<li><hr></li>
<li><a href="#">Page Size:</a></li>
<li>
<a>
<select class="form-control" id="page-size">
<option value="5">5</option>
<option value="10" selected>10</option>
<option value="25">25</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
</a>
</li>
<li>
<a>
<select class="form-control" id="offset-size">
<option value="0" selected>0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</a>
</li>
</ul>
</li>
</ul>
<div class="nav navbar-text col-lg-2 pull-right">Tweet count: <span id="tweet-count"></span></div>
</div>
</div>
</div>
<!-- Tweets column with Pagination -->
<div class="container container-fluid">
<div class="row">
<!-- Pagination -->
<div id="pagination"></div>
</div>
<div class="btn-group">
<button type="button" class="btn">Sort by</button>
<button type="button" class="btn btn-primary" data-btn-radio="'latest'"
onclick="BirdWatch.sortBy('latest')">latest</button>
<button type="button" class="btn btn-primary" data-btn-radio="'followers'"
onclick="BirdWatch.sortBy('followers')">followers</button>
<button type="button" class="btn btn-primary" data-btn-radio="'retweets'"
onclick="BirdWatch.sortBy('retweets')">retweets</button>
</div>
<!-- Main page layout -->
<div class="row">
<!-- Tweet Cards inside frame -->
<div class="col-lg-4" id="tweet-frame"></div>
<!-- Charts column -->
<div class="col-lg-8">
<div id="timeseries1" class="timeseries" data-tsdata="cf.timeseries()" data-live="live" data-height="100"></div>
<hr />
<div id="wordCloud" class="cloud" ></div>
<hr />
<h5>word frequency</h5>
<div id="react-bar-chart" class="barchart" ></div>
<hr />
</div>
</div>
</div>
</div>
<!-- Scripts placed at the end of the document so the pages load faster -->
<script src="/assets/javascripts/vendor/jquery-1.10.2.min.js"></script>
<script src="/assets/javascripts/vendor/bootstrap.min.js"></script>
<script src="/assets/javascripts/vendor/d3.v3.min.js"></script>
<script src="/assets/javascripts/vendor/d3.layout.cloud.js"></script>
<script src="/assets/javascripts/vendor/crossfilter.v1.min.js"></script>
<script src="/assets/javascripts/vendor/rickshaw.min.js"></script>
<script src="/assets/javascripts/vendor/moment.min.js"></script>
<script src="/assets/javascripts/vendor/underscore.min.js"></script>
<script src="/assets/react-js/vendor/react.js"></script>
<script src="/assets/react-js/vendor/regression.js"></script>
<script type="text/javascript" src="assets/react-js/birdwatch.js"></script>
</body>
</html>