From: Radek Czajka <rczajka@rczajka.pl>
Date: Wed, 13 Nov 2019 07:54:40 +0000 (+0100)
Subject: Annoy
X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/3b76a7f9bd1f9dd2e099e76aadc189222beba8f2

Annoy
---

diff --git a/src/wolnelektury/static/css/annoy.css b/src/wolnelektury/static/css/annoy.css
index 1bbf5b32c..651960589 100755
--- a/src/wolnelektury/static/css/annoy.css
+++ b/src/wolnelektury/static/css/annoy.css
@@ -16,20 +16,20 @@
 }
 
 #annoy {
-    font-size: 13px;
-    line-height: 1.15em;
     padding: 1em 5em 1em 0;
     display: none;
     background: orange;
-    font-family: Arial, sans-serif;
     position: relative;
     z-index: 99;
 }
 #annoy p {
-    margin: 0 0 0 10em;;
+    margin: 0;
 }
 #annoy a {
-    color: #4E56C8;
+    color: black;
+    display: block;
+    font-size: 2em;
+    text-align: center;
 }
 
 #annoy .banner {
@@ -55,6 +55,7 @@
     top: 0;
     right: 0;
     color: black;
+    font-size: 13px;
 }
 #annoy a#annoy-off:hover {
     cursor: pointer;
diff --git a/src/wolnelektury/static/js/annoy.js b/src/wolnelektury/static/js/annoy.js
index 6e613c713..f2a00f661 100644
--- a/src/wolnelektury/static/js/annoy.js
+++ b/src/wolnelektury/static/js/annoy.js
@@ -1,22 +1,24 @@
 (function($) {
     $(function() {
 
+var tag = "annoyed2019wspieraj";
+
 $("#annoy-on").click(function(e) {
     e.preventDefault();
     $("#annoy").slideDown('fast');
     $(this).hide();
-    if (Modernizr.localstorage) localStorage.removeItem("annoyed2019tpwl");
+    if (Modernizr.localstorage) localStorage.removeItem(tag);
 });
 
 $("#annoy-off").click(function() {
     $("#annoy").slideUp('fast');
     $("#annoy-on").show();
-    if (Modernizr.localstorage) localStorage["annoyed2019tpwl"] = true;
+    if (Modernizr.localstorage) localStorage[tag] = true;
 });
 
 
 if (Modernizr.localstorage) {
-    if (!localStorage["annoyed2019tpwl"]) {
+    if (!localStorage[tag]) {
         $("#annoy-on").hide();
         $("#annoy").show();
     }
diff --git a/src/wolnelektury/templates/annoy.html b/src/wolnelektury/templates/annoy.html
index 8b2f8e39f..89c596d3d 100644
--- a/src/wolnelektury/templates/annoy.html
+++ b/src/wolnelektury/templates/annoy.html
@@ -1,5 +1,5 @@
 {% load static %}
-<a id='annoy-on' href="/towarzystwo/">TPWL</a>
+<a id='annoy-on' href="/towarzystwo/">Wesprzyj</a>
 <div id='annoy'>
   <div id='annoy-content'>
 
@@ -15,7 +15,7 @@
     <p><a href="http://nowoczesnapolska.org.pl/pomoz-nam/wesprzyj-nas/">Dowiedz się więcej</a></p-->
     <p>
     <a href="/towarzystwo/">
-	Wolne Lektury potrzebują pomocy! Wesprzyj bezpłatną bibliotekę internetową i przeczytaj utwory napisane specjalnie dla Ciebie.
+	Wspieraj Wolne Lektury
     </a>
     </p>