-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathindex.html
executable file
·258 lines (217 loc) · 10.8 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
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="//fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css"/>
<link rel="stylesheet" href="bower_components/chosen/chosen.css" />
<link rel="stylesheet" href="bower_components/seiyria-bootstrap-slider/dist/css/bootstrap-slider.min.css" />
<link rel="stylesheet" href="app/bookworm.gui.css"/>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<!--<script src="bower_components/jquery-ui-multiselect-widget/src/jquery.multiselect.min.js" type="text/javascript"></script>-->
<script src="bower_components/seiyria-bootstrap-slider/dist/bootstrap-slider.min.js" type="text/javascript"></script>
<script src="bower_components/keymaster/keymaster.js" type="text/javascript"></script>
<script src="bower_components/highcharts/highcharts.js" type="text/javascript"></script>
<script src="bower_components/highcharts-export-csv/highcharts-export-csv.js"></script>
<script src="bower_components/highcharts/modules/exporting.js"></script>
<script src="bower_components/lodash/dist/lodash.min.js" type="text/javascript"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.js" type="text/javascript"></script>
<script src="bower_components/chosen/chosen.jquery.js" type="text/javascript"></script>
<script src="https://apis.google.com/js/client.js?onload=googleApiLoaded"></script>
<script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
<script type="text/javascript" src="common/js/twitter_google_links.js"></script>
<script type="text/javascript" src="app/bookworm.gui.js"></script>
<meta charset="UTF-8">
<meta name="description" content="bookworm: Search for trends in hundreds of thousands of texts">
<title>Bookworm</title>
</head>
<body>
<div class="container">
<div class="row">
<div id="header">
<div id="header_brand">
<h1><a href="http://bookworm.culturomics.org" target="_blank">bookworm:</a> <font id="sourceName1"></font></h1>
<p>
<span class="subtitle">Search for trends in hundreds of thousands of <span class="bw-texttype">texts</span> at <span id="sourceURL"></span></span>
</p>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<ul class="nav nav-pills navbar-right" role="tablist">
<li role="presentation" class="dropdown">
<a id="time-drop" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-time" aria-hidden="true"></span> <span class="hidden-xs">Dates </span><span class="caret"></span>
</a>
<ul id="time-drop-menu" class="dropdown-menu" aria-labelledby="time-drop">
<li class="dropdown-header">Date Limits</li>
<li><a href="#"><div id="year-slider"></div></a></li>
<li><a href="#"><p id="time-val" style="width: 210px"></p></a></li>
<li class="dropdown-header">Smoothing</li>
<li><a href="#"><div id="smoothing-slider" width="175px"></div></a></li>
<li><a href="#"><p id="smoothing-val">t</p></a></li>
</ul>
</li>
<li role="presentation" class="dropdown">
<a id="metric-drop" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-stats" aria-hidden="true"></span> <span class="hidden-xs">Metric </span><span class="caret"></span>
</a>
<ul id="metric-drop-menu" class="dropdown-menu counttype" aria-labelledby="metric-drop">
<li class="dropdown-header">Metric</li>
<li data-val="WordsPerMillion" data-label="Words per Million"><a href="#"><span class="glyphicon glyphicon-ok bw-checkmark" aria-hidden="true"></span> Words per Million</a></li>
<li data-val="TextPercent" data-label="% of Texts"><a href="#"><span class="glyphicon glyphicon-ok bw-checkmark" aria-hidden="true"></span> Percent of <span class="bw-texttype">Text</span></a></li>
<li data-val="WordCount" data-label="Number of Words"><a href="#"><span class="glyphicon glyphicon-ok bw-checkmark" aria-hidden="true"></span> Number of Words</a></li>
<li data-val="TextCount" data-label="Number of Texts"><a href="#"><span class="glyphicon glyphicon-ok bw-checkmark" aria-hidden="true"></span> Number of <span class="bw-texttype">Text</span></a></li>
</ul>
</li>
<li role="presentation" class="dropdown">
<a id="case-drop" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
<span class="glyphicon glyphicon-sort" aria-hidden="true"></span> <span class="hidden-xs">Case </span><span class="caret"></span>
</a>
<ul id="case-drop-menu" class="dropdown-menu collationtype" aria-labelledby="case-drop">
<li class="dropdown-header">Case</li>
<li data-val="Case_Sensitive"><a href="#"><span class="glyphicon glyphicon-ok bw-checkmark" aria-hidden="true"></span> Case-Sensitive</a></li>
<li data-val="Case_Insensitive"><a href="#"><span class="glyphicon glyphicon-ok bw-checkmark" aria-hidden="true"></span> Case-Insensitive</a></li>
</ul>
</li>
<li><button class='btn btn-primary search-btn search-bw' rel='tooltip' title='Search the corpus!'>
<span class="glyphicon glyphicon-search" aria-hidden="true"></span> Search
</button></li>
</ul>
</div>
<div class="col-xs-12 col-sm-9 col-md-10" id="search_queries">
</div>
<div class="pull-right" class="minor-controls">
<ul class="nav nav-pills" role="tablist">
<li role="presentation" class="dropdown">
<a id="link-drop" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-label="Link" aria-haspopup="true" aria-expanded="false" title="Link">
<span class="glyphicon glyphicon-link" aria-hidden="true"></span>
</a>
<ul id="link-drop-menu" class="dropdown-menu permalink" aria-labelledby="link-drop">
<li class="dropdown-header">Copy this link</li>
<li class="dropdown-padding" id="permalink"><input type="text"></input></li>
</ul>
</li>
<li role="presentation" class="dropdown">
<a id="info-drop" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" title="Info">
<span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span>
</a>
<ul id="info-drop-menu" class="dropdown-menu" aria-labelledby="info-drop">
<form class='dropdown-padding'>Bookworm was created by Benjamin Schmidt (Department of History, Northeastern), Matt Nicklay, Neva Cherniavsky Durand, Martin Camacho, and
Erez Lieberman Aiden at the <a href="http://www.culturomics.org" target="_blank">Cultural Observatory</a>. It enables you to visually explore lexical trends.
Bookworm is hosted through the generous support of the <a href="http://www.opensciencedatacloud.org/" target="_blank">Open Science Data Cloud</a>.
If you use it in an academic publication, please include a link to <a href="http://bookworm.culturomics.org/" target="_blank">bookworm.culturomics.org</a>.
</form>
</ul>
</li>
<li role="presentation" class="dropdown">
<a id="export-drop" href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" title="Export">
<span class="glyphicon glyphicon-cloud-download" aria-hidden="true"></span>
</a>
<ul id="export-drop-menu" class="dropdown-menu" aria-labelledby="info-drop">
<li><a href="#" class="bw-export-png">Export PNG</a></li>
<li><a href="#" class="bw-export-pdf">Export PDF</a></li>
</ul>
</li>
</ul>
</div>
</div>
<div class="row">
<div id="bw-search_error" class="col-xs-12 alert alert-danger"></div>
</div>
<div class="row" id="main">
<div id="container">
<div id="chart_wrapper">
<div id="chart"></div>
</div>
</div>
<div class="row">
<div id="social">
<table cellspacing="0">
<tr>
<td style="text-align: right;">
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {FB.init({status: true, xfbml: true});};
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
</td>
<td style="text-align: right;float:right;">
<div id="tweet_container"></div>
</td>
<td style="text-align: right;float:right;">
<g:plusone size="small" width="10" annotation="none" href="http://bookworm.culturomics.org"></g:plusone>
<script type="text/javascript">
(function () {
var po = document.createElement('script');
po.type = 'text/javascript';
po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(po, s);
})();
</script>
</td>
</tr>
</table>
</div>
</div>
<div style="display:none">
<div id="booksz">
<div id="pagination"></div>
<br style="clear:both"/><hr />
<div id="bookdivtitle"></div>
<div id="bookdiv">
</div>
</div>
</div>
</div>
<div class="modal fade" id="books" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title books-title">Find in Texts</h4>
</div>
<div class="modal-body">
<nav>
<ul class="pagination">
<li><a href="#">«</a></li>
<li><a href="#">1</a></li>
<li><a href="#">»</a></li>
</ul>
</nav>
<ul class="book-list">
</ul>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<span id="category_box_template" class="box category_box_template">
<div class="btn-group" role="group" aria-label="category_box">
<div class="dropdown">
<span class="box_data">All Metadata</span></a>
<a class="btn btn-default btn-sm" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="toggle1" >
<span class="glyphicon glyphicon-filter" aria-hidden="true"></span> <span class="caret"></span></a>
<ul class="dropdown-menu facet-selection" aria-labelledby="toggle1">
<li style="padding:3px 20px" class="text-right">Restrict search to the following texts</li>
<li role="separator" class="divider"></li>
</ul>
</div>
</div>
</span>
<script type="text/javascript">
$(document).ready(function(){
$("[rel=tooltip]").tooltip({ placement: 'right'});
});
</script>
</div>
</body>
</html>