jim (owner)

Revisions

gist: 136131 Download_button fork
public
Public Clone URL: git://gist.github.com/136131.git
JavaScript
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$(function() {
 
    if($.cookie('state') == 'hidden') {
        $('a.hide').hide();
        $('div.toBeHidden').hide();
    } else {
        $('a.show').hide();
    }
 
    $('a.hide').click(function() {
        $.cookie('state', 'hidden');
        $('div.toBeHidden').hide();
    });
 
    $('a.show').click(function() {
        $.cookie('state', null);
        $('div.toBeHidden').show();
    });
 
});