fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Smaller icons.
[wolnelektury.git]
/
src
/
wolnelektury
/
static
/
js
/
annoy.js
diff --git
a/src/wolnelektury/static/js/annoy.js
b/src/wolnelektury/static/js/annoy.js
index
3104097
..
f2a00f6
100644
(file)
--- a/
src/wolnelektury/static/js/annoy.js
+++ b/
src/wolnelektury/static/js/annoy.js
@@
-1,23
+1,24
@@
(function($) {
$(function() {
(function($) {
$(function() {
+var tag = "annoyed2019wspieraj";
$("#annoy-on").click(function(e) {
e.preventDefault();
$("#annoy").slideDown('fast');
$(this).hide();
$("#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();
});
$("#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 (Modernizr.localstorage) {
- if (!localStorage[
"annoyed2013"
]) {
+ if (!localStorage[
tag
]) {
$("#annoy-on").hide();
$("#annoy").show();
}
$("#annoy-on").hide();
$("#annoy").show();
}