From: Radek Czajka Date: Mon, 17 Jun 2019 13:30:47 +0000 (+0200) Subject: New annoying banner. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/ad5acb886787871a70eee6385cddbb4238d3adb2?ds=sidebyside;hp=45b3f39b2548169718f640227d3c09064cdfa9cb New annoying banner. --- diff --git a/src/wolnelektury/static/css/annoy.css b/src/wolnelektury/static/css/annoy.css index 7bfd93246..ea4a643e0 100755 --- a/src/wolnelektury/static/css/annoy.css +++ b/src/wolnelektury/static/css/annoy.css @@ -7,7 +7,6 @@ font-family: Arial, sans-serif; display: block; padding: .1em 1em; - width: 1em; text-align:center; border-radius: 0 0 0 1em; position: absolute; diff --git a/src/wolnelektury/static/js/annoy.js b/src/wolnelektury/static/js/annoy.js index d71f14676..6e613c713 100644 --- a/src/wolnelektury/static/js/annoy.js +++ b/src/wolnelektury/static/js/annoy.js @@ -1,23 +1,22 @@ (function($) { $(function() { - $("#annoy-on").click(function(e) { e.preventDefault(); $("#annoy").slideDown('fast'); $(this).hide(); - if (Modernizr.localstorage) localStorage.removeItem("annoyed2019"); + if (Modernizr.localstorage) localStorage.removeItem("annoyed2019tpwl"); }); $("#annoy-off").click(function() { $("#annoy").slideUp('fast'); $("#annoy-on").show(); - if (Modernizr.localstorage) localStorage["annoyed2019"] = true; + if (Modernizr.localstorage) localStorage["annoyed2019tpwl"] = true; }); if (Modernizr.localstorage) { - if (!localStorage["annoyed2019"]) { + if (!localStorage["annoyed2019tpwl"]) { $("#annoy-on").hide(); $("#annoy").show(); } diff --git a/src/wolnelektury/templates/annoy.html b/src/wolnelektury/templates/annoy.html index 4597260c9..d4d2883d3 100644 --- a/src/wolnelektury/templates/annoy.html +++ b/src/wolnelektury/templates/annoy.html @@ -1,9 +1,9 @@ {% load static %} -1% +TPWL
x