summaryrefslogtreecommitdiff
path: root/static/js/show.js
blob: b40c9fe172c2649d2f3a9231475d44aad4bd3074 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$(document).ready(function(){
        
        $(".detail span").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();
})