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