-
Notifications
You must be signed in to change notification settings - Fork 153
/
index.scala.html
179 lines (149 loc) · 8.86 KB
/
index.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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
@(hostname: String, domain: String, id: String)
<!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 ng-app="birdwatch">
<div ng-controller="BirdWatchCtrl">
<!-- 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 ng-submit="search()" class="input-group">
<input type="text" class="form-control" ng-model="searchText"
placeholder="Example search: java (job OR jobs OR hiring)">
<span class="input-group-btn">
<button class="btn btn-primary" type="button" ng-click="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" target="_blank">Project on GitHub</a></li>
<li><a href="#" ng-click="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" ng-model="prevSize"
ng-options="p for p in prevSizeOpts"></select>
</a>
</li>
<li><hr></li>
<li><a href="#">Page Size:</a></li>
<li>
<a>
<select class="form-control" ng-model="pageSize"
ng-options="p for p in pageSizeOpts"></select>
</a>
</li>
</ul>
</li>
</ul>
<div class="navbar-text col-lg-2 pull-right">Tweet count: <a>
<span tooltip-placement="bottom" tooltip="Tweets currently loaded"
ng-bind="cf.noItems()"></span></a>
</div>
</div>
</div>
</div>
<!-- Tweets column with Pagination -->
<div class="container container-fluid">
<div class="row">
<!-- Pagination -->
<pagination rotate="false" num-pages="cf.numPages(pageSize)" current-page="currentPage" max-size="12"
boundary-links="true"></pagination>
<span class="toggleLive" ng-class="live ? 'toggleActive' : ''" ng-click="toggleLive()">Live</span>
</div>
<div class="btn-group">
<button type="button" class="btn">Sort by</button>
<button type="button" class="btn btn-primary" ng-model="sortModel"
data-btn-radio="'latest'">latest</button>
<button type="button" class="btn btn-primary" ng-model="sortModel"
data-btn-radio="'followers'">followers</button>
<button type="button" class="btn btn-primary" ng-model="sortModel"
data-btn-radio="'retweets'">retweets</button>
</div>
<!-- Main page layout -->
<div class="row">
<!-- Tweet Cards inside frame -->
<div class="col-lg-4" id="tweet-frame">
<div class="tweetCard" data-ng-repeat="tweet in cf.tweetPage(currentPage, pageSize, sortModel)"
data-tweet="tweet"></div>
</div>
<!-- Charts column -->
<div class="col-lg-8">
<h6>Activity by Time Unit (mouse over for details)</h6>
<div id="timeseries1" class="timeseries" data-tsdata="cf.timeseries()" data-live="live" data-height="100"></div>
<hr />
<h6>Word Frequency</h6>
<div id="wordCloud" class="cloud" data-words="words" data-live="live" data-interval="20000"
data-callback="addSearchString"></div>
<hr />
<div id="wordBars" class="barchart" data-words="words" data-live="live"
data-callback="addSearchString"></div>
</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/angular.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/moment.min.js"></script>
<script src="/assets/javascripts/vendor/crossfilter.v1.min.js"></script>
<script src="/assets/javascripts/vendor/underscore.min.js"></script>
<script src="/assets/javascripts/vendor/rickshaw.min.js"></script>
<script src="/assets/javascripts/ui-bootstrap-custom.js"></script>
<script src="/assets/javascripts/app.js"></script>
<script src="/assets/javascripts/services/utils.js"></script>
<script src="/assets/javascripts/services/wordcount.js"></script>
<script src="/assets/javascripts/services/crossfilter.js"></script>
<script src="/assets/javascripts/services/tweets.js"></script>
<script src="/assets/javascripts/barchart.js"></script>
<script src="/assets/javascripts/wordcloud.js"></script>
<script src="/assets/javascripts/directives.js"></script>
<script src="/assets/javascripts/filters.js"></script>
<script src="/assets/javascripts/controllers.js"></script>
<!-- Analytics, Todo: replace or remove in your own project. -->
<script>
if (location.hostname === '@hostname'){
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '@id', '@domain');
ga('send', 'pageview');
}
</script>
</body>
</html>