This repository has been archived by the owner on Oct 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
publication.html
338 lines (279 loc) · 11.5 KB
/
publication.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
<meta name="generator" content="Jekyll v4.0.1">
<link rel="canonical" href="https://getbootstrap.com/docs/4.5/examples/blog/">
<!-- Bootstrap core CSS -->
<link href="./assets/dist/css/bootstrap.css" rel="stylesheet">
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<title>ANLAB</title>
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
</style>
<!-- Custom styles for this template -->
<link href="https://fonts.googleapis.com/css?family=Playfair+Display:700,900" rel="stylesheet">
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Cabin:wght@400;500;600;700&family=Maven+Pro:wght@400;500;600;700&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Source+Code+Pro:wght@400;600;700&family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="blog.css" rel="stylesheet">
</head>
<body>
<div class="container">
<header class="blog-header py-3">
<div class="row flex-nowrap align-items-center">
<div class="col-4 text-left">
<a class="blog-header-logo text-dark" href="index.html">
<div class="logo">
<img src="./data/anlab_logo.png" style="width: 100%; max-width: 760px; vertical-align: middle" />
</div>
</a>
</div>
<div class="nav-scroller py-1 mb-1">
<nav class="nav d-flex justify-content-between ">
<a class="p-4 text-secondary remove_underline" href="about.html">About</a>
<a class="p-4 text-secondary remove_underline" href="member.html">Member</a>
<a class="p-4 text-secondary remove_underline" href="research.html">Research</a>
<a class="p-4 text-secondary remove_underline" href="publication.html"><b>Publications</b></a>
<a class="p-4 text-secondary remove_underline" href="courses.html">Contact</a>
</nav>
</div>
</div>
</header>
<main role="main" class="">
<div class="first_row" style="margin-bottom:20px;border-bottom:none;">
<div class="col-sm-12 text-left title">
Publications
</div>
<div class="col-sm-12 text-centerv researh_field">
<div class=field_button1>
Research Field
</div>
<div class="field_button">
<div class="but">
<input type="radio" id="all" value="all" name="field" checked="checked" />
<label for="all">All</label>
</div>
<div class="but">
<input type="radio" id="sys" value="sys" name="field" />
<label for="sys">System Network</label>
</div>
<div class="but">
<input type="radio" id="data" value="data" name="field" />
<label for="data">Online Social Network</label>
</div>
</div>
</div>
<div class="col-sm-12 text-centerv researh_field">
<div class=field_button1>
Publication Year
</div>
<div class="year_button">
<!--
<div class="but">
<input type="radio" id="ally" value="ally" name="year" checked="checked" />
<label for="ally">all</label>
</div>
-->
<div class="but">
<input type="radio" id="2020y" value="2020" name="year" />
<label for="2020y">2020</label>
</div>
<div class="but">
<input type="radio" id="2017y" value="2017" name="year" />
<label for="2017y">2017</label>
</div>
<div class="but">
<input type="radio" id="2016y" value="2016" name="year" />
<label for="2016y">2016</label>
</div>
<div class="but">
<input type="radio" id="2015y" value="2015" name="year" />
<label for="2015y">2015</label>
</div>
<div class="but">
<input type="radio" id="2014y" value="2014" name="year" />
<label for="2014y">2014</label>
</div>
<div class="but">
<input type="radio" id="2013y" value="2013" name="year" />
<label for="2013y">2013</label>
</div>
<div class="but">
<input type="radio" id="2012y" value="2012" name="year" />
<label for="2012y">~2012</label>
</div>
</div>
</div>
</div>
<div class="col-sm-12 text-centerv" id="publication_list"></div>
</main><!-- /.container -->
</div>
<!--<footer>
<script>
$( "footer" ).load( "./footer.html" );
</script>
</!-footer>-->
<footer>
<div class="footer_info">
Advanced Networking Laboratory <br>
Room #621 (Student Lab) / #608 (Prof. Office)<br>
IT Convergence Building (N1), KAIST<br>
Daehakro 291, Yuseong-gu, Daejeon <br>
305-701, Republic of Korea<br>
(TEL) +82-42-350-7748<br>
</div>
<div class="footer_hp_info">
© copyright 2020
</div>
</footer>
</div>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
var publications = document.querySelector("#publication_list");
//git에서 불러오기
var requestURL = 'https://raw.githubusercontent.com/wiheeju/data/master/real_publications.json';
//var requestURL = './crawling/real_publications.json'
var request = new XMLHttpRequest();
request.open('GET', requestURL);
request.responseType = 'text';
request.send();
request.onload = function() {
var papers = JSON.parse(request.response);
console.log(papers);
show(papers);
}
// research field -> remove others
$(function () {
$('input:radio[name="year"]').change(function () {
console.log(this);
var year = $(this).val();
console.log(year);
goToByScroll(year);
$('input:radio[name="year"]').prop("checked", false);
})
$('input:radio[name="field"]').change(function () {
var yearlist = $('#publication_list > div');
if ($(this).val() == 'all') {
$('#publication_list > div').each(function () {
var n = $("div[class= 'papers']", this).length;
$(this).show(00);
})
$(".1").show(200); //show in 200ms = 0.2s
$(".2").show(200);
}
else if ($(this).val() == 'sys') {
$('#publication_list > div').each(function () {
var n = $("div[class= 'papers 1']", this).length;
if (n == 0) {
$(this).hide(00);
} else {
$(this).show(00);
}
})
$(".1").show(200);
$(".2").hide(200);
}
else if ($(this).val() == 'data') {
$('#publication_list > div').each(function () {
var n = $("div[class= 'papers 2']", this).length;
console.log(n);
if (n == 0) {
$(this).hide(00);
} else {
$(this).show(00);
}
})
$(".1").hide(200);
$(".2").show(200);
}
});
});
function goToByScroll(id) {
// Scroll
$('html,body').animate({
scrollTop: $("#" + id).offset().top
}, 'slow');
}
function show_2(str) {
var class1 = document.getElementsByClassName('1');
var class2 = document.getElementsByClassName('2');
}
function show_all(str){
document.getElementsByClassName('1').style.display = 'block';
document.getElementsByClassName('2').style.display = 'block';
}
function write_year(jsonobj){
var year = document.createElement('div');
year.className='paper_year';
year.id = jsonobj["year"];
year.innerText= jsonobj["year"];
publications.appendChild(year);
return year;
}
function write_paper(jsonobj, year_div) {
var paper= document.createElement('div');
paper.className='papers';
paper.classList.add(jsonobj['section'] );
var title = document.createElement('div');
title.className='paper_title';
title.innerText = jsonobj['title'];
var writer = document.createElement('div');
writer.className='paper_writer';
writer.innerText = jsonobj['writer'];
var aca = document.createElement('div');
aca.className='paper_academy';
aca.innerText = jsonobj['academy'];
paper.appendChild(title);
paper.appendChild(writer);
paper.appendChild(aca);
// poster, pdf 등의 첨부파일
if(jsonobj.hasOwnProperty("pdf")){
var pdf = document.createElement('div');
pdf.className='attaches pdf';
pdf.innerHTML='<a href='+ jsonobj['pdf'] +'>pdf</a>';
title.appendChild(pdf);
}
if(jsonobj.hasOwnProperty("poster")){
var poster = document.createElement('div');
poster.className='attaches poster';
poster.innerHTML='<a href='+ jsonobj['poster'] +'>poster</a>';
title.appendChild(poster);
}
if(jsonobj.hasOwnProperty("ppt")){
var ppt = document.createElement('div');
ppt.className='attaches ppt';
ppt.innerHTML='<a href='+ jsonobj['ppt'] +'>ppt</a>';
title.appendChild(ppt);
}
year_div.appendChild(paper);
}
function show(jsonobj){
var list = jsonobj;
for (var i=0; i<list.length; i++){
//write_year(list[i]);
console.log(i,list[i]);
var year_div = write_year(list[i]);
for (var j=0; j<list[i]["publications"].length; j++){
write_paper(list[i]['publications'][j], year_div);
}
};
}
</script>
</html>