From ad5acb886787871a70eee6385cddbb4238d3adb2 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 17 Jun 2019 15:30:47 +0200 Subject: [PATCH 1/1] New annoying banner. --- src/wolnelektury/static/css/annoy.css | 1 - src/wolnelektury/static/js/annoy.js | 7 +++---- src/wolnelektury/templates/annoy.html | 12 +++++++++--- 3 files changed, 12 insertions(+), 8 deletions(-) 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
-- 2.20.1