minor fix in player
[wolnelektury.git] / src / wolnelektury / static / js / annoy.js
1 (function($) {
2     $(function() {
3
4
5 $("#annoy-on").click(function(e) {
6     e.preventDefault();
7     $("#annoy").slideDown('fast');
8     $(this).hide();
9     if (Modernizr.localstorage) localStorage.removeItem("annoyed2013");
10 });
11
12 $("#annoy-off").click(function() {
13     $("#annoy").slideUp('fast');
14     $("#annoy-on").show();
15     if (Modernizr.localstorage) localStorage["annoyed2013"] = true;
16 });
17
18
19 if (Modernizr.localstorage) {
20     if (!localStorage["annoyed2013"]) {
21         $("#annoy-on").hide();
22         $("#annoy").show();
23     }
24 }
25
26
27
28     });
29 })(jQuery);