blob: 6280e94cd93d10127d898ca61dfc4c28b76a6df1 (
plain)
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
|
$(document).ready( function() {
// sidebar menu click
$('.templatemo-sidebar-menu li.sub a').click(function(){
if($(this).parent().hasClass('open')) {
$(this).parent().removeClass('open');
} else {
$(this).parent().addClass('open');
}
}); // sidebar menu click
$("#list>li:gt(2)").hide();
$(".more").click(
e=>{if($(e.target).html()=="more"){
$("#list>li:gt(2)")
.siblings()
.show();
$(e.target).html("close")
}else{
$("#list>li:gt(2)")
.hide();
$(e.target).html("more")
};
});
$("#bb").click(function(){
//点击图片后发送跳转到指定页面的事件。
window.location.href="data-visualization.html"
})
}); // document.ready
|