-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpublications.html
401 lines (338 loc) · 20.5 KB
/
publications.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
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title> SNAIL | Publication </title>
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery.min.js"></script>
<!-- Custom Theme files -->
<!---- animated-css ---->
<link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!---- animated-css ---->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- Custom Theme files -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/x-javascript">
addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
</script>
<!----webfonts--->
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800' rel='stylesheet' type='text/css'>
<!---//webfonts--->
<!----Back to top--->
<link rel="stylesheet" href="css/backtop.css"> <!-- Gem style -->
<script src="js/modernizr.js"></script> <!-- Modernizr -->
<!----//Back to top--->
<!----Tag manager--->
<link rel="stylesheet" href="css/tagmanager.css">
<script src="js/tagmanager.js"></script>
<!----//Tag manager--->
<!----Search engine + List--->
<link rel="stylesheet" href="css/publication.css">
<script>
function displayAdv(){
clearForm();
var d = document.getElementById('Advanced').style.display;
if(d == 'none'){
document.getElementById('Advanced').style.display = 'block'
document.getElementById('NormalSearch').style.display = 'none';
}else{
document.getElementById('Advanced').style.display = 'none';
document.getElementById('NormalSearch').style.display = 'block'
}
}
</script>
<!----//Search engine + List--->
<script type="text/javascript" src="js/list.js"></script>
<!-- Publications feed -->
<script type="text/javascript">
var searchList = '';
$( document ).ready(function() {
var publicationsList = document.getElementById("PublicationsList");
$.getJSON("publication.json", function(json) {
json.publication.forEach(function(item){
var pubString = "<li>";
if(item.link != "#")
{
pubString += '<a href="' + item.link + '" target="_blank"><img src="images/smallpdf.png" class="img_left firstline"></img></a>';
}
pubString += '<p class="title firstline"> ' + item.title + '</p><br><p class="author">' + item.author + '</p><p class="coauthor"> ' + item.coauthor + '</p><br><p class="related">' + item.related + '</p><p class="release">' + item.release + '</p><br><p class="ptype"><span class="ptype">' + item.ptype +'</span></p> ' + addTag(item.tag) +'</li>'
$('.list').append(pubString);
});
createListObject();
});
});
function createListObject(){
var options = {
valueNames: [ 'title','author','coauthor', 'related', 'release','ptype','tag' ]
};
searchList = new List('publicationsList', options);
searchList.on('filterComplete',listUpdated);
searchList.on('searchComplete',listUpdated);
}
function listUpdated(){
searchList.visibleItems.length == 0 ? document.getElementById("NoResult").style.display = "block" : document.getElementById("NoResult").style.display = "none";
}
function clearForm(){
searchList.searched = false;
searchList.update();
jQuery(".tm-input").tagsManager('empty');
document.forms["searchform"].reset()
validateForm();
}
function validateForm(){
var title = document.forms["searchform"].elements["title"].value;
var author = document.forms["searchform"].elements["author"].value;
var coauthor = document.forms["searchform"].elements["coauthor"].value;
var related = document.forms["searchform"].elements["related"].value;
var release = document.forms["searchform"].elements["release"].value;
var pType = document.forms["searchform"].elements["ptype"].value;
var tags = document.forms["searchform"].elements["hiddenTag"].value;
if(tags)
var res = tags.split(",");
searchList.filter(function(item){
if(res){
var tagArray = [];
res.forEach(function(entry){
if(item.values().tag.toLowerCase().search(entry.toLowerCase()) >= 0){
tagArray.push(true);
}else{
tagArray.push(false);
}
});
// TODO :
// With tagArray, contain only asked tag, or at least one ?
// Currently asking for all.
// and right now, it's text searching, do we want exact tags ?
if(release == "under")
return (
item.values().title.toLowerCase().search(title.toLowerCase()) >= 0 &&
item.values().author.toLowerCase().search(author.toLowerCase()) >= 0 &&
item.values().coauthor.toLowerCase().search(coauthor.toLowerCase()) >= 0 &&
item.values().related.toLowerCase().search(related.toLowerCase()) >= 0 &&
item.values().release < 2012 &&
item.values().ptype.toLowerCase().search(pType.toLowerCase()) >= 0 &&
tagArray.every(Boolean)
)
else
return (
item.values().title.toLowerCase().search(title.toLowerCase()) >= 0 &&
item.values().author.toLowerCase().search(author.toLowerCase()) >= 0 &&
item.values().coauthor.toLowerCase().search(coauthor.toLowerCase()) >= 0 &&
item.values().related.toLowerCase().search(related.toLowerCase()) >= 0 &&
item.values().release.search(release) >= 0 &&
item.values().ptype.toLowerCase().search(pType.toLowerCase()) >= 0 &&
tagArray.every(Boolean)
)
}else{
if(release == "under")
return (
item.values().title.toLowerCase().search(title.toLowerCase()) >= 0 &&
item.values().author.toLowerCase().search(author.toLowerCase()) >= 0 &&
item.values().coauthor.toLowerCase().search(coauthor.toLowerCase()) >= 0 &&
item.values().related.toLowerCase().search(related.toLowerCase()) >= 0 &&
item.values().release < 2012 &&
item.values().ptype.toLowerCase().search(pType.toLowerCase()) >= 0
)
else
return (
item.values().title.toLowerCase().search(title.toLowerCase()) >= 0 &&
item.values().author.toLowerCase().search(author.toLowerCase()) >= 0 &&
item.values().coauthor.toLowerCase().search(coauthor.toLowerCase()) >= 0 &&
item.values().related.toLowerCase().search(related.toLowerCase()) >= 0 &&
item.values().release.search(release) >= 0 &&
item.values().ptype.toLowerCase().search(pType.toLowerCase()) >= 0
)
}
});
}
function addTag(tags){
var finalString = '<p class="tag">';
tags.forEach(function(t){
finalString += '<span class="tag">' + t + '</span>';
});
finalString += '</p>';
return finalString
}
</script>
<!-- Example :
<li>
<a href="[Insert URL to the publication]"><img src="images/smallpdf.png" class="img_left"/></a>
<p class="title"> [Insert publication title here]</p>
<p class="author"> [Insert the publication author name here]</p>
<p class="coauthor"> [Insert the publication co-authors names here]</p>
<p class="release">[Insert date here, 4 digit]</p>
<br> <!-- Seperate Tags from publications informations -->
<!-- <p class="ptype"><span class="ptype">[Insert one of those type : Abstract - Article - Thesis - Book chapter - Poster - Presentation Conference. If not listed please add to ptype list.]</span></p>
<p class="tag">[ Insert list of tag here with the following pattern : <span class="tag">{Tag word}</span>] </p>
</li>
-->
<!--// Publications feed -->
</head>
<body>
<div class="bg">
<div class="container">
<!----- start-header---->
<div id="home" class="header" data-wow-delay="0.4s>
<div class="top-header">
<div class="logo" data-wow-delay="0.4s">
<a href="index.html"><img src="images/logo4.png" title="dreams" /></a>
</div>
<!----start-top-nav---->
<nav class="top-nav" data-wow-delay="0.4s">
<span class="menu"> </span>
<ul class="top-nav">
<li><a href="index.html" class="scroll">Home</a></li>
<li><a href="calendar.html">Calendar</a></li>
<li class="active"><a href="publications.html">Publications</a></li>
<li><a href="project.html">Project</a></li>
<li><a href="team.html">Lab members</a></li>
<li><a href="photo.html">Gallery</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
<script>
$("span.menu").click(function(){
$(".top-nav ul").slideToggle(200);
});
</script>
<div class="clearfix"> </div>
</div>
</div>
</div>
<!----- //End-header---->
<!----- mid-grids ----->
<div class="mid-grids">
<div class="container">
<div class="mid-grid">
<h2 class="grid_1 caption clearfix">Our Publications</h2>
<div class="listing" id="publicationsList">
<form name="searchform">
<div id="NormalSearch">
<input id="NormalSearchInput" class="search searchbox" type="text" placeholder="Search" >
<a id="advancedLink" style="color:blue;" onclick="displayAdv()">advanced filter</a>
</div>
<div id="Advanced" style="display:none;">
<a id="advancedLink" style="color:blue;" onclick="displayAdv()">hide filter</a>
<br><br>
<input class="searchbox" type="text" name="title" placeholder="Publication title" >
<input class="searchbox" type="text" name="author" placeholder="Author name">
<input class="searchbox" type="text" name="coauthor" placeholder="Co-author name">
<input class="searchbox" type="text" name="related" placeholder="Related to">
<br>
Release date:
<select name="release">
<option value="">All</option>
<option value="2015">2015</option>
<option value="2014">2014</option>
<option value="2013">2013</option>
<option value="2012">2012</option>
<option value="under">Under 2012</option>
</select>
Type:
<select name="ptype">
<option value="">All</option>
<option value="Abstract">Abstract</option>
<option value="Article">Article</option>
<option value="Book chapter">Book chapter</option>
<option value="Conference">Conference</option>
<option value="Journal">Journal</option>
<option value="Poster">Poster</option>
<option value="Presentation">Presentation</option>
<option value="MSc Thesis">MSc Thesis</option>
<option value="PhD Thesis">PhD Thesis</option>
</select>
<input type="text" name="tags" placeholder="Tags" class="tm-input"/>
<script>
jQuery(".tm-input").tagsManager({
hiddenTagListName : "hiddenTag"
});
</script>
<br><br>
<input class="button" type="button" value="Submit" onclick="validateForm()">
<input class="button" type="reset" value="clear" onClick="clearForm()">
</div>
</form>
<br><br>
<ul class="list">
<!-- Example :
<li>
<a href="[Insert URL to the publication]"><img src="images/smallpdf.png" class="img_left"/></a>
<p class="title"> [Insert publication title here]</p>
<p class="author"> [Insert the publication author name here]</p>
<p class="coauthor"> [Insert the publication co-authors names here</p>
<p class="release">[Insert date here, 4 digit]</p>
<br> <!-- Seperate Tags from publications informations -->
<!-- <p class="ptype"><span class="ptype">[Insert one of those type : Abstract - Article - Thesis - Book chapter - Poster - Presentation Conference. If not listed please add to ptype list.]</span></p>
<p class="tag">[ Insert list of tag here with the following pattern : <span class="tag">{Tag word}</span>] </p>
</li>
-->
</ul>
<div id="NoResult" style="display:none;">
<p> Sorry, no publications matched your search. Please try again. </p>
</div>
</div>
<script type="text/javascript">
</script>
<div class="clearfix"> </div>
</div>
</div>
</div>
<!----- mid-grids ----->
<a href="#0" class="cd-top">Top</a>
<script src="js/backtop.js"></script> <!-- Gem jQuery -->
<!---- footer ---->
<div class="footer">
<div class="container">
<div class="footer-grids">
<div class="col-md-3 footer-grid ftr-sec wow fadeInLeft" data-wow-delay="0.4s">
<h3>Navigation</h3>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="calendar.html">Calendar</a></li>
<li><a href="publications.html">Publications</a></li>
<li><a href="project.html">Projects</a></li>
<li><a href="team.html">Lab members</a></li>
<li><a href="photo.html">Gallery</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
<!--
<div class="col-md-3 footer-grid ftr-sec wow fadeInRight" data-wow-delay="0.4s">
<h3>Follows</h3>
<ul class="social-icons">
<li><a class="twitter" href="#"><span> </span>twitter</a></li>
<li><a class="facebook" href="#"><span> </span>Facebook</a></li>
<li><a class="googlepluse" href="#"><span> </span>google+</a></li>
</ul>
</div>
-->
<div class="col-md-3 footer-grid ftr-sec ftr wow fadeInRight" data-wow-delay="0.4s">
<h3>Our Location</h3>
<ul class="location">
<li><a class="hm"><span> </span> CHUS - Faculté de médecine et des sciences de la santé
3001, 12e avenue Nord
Sherbrooke (Qc) J1H 5N4
Canada </a></li>
<!--<li><a class="phn" href="#"><span> </span> Phone : ?</a></li>-->
</ul>
</div>
<div class="clearfix"> </div>
</div>
<p class="copy-right wow fadeInRight" data-wow-delay="0.4s"">2014 © Design by <a href="http://w3layouts.com/">W3layouts</a></p>
</div>
</div>
<!---- footer ---->
</body>
</html>