- dblp_plugin.js
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
| var script = document.createElement("script");
script.src = "http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js";
document.getElementsByTagName("head")[0].appendChild(script);
script.onload = function() {
venue_list = Array();
$("#autocomplete_F_boxes_2_body .box_line").each(function(){
var t=$(this).find(".hits_number");
$("<INPUT type='checkbox' class='venue_check'></input>").insertAfter(t);
});
$('.venue_check').each(function(){
var venue_name = $(this).parent().find('.completion_link').text();
var default_venue_list = ["KDD", 'WWW', 'ICDM', 'SDM', 'VLDB', 'CIKM'];
if ($.inArray(venue_name,default_venue_list)>=0) {
venue_list[venue_name ]=1;
$(this).attr('checked','true');
}
});
$('.venue_check').click(function(){
var venue_name = $(this).parent().find('.completion_link').text();
if ($(this).attr("checked")){
venue_list[venue_name ]=1;
}
else
{
venue_list[venue_name ]=undefined;
}
$("#autocomplete_H_boxes_1_body table tr").each(function(){
if ($(this).find('th').size()>0) {return ;}
var match_flag = false;
for (x in venue_list){
if (!venue_list[x]) continue;
if ($(this).text().match(x)){
match_flag = true;
}
}
if (! match_flag ) {$(this).hide();}else ($(this).show());
});
});
};
|