Start annoying people with taxes.
[wolnelektury.git] / apps / wolnelektury_core / static / js / annoy.js
diff --git a/apps/wolnelektury_core/static/js/annoy.js b/apps/wolnelektury_core/static/js/annoy.js
new file mode 100755 (executable)
index 0000000..3104097
--- /dev/null
@@ -0,0 +1,29 @@
+(function($) {
+    $(function() {
+
+
+$("#annoy-on").click(function(e) {
+    e.preventDefault();
+    $("#annoy").slideDown('fast');
+    $(this).hide();
+    if (Modernizr.localstorage) localStorage.removeItem("annoyed2013");
+});
+
+$("#annoy-off").click(function() {
+    $("#annoy").slideUp('fast');
+    $("#annoy-on").show();
+    if (Modernizr.localstorage) localStorage["annoyed2013"] = true;
+});
+
+
+if (Modernizr.localstorage) {
+    if (!localStorage["annoyed2013"]) {
+        $("#annoy-on").hide();
+        $("#annoy").show();
+    }
+}
+
+
+
+    });
+})(jQuery);