-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
executable file
·296 lines (256 loc) · 11.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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="http://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<link rel="stylesheet" href="static/css/pagination.css" />
<link rel="stylesheet" href="static/bootstrap/css/bootstrap.css"/>
<link rel="stylesheet" href="static/js/chosen/chosen.css" />
<link rel="stylesheet" href="static/css/jquery-ui-1.8.16.custom.css"/>
<script src="http://code.jquery.com/mobile/1.4.0/jquery.mobile-1.4.0.min.js"></script>
<script src="static/js/jquery.min.js"></script>
<script src="static/js/jquery-ui.min.js"></script>
<script src="static/js/jquery.feedback.js" type="text/javascript"></script>
<script src="static/js/jquery.multiselect.min.js" type="text/javascript"></script>
<script src="static/js/jquery.pagination.js" type="text/javascript"></script>
<script src="static/js/keymaster.min.js" type="text/javascript"></script>
<script src="static/highcharts/js/highcharts.js" type="text/javascript"></script>
<script src="static/highcharts/js/modules/exporting.js"></script>
<script src="static/js/underscore.js" type="text/javascript"></script>
<script src="static/js/urlEncode.js" type="text/javascript"></script>
<script src="static/bootstrap/js/bootstrap.js" type="text/javascript"></script>
<script src="static/js/chosen/chosen.jquery.js" type="text/javascript"></script>
<link rel="stylesheet/less" href="static/css/s.less" />
<script src="static/js/less-1.3.0.min.js" type="text/javascript"></script>
<script type="text/javascript" src="static/js/a.js"></script>
<style type="text/css">
#settings {
position: fixed;
top: 59px;
background-color: #FCFCFC;
padding: 5px;
z-index: 11111;
right: 63px;
box-shadow: 2px 2px 4px #AAA;
}
#about {
position: fixed;
top: 59px;
background-color: #FCFCFC;
padding: 5px;
z-index: 11111;
right: 9px;
box-shadow: 2px 2px 4px #AAA;
}
#permalink {
position: fixed;
background-color: #FCFCFC;
padding: 5px;
z-index: 11111;
box-shadow: 2px 2px 4px #AAA;
}
.search-btn {
margin-left: 5px;
}
tr .category_box_row {
height: 26px;
}
#header_brand {
float: left;
}
#header_right {
float: right;
}
#header {
padding-bottom: 5px;
overflow: auto;
}
#main {
clear: both;
}
.advanced-img, .permalink-img, .about-img {
padding: 5px;
}
.add-td {
vertical-align: middle;
}
#simplemodal-overlay {background-color:#DDD; }
#simplemodal-container {background-color:#FFF; border:2px solid #000; padding:12px;}
#simplemodal-wrap {overflow: scroll;}
</style>
<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="row-fluid">
<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 <text id=itemName></text>s at <span id=sourceURL></span></span>
</p>
</div>
<div id=header_right>
<a href="javascript:void(0)" class=permalink><img border=0 src="static/images/link1.PNG" width=40 class=permalink-img></a>
<a href="#" class=advanced><img border=0 src="static/images/gear.png" width=40 class=advanced-img></a>
<a href="#" class=about><img border=0 class=about-img src="static/images/info.png" width=40></a>
</div>
</div>
</div>
<div id=search_queries>
<table class=top>
<tr class=top>
</tr>
</table>
<div id=search_error>
</div>
</div>
<div id=main>
<div id=container>
<div id=chart_wrapper>
<div id=chart>
</div>
<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;">
<a href="https://twitter.com/share" class="twitter-share-button" data-lang="en" url="http://bookworm.culturomics.org" counturl="http://bookworm.culturomics.org">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</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 id=books style='display:none'>
<!-- The 2 MathJax elements for testing -->
<!--<script id=mjconfig></script>
<script id=mjsource></script> -->
<div class=modal-header>
<a class=close data-discuss=modal>×</a>
<h4 class=books-title>Foo</h3>
</div>
<div class=modal-body>
<div class=pagination>
<ul>
<li><a href='#'>«</a></li>
<li><a href='#'>1</a></li>
<li><a href='#'>»</a></li>
</ul>
</div>
<div class=book-list>
</div>
</div>
</div>
<span id=category_box_template class="box category_box_template"><table><tr class=category_box_row><td class=category_box_data><a href="javascript:void(0)" class=box_data><span class=box_value>All metadata</span></a></td>
<td class=category_box_x><a class=box_x href="javascript:void(0)"><span class=removequery><i class="fa fa-minus fa-1"></i></span></a></td>
<td> <a class=box_plus href="javascript:void(0)" alt="Add"><span class=addquery><i class="fa fa-plus fa-1"></i></span></a></td>
</tr>
</table></span>
</div></div>
<div id=settings style="display: none">
<table>
<tr><td><div id=labeltime></div></td><td><div id=timetype></div></td></tr>
<tr><td><label for=yeartype>Time:</label></td>
<td width=175px><div id=year-slider></div> </td></tr>
<tr><td></td><td width=210px><p id=time-val style="width: 210px"></p></td></tr>
<tr><td>
<!-- So the count type is called 'collation type', and the collation type is called 'count type'? -->
<label for=collationtype>Quantity:</label></td>
<td>
<!--Somewhere along the way, we lost the scripts to allow multiple year selections. That should be returned.-->
<div class="btn-group" data-toggle='buttons-radio' id='collationtype'>
<button class="btn btn-small" data-val='Occurrences_per_Million_Words' data-label='Words per Million'>% of words</button>
<button class="btn btn-small" data-val='Percentage_of_Books' data-label='% of Texts'><div id=countName1></div></button>
<button class="btn btn-small" data-val='Raw_Counts' data-label='Number of Words'>word count</button>
<button class="btn btn-small" data-val='Number_of_Books' data-label='Number of Texts'><div id=countName2></div></button>
</div>
</td>
</tr>
<tr><td>
<label for=counttype>Case:</label></td>
<td width=375px>
<div class="btn-group" data-toggle='buttons-radio' id='colltype'>
<button class="btn btn-mini btn-primary" data-val=Case_Sensitive>Sensitive</button>
<button class="btn btn-mini btn-primary" data-val=Case_Insensitive>Insensitive</button>
</div>
</td>
</tr>
<tr><td><label for=smoothing>Smoothing:</label></td>
<td width=175px style="vertical-align:left">
<table class="smoothing">
<tr>
<td>
<div id=smoothing-slider width=175px></div>
</td><td>
<p id=smoothing-val>t</p>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<label for=yeartype>Graph style(beta):</label>
</td>
<td width=375px>
<div class="btn-group" id='colltype'>
<a href="http://134.174.151.109/MHL_Bookworm/histogram/#%7B%22database%22%3A%22MHL_Bookworm%22%2C%22plotType%22%3A%22barchart%22%2C%22method%22%3A%22return_json%22%2C%22search_limits%22%3A%7B%22library__id%22%3A%7B%22%24lte%22%3A15%7D%7D%2C%22aesthetic%22%3A%7B%22x%22%3A%22TextCount%22%2C%22y%22%3A%22library%22%7D%2C%22counttype%22%3A%5B%22TextCount%22%5D%2C%22groups%22%3A%5B%22library%22%5D%7D"><button class="btn btn-mini btn-primary">Library Counts</button></a>
<a href="http://134.174.151.109/MHL_Bookworm/histogram/#%7B%22database%22%3A%22MHL_Bookworm%22%2C%22plotType%22%3A%22barchart%22%2C%22method%22%3A%22return_json%22%2C%22search_limits%22%3A%7B%22subject__id%22%3A%7B%22%24lte%22%3A50%7D%7D%2C%22aesthetic%22%3A%7B%22x%22%3A%22TextCount%22%2C%22y%22%3A%22subject%22%7D%2C%22counttype%22%3A%5B%22TextCount%22%5D%2C%22groups%22%3A%5B%22subject%22%5D%7D"><button class="btn btn-mini btn-primary">Subject Scope</button></a>
</div>
</td>
</tr>
</table>
</div>
<div id=about style="display: none; width: 250px;">
<!--<p>The <span id=sourceName2></span> bookworm is a creation of the Rice Cultural Observatory which enables you to graphically explore lexical trends across a huge digital library.</p>-->
<p>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>.</p>
<!-- This help file could be dynamically named, or something?-->
</div>
<div id=permalink style="display:none;">
<table>
<tXSr><td>
<label>Link:</label></td><td>
<input type=text></input>
</td></tr>
</table>
</div>
<!--<script type="text/javascript" src="http://bookworm.culturomics.org/x.js"></script>--> </body>
</html>