summaryrefslogtreecommitdiff
path: root/static/js/show.js
blob: 333ce1712e4a45203d0586560df0fe69708e5f66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$(document).ready(function(){
        
        $(".detail > .heading").click(function() {
                $(this).prevAll(".mark:last").click();
        });

        $(".detail > .mark").toggle(
            function() {
                this.src = this.src.replace("closed", "open");
                $(this).nextAll(".details:first").toggle();
            },
            function() {
                this.src = this.src.replace("open", "closed");
                $(this).nextAll(".details:first").toggle();
        });

        $(".details").hide();
})