X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ae60b2a3949e96357477cc04f90fd0873cee8a92..db3bea808bc78fa2d1c6d0be6e0300003f31059c:/src/wolnelektury/static/js/annoy.js?ds=inline diff --git a/src/wolnelektury/static/js/annoy.js b/src/wolnelektury/static/js/annoy.js index 3104097a9..f2a00f661 100644 --- a/src/wolnelektury/static/js/annoy.js +++ b/src/wolnelektury/static/js/annoy.js @@ -1,23 +1,24 @@ (function($) { $(function() { +var tag = "annoyed2019wspieraj"; $("#annoy-on").click(function(e) { e.preventDefault(); $("#annoy").slideDown('fast'); $(this).hide(); - if (Modernizr.localstorage) localStorage.removeItem("annoyed2013"); + if (Modernizr.localstorage) localStorage.removeItem(tag); }); $("#annoy-off").click(function() { $("#annoy").slideUp('fast'); $("#annoy-on").show(); - if (Modernizr.localstorage) localStorage["annoyed2013"] = true; + if (Modernizr.localstorage) localStorage[tag] = true; }); if (Modernizr.localstorage) { - if (!localStorage["annoyed2013"]) { + if (!localStorage[tag]) { $("#annoy-on").hide(); $("#annoy").show(); }