X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/7210db1597376df2228e65dcea91141f1d78495f..a4d51d90f268865744a6d54c83d0f298d1faa42d:/edumed/static/js/annoy.js diff --git a/edumed/static/js/annoy.js b/edumed/static/js/annoy.js deleted file mode 100755 index 78c34e4..0000000 --- a/edumed/static/js/annoy.js +++ /dev/null @@ -1,40 +0,0 @@ -(function($) { - $(function() { - - -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("annoyed2013"); -}); - -$("#annoy-off").click(function() { - $("#annoy").slideUp('fast'); - $("#annoy-on").show(); - if (have_localstorage) localStorage["annoyed2013"] = true; -}); - - -if (have_localstorage) { - if (!localStorage["annoyed2013"]) { - $("#annoy-on").hide(); - $("#annoy").show(); - } -} - - - - }); -})(jQuery);