From: Radek Czajka Date: Fri, 8 Feb 2019 10:27:01 +0000 (+0100) Subject: Summon the annoying banner. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/746bfb66224e6a1065e5355ed63f9c4836b0a498?ds=inline Summon the annoying banner. --- diff --git a/src/wolnelektury/static/css/annoy.css b/src/wolnelektury/static/css/annoy.css index 5ee80da35..54dbfba57 100755 --- a/src/wolnelektury/static/css/annoy.css +++ b/src/wolnelektury/static/css/annoy.css @@ -6,8 +6,8 @@ z-index: 200; font-family: Arial, sans-serif; display: block; - padding: 2.6px 13px; - /*width: 1em;*/ + padding: .1em 1em; + width: 1em; text-align:center; border-radius: 0 0 0 1em; position: absolute; @@ -19,9 +19,9 @@ #annoy { font-size: 13px; line-height: 1.15em; - /*padding: 1em 5em 1em 0;*/ + padding: 1em 5em 1em 0; display: none; - /*background: orange;*/ + background: orange; font-family: Arial, sans-serif; position: relative; z-index: 200; diff --git a/src/wolnelektury/static/js/annoy.js b/src/wolnelektury/static/js/annoy.js index 3104097a9..d71f14676 100644 --- a/src/wolnelektury/static/js/annoy.js +++ b/src/wolnelektury/static/js/annoy.js @@ -6,18 +6,18 @@ $("#annoy-on").click(function(e) { e.preventDefault(); $("#annoy").slideDown('fast'); $(this).hide(); - if (Modernizr.localstorage) localStorage.removeItem("annoyed2013"); + if (Modernizr.localstorage) localStorage.removeItem("annoyed2019"); }); $("#annoy-off").click(function() { $("#annoy").slideUp('fast'); $("#annoy-on").show(); - if (Modernizr.localstorage) localStorage["annoyed2013"] = true; + if (Modernizr.localstorage) localStorage["annoyed2019"] = true; }); if (Modernizr.localstorage) { - if (!localStorage["annoyed2013"]) { + if (!localStorage["annoyed2019"]) { $("#annoy-on").hide(); $("#annoy").show(); } diff --git a/src/wolnelektury/templates/annoy.html b/src/wolnelektury/templates/annoy.html index ecf1a1f9d..1f0889908 100755 --- a/src/wolnelektury/templates/annoy.html +++ b/src/wolnelektury/templates/annoy.html @@ -1,8 +1,7 @@ {% load static %} -Misja Książka +1%
- {% comment %} - + Logo akcji 1%

Droga użytkowniczko, drogi użytkowniku!

@@ -16,8 +15,6 @@

Dowiedz się więcej

- {% endcomment %} x -
diff --git a/src/wolnelektury/templates/base/superbase.html b/src/wolnelektury/templates/base/superbase.html index 3ff768f33..f5feb4ed7 100644 --- a/src/wolnelektury/templates/base/superbase.html +++ b/src/wolnelektury/templates/base/superbase.html @@ -35,6 +35,7 @@ {% block bodycontent %} {% block annoy %} + {% include "annoy.html" %} {% if not funding_no_show_current %} {% cache 120 funding_top_bar LANGUAGE_CODE %} {% funding_top_bar %}