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