fix project dir setting
[emels.git] / emels / static / fnpdjango / annoy / annoy.js
diff --git a/emels/static/fnpdjango/annoy/annoy.js b/emels/static/fnpdjango/annoy/annoy.js
deleted file mode 100644 (file)
index ad1444d..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-(function($) {
-$(function() {
-
-$("#annoy").each(function(i, annoy) {
-
-    var edition = "annoyed" + new Date().getFullYear();
-
-    var have_localstorage;
-    try {
-        localStorage.setItem("test", "test");
-        localStorage.removeItem("test");
-        have_localstorage = true;
-    } catch(e) {
-        have_localstorage = false;
-    }
-
-    $("#annoy-on").click(function(e) {
-        e.preventDefault();
-        $(annoy).slideDown('fast');
-        $(this).hide();
-        if (have_localstorage) localStorage.removeItem(edition);
-    });
-
-    $("#annoy-off").click(function() {
-        $(annoy).slideUp('fast');
-        $("#annoy-on").show();
-        if (have_localstorage) localStorage[edition] = true;
-    });
-
-    if (have_localstorage) {
-        if (!localStorage[edition]) {
-            $("#annoy-on").hide();
-            $(annoy).show();
-        }
-    }
-    });
-
-
-});
-})(jQuery);