aboutsummaryrefslogtreecommitdiffstats
path: root/gui/static/script.js
blob: 231aa03e8fd493b11755fe47cbb26b2413de5967 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$(document).ready(function() {
    // Only show first tab
    $('#info div:not(:first)').hide();

    // Handle clicks on tabs to change visiblity of panes
    $('#info-nav li').click(function(event) {
        event.preventDefault();
        $('#info div').hide();
        $('#info-nav .current').removeClass("current");
        $(this).addClass('current');
        var clicked = $(this).find('a:first').attr('href');
        $('#info ' + clicked).fadeIn('fast');
    }).eq(0).addClass('current');

});