-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
295 lines (243 loc) · 9.69 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
<!DOCTYPE html>
<html>
<head>
<title>Patents Visualizer</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0px; padding: 0px }
#map-canvas {
width: 100%;
height: 500px;
}
.btn-file {
position: relative;
overflow: hidden;
}
.btn-file input[type=file] {
position: absolute;
top: 0;
right: 0;
min-width: 100%;
min-height: 100%;
font-size: 999px;
text-align: right;
filter: alpha(opacity=0);
opacity: 0;
background: red;
cursor: inherit;
display: block;
}
#year { font-size: 32px; font-weight: bolder; font-family: "Open Sans", helvetica; vertical-align: bottom;}
/* Media height for map */
@media (min-height: 900px) {
#map-canvas {
height: 600px;
}
}
@media (min-height: 1000px) {
#map-canvas {
height: 700px;
}
}
@media (min-height: 1100px) {
#map-canvas {
height: 800px;
}
}
@media (min-height: 1200px) {
#map-canvas {
height: 900px;
}
}
/* Media widths for container */
@media (min-width: 1300px) {
.container{
max-width: 1170px;
min-width: 1170px;
}
}
@media (min-width: 1400px) {
.container{
max-width: 1270px;
min-width: 1270px;
}
}
@media (min-width: 1500px) {
.container{
max-width: 1370px;
min-width: 1370px;
}
}
@media (min-width: 1600px) {
.container{
max-width: 1470px;
min-width: 1470px;
}
}
@media (min-width: 1700px) {
.container{
max-width: 1570px;
min-width: 1570px;
}
}
@media (min-width: 1800px) {
.container{
max-width: 1670px;
min-width: 1670px;
}
}
@media (min-width: 1900px) {
.container{
max-width: 1770px;
min-width: 1770px;
}
}
@media (min-width: 2000px) {
.container{
max-width: 1870px;
min-width: 1870px;
}
}
</style>
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="https://jquery-csv.googlecode.com/files/jquery.csv-0.71.js"></script>
<script src="http://code.jquery.com/ui/1.11.0/jquery-ui.min.js"></script>
<script src="http://data2semantics.github.io/PatViz/js/jquery.base64.js"></script>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBTdZniWL-51geqo9kfGg1YxjtIfgVdkIs&sensor=false">
</script>
<script type="text/javascript">
var demos = {'CPC is Y02E10/541: CuInSe2 material PV cells': [
{description: 'USPTO', start: 1974, end: 2008, url: 'http://semweb.cs.vu.nl/patents2/ztest/', prefix: 'z' },
{description: 'PatStat', start: 1974, end: 2008, url:'http://semweb.cs.vu.nl/patents2/patstat/', prefix: 'pat'}
]
};
</script>
<script src="scaffold.template.js"></script>
<script src="js/patents.js"></script>
</head>
<body>
<nav class="navbar navbar-default" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">PatViz</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav" id="demos">
<li><div class="btn btn-primary btn-file navbar-btn" >
Select files to display... <input type="file" id="fileinput" multiple/>
</div></li>
<!-- <li class="dropdown">
<div class="btn btn-default dropdown-toggle navbar-btn" id="dropdownMenu1" data-toggle="dropdown">
Demo Datasets
<span class="caret"></span>
</div>
<ul class="dropdown-menu" id="demos" role="menu" aria-labelledby="dropdownMenu1">
</ul>
</li> -->
</ul>
<ul class="nav navbar-nav navbar-right" id='yearcontrol'>
<li>
<span id="decrease" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-chevron-left"></span></span>
</li>
<li><span id="year"></span></li>
<li><span id="increase" class="btn btn-default navbar-btn"><span class="glyphicon glyphicon-chevron-right"></span></span></li>
<li><div class='btn btn-success disabled navbar-btn' id='play'>Play</div></li>
<li><div class='btn btn-danger disabled navbar-btn' id='stop'>Stop</div></li>
<li class="divider"> </li>
<li><div class='btn btn-default navbar-btn' data-toggle="modal" data-target="#legend-modal" id='legend'>Legend</div></li>
<li class="divider"> </li>
<li><div class='btn btn-info navbar-btn' data-toggle="modal" data-target="#save-modal" id='save'>Save</div></li>
</ul>
</div><!-- /.navbar-collapse -->
</nav>
<div class='container'>
<div class='row'>
<div class='col-md-12'>
<div class='panel panel-default'>
<div id='infopane' class='panel-body'>
<p>Hover over a circle, and information will be shown here...</p>
</div>
</div>
</div>
</div>
<div class="row">
<div class='col-md-12'>
<div id="map-canvas"></div>
</div>
</div>
<div class="row">
<div class='col-md-12'>
<hr/>
<img style="height: 50px; float: left;" src="http://data2semantics.github.io/PatViz/img/logo-no-subtitle-150dpi-small.png"/>
<img style="height: 50px; float: left;" src="http://data2semantics.github.io/PatViz/img/COMMIT_logo_RGB.jpg"/>
<div style="float:left;">
<small><strong>PatViz</strong> - Patent Collaboration Visualizer, Copyright (c) 2013, Rinke Hoekstra and Loet Leydesdorff<br/>
For more information, please visit the <a href="http://www.leydesdorff.net/software/patstat/">companion website</a> (on PatStat only), or if you would like to run this tool locally, visit our <a href="http://github.com/Data2Semantics/PatViz" target="_new">GitHub</a> pages.</small>
</div>
<img style="height: 50px; float: right;" src="http://data2semantics.github.io/PatViz/img/uva.png"/>
<img style="height: 50px; float: right;" src="http://data2semantics.github.io/PatViz/img/VUlogo_EN_Wit_FC_tcm9-201388.png"/>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="legend-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel">Legend</h4>
</div>
<div class="modal-body" id="legendpane">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<!-- Modal -->
<div class="modal" id="save-modal" tabindex="-1" role="dialog" aria-labelledby="save-modal-label" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="save-modal-label">Save this Visualisation</h4>
</div>
<div class="modal-body" id="save-modal-body">
<p>You can download an interactive snapshot of this visualization for use on your own website.</p>
<p>Once you obtained and entered a Google Maps API key, click the 'Generate Page' button below. This will produce a link, which you can download to your local machine: right-click, and then choose 'Save link as...'.<p>
<form role="form">
<!-- <div class="form-group">
<label for="title">Visualization title</label>
<input type="text" class="form-control" id="title" placeholder="Enter a tile for your visualization">
</div>
<div class="form-group">
<label for="author">Author</label>
<input type="text" class="form-control" id="author" placeholder="Enter the author of this visualization">
</div> -->
<div class="form-group">
<label for="apikey">Google Maps API Key</label>
<input type="text" class="form-control" id="apikey" placeholder="Enter a Google API Key">
<span class="help-block">Please <a href="http://https://code.google.com/apis/console" target="_new">apply for a Google Maps API Key</a> and paste the value here.</span>
</div>
<div style='text-align: center;' class="btn btn-primary btn-block" id="save-button">Generate Page</div>
</form>
<div id="downloadlink" style='text-align: center; padding-top: 1em;'></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
</body>
</html>