From: Radek Czajka Date: Tue, 13 Jun 2023 21:34:00 +0000 (+0200) Subject: Remove public layout experiment. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/243ac5a586da9e5abb87698306794b6cc173ded1 Remove public layout experiment. --- diff --git a/src/catalogue/locale/pl/LC_MESSAGES/django.mo b/src/catalogue/locale/pl/LC_MESSAGES/django.mo index 3f9a569c1..3a0b65a0d 100644 Binary files a/src/catalogue/locale/pl/LC_MESSAGES/django.mo and b/src/catalogue/locale/pl/LC_MESSAGES/django.mo differ diff --git a/src/catalogue/locale/pl/LC_MESSAGES/django.po b/src/catalogue/locale/pl/LC_MESSAGES/django.po index 9bc2dcc26..6bce154cb 100644 --- a/src/catalogue/locale/pl/LC_MESSAGES/django.po +++ b/src/catalogue/locale/pl/LC_MESSAGES/django.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: WolneLektury\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2023-06-02 13:03+0200\n" +"PO-Revision-Date: 2023-06-13 23:32+0200\n" "Last-Translator: Radek Czajka \n" "Language-Team: Fundacja Nowoczesna Polska \n" @@ -217,7 +217,7 @@ msgstr "prapremiera do" #: catalogue/models/book.py:59 msgid "findable" -msgstr "" +msgstr "wyszukiwalna" #: catalogue/models/book.py:70 msgid "cover" @@ -489,33 +489,33 @@ msgstr "Spis treści" msgid "↑ top ↑" msgstr "↑ góra ↑" -#: catalogue/templates/catalogue/book_short.html:53 +#: catalogue/templates/catalogue/book_short.html:54 #: catalogue/templates/catalogue/picture_detail.html:52 msgid "Epoch" msgstr "Epoka" -#: catalogue/templates/catalogue/book_short.html:61 +#: catalogue/templates/catalogue/book_short.html:62 #: catalogue/templates/catalogue/picture_detail.html:58 msgid "Kind" msgstr "Rodzaj" -#: catalogue/templates/catalogue/book_short.html:69 +#: catalogue/templates/catalogue/book_short.html:70 msgid "Genre" msgstr "Gatunek" -#: catalogue/templates/catalogue/book_short.html:79 +#: catalogue/templates/catalogue/book_short.html:80 msgid "Region" msgstr "Region" -#: catalogue/templates/catalogue/book_short.html:87 +#: catalogue/templates/catalogue/book_short.html:88 msgid "Language" msgstr "Język" -#: catalogue/templates/catalogue/book_short.html:112 +#: catalogue/templates/catalogue/book_short.html:113 msgid "Read online" msgstr "Czytaj online" -#: catalogue/templates/catalogue/book_short.html:115 +#: catalogue/templates/catalogue/book_short.html:116 msgid "" "Cena książki w druku cyfrowym jest zależna od liczby stron.
Przed zakupem " "upewnij się, że cena druku na żądanie jest dla Ciebie odpowiednia." @@ -523,19 +523,19 @@ msgid "" "bezpłatnie." msgstr "" -#: catalogue/templates/catalogue/book_short.html:115 +#: catalogue/templates/catalogue/book_short.html:116 msgid "Print on demand –" msgstr "Druk na żądanie z" -#: catalogue/templates/catalogue/book_short.html:121 +#: catalogue/templates/catalogue/book_short.html:122 msgid "Download an ebook" msgstr "Pobierz ebook" -#: catalogue/templates/catalogue/book_short.html:140 +#: catalogue/templates/catalogue/book_short.html:141 msgid "Download audiobook" msgstr "Pobierz audiobook" -#: catalogue/templates/catalogue/book_short.html:152 +#: catalogue/templates/catalogue/book_short.html:153 msgid "For now this work is only available for our subscribers." msgstr "Jak na razie ten utwór jest dostępny wyłącznie dla naszych Przyjaciół." @@ -593,26 +593,28 @@ msgstr "Katalog" msgid "All works" msgstr "Wszystkie utwory" -#: catalogue/templates/catalogue/catalogue.html:15 +#: catalogue/templates/catalogue/catalogue.html:17 msgid "Download the catalogue in PDF format." msgstr "Pobierz katalog w formacie PDF." -#: catalogue/templates/catalogue/catalogue.html:19 +#: catalogue/templates/catalogue/catalogue.html:21 #: catalogue/templates/catalogue/tag_list_split.html:4 #: catalogue/templates/catalogue/tagged_object_list.html:5 +#: catalogue/views.py:186 msgid "Literature" msgstr "Literatura" -#: catalogue/templates/catalogue/catalogue.html:22 +#: catalogue/templates/catalogue/catalogue.html:24 #: catalogue/templates/catalogue/collections.html:5 #: catalogue/templates/catalogue/collections.html:10 msgid "Collections" msgstr "Kolekcje" -#: catalogue/templates/catalogue/catalogue.html:25 +#: catalogue/templates/catalogue/catalogue.html:27 #: catalogue/templates/catalogue/search_multiple_hits.html:117 #: catalogue/templates/catalogue/tag_list_split.html:9 #: catalogue/templates/catalogue/tagged_object_list.html:5 +#: catalogue/views.py:227 msgid "Art" msgstr "Sztuka" @@ -620,12 +622,12 @@ msgstr "Sztuka" msgid "All collections" msgstr "Wszystkie kolekcje" -#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:448 +#: catalogue/templates/catalogue/custom_pdf_form.html:5 catalogue/views.py:678 msgid "Download custom PDF" msgstr "Stwórz własny PDF" #: catalogue/templates/catalogue/custom_pdf_form.html:12 -#: catalogue/templates/catalogue/custom_pdf_form.html:22 catalogue/views.py:449 +#: catalogue/templates/catalogue/custom_pdf_form.html:22 catalogue/views.py:679 msgid "Download" msgstr "Pobierz" @@ -835,6 +837,7 @@ msgid "See full category" msgstr "Zobacz całą kategorię" #: catalogue/templates/catalogue/tagged_object_list.html:5 +#: catalogue/views.py:250 msgid "Audiobooks" msgstr "Audiobooki" @@ -890,7 +893,7 @@ msgstr "Ładowanie" msgid "vulgar language" msgstr "wulgaryzmy" -#: catalogue/views.py:399 +#: catalogue/views.py:629 #, python-format msgid "" "An error occurred: %(exception)s\n" @@ -901,11 +904,11 @@ msgstr "" "\n" "%(tb)s" -#: catalogue/views.py:404 +#: catalogue/views.py:634 msgid "Book imported successfully" msgstr "Książka zaimportowana" -#: catalogue/views.py:405 +#: catalogue/views.py:635 #, python-format msgid "Error importing file: %r" msgstr "Błąd podczas importowania pliku: %r" diff --git a/src/catalogue/views.py b/src/catalogue/views.py index d563b68a6..0bca7d814 100644 --- a/src/catalogue/views.py +++ b/src/catalogue/views.py @@ -567,8 +567,6 @@ def book_detail(request, slug): 'club_form': ScheduleForm() if book.preview else None, 'club': Club.objects.first() if book.preview else None, 'donation_form': DonationStep1Form(), - - 'EXPERIMENTS_SWITCHABLE_layout': True, }) diff --git a/src/club/locale/pl/LC_MESSAGES/django.mo b/src/club/locale/pl/LC_MESSAGES/django.mo index 18559c6ca..0d2439052 100644 Binary files a/src/club/locale/pl/LC_MESSAGES/django.mo and b/src/club/locale/pl/LC_MESSAGES/django.mo differ diff --git a/src/club/locale/pl/LC_MESSAGES/django.po b/src/club/locale/pl/LC_MESSAGES/django.po index ba66521e8..c1f8a21b0 100644 --- a/src/club/locale/pl/LC_MESSAGES/django.po +++ b/src/club/locale/pl/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2022-04-15 16:32+0200\n" +"PO-Revision-Date: 2023-06-13 23:33+0200\n" "Last-Translator: \n" "Language-Team: \n" "Language: pl\n" @@ -17,7 +17,7 @@ msgstr "" "Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " "(n%100<12 || n%100>=14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 && " "n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" -"X-Generator: Poedit 3.0\n" +"X-Generator: Poedit 3.0.1\n" #: club/admin.py:60 msgid "payment complete" @@ -28,10 +28,8 @@ msgid "schedule expired" msgstr "harmonogram przedawniony" #: club/admin.py:84 -#, fuzzy -#| msgid "source" msgid "Source" -msgstr "źródło" +msgstr "Źródło" #: club/apps.py:10 msgid "Club" @@ -86,111 +84,111 @@ msgstr "towarzystwo" msgid "clubs" msgstr "towarzystwa" -#: club/models.py:112 +#: club/models.py:117 msgid "key" msgstr "klucz" -#: club/models.py:113 +#: club/models.py:118 msgid "email" msgstr "email" -#: club/models.py:114 club/models.py:270 +#: club/models.py:119 club/models.py:275 msgid "membership" msgstr "członkostwo" -#: club/models.py:115 +#: club/models.py:120 msgid "amount" msgstr "kwota" -#: club/models.py:116 +#: club/models.py:121 msgid "method" msgstr "metoda płatności" -#: club/models.py:119 club/templates/club/payment_form.html:25 +#: club/models.py:124 club/templates/club/payment_form.html:25 msgid "monthly" msgstr "miesięcznie" -#: club/models.py:120 +#: club/models.py:125 msgid "yearly" msgstr "rocznie" -#: club/models.py:122 +#: club/models.py:127 msgid "source" msgstr "źródło" -#: club/models.py:124 +#: club/models.py:129 msgid "cancelled" msgstr "anulowany" -#: club/models.py:125 +#: club/models.py:130 msgid "payed at" msgstr "opłacona" -#: club/models.py:126 +#: club/models.py:131 msgid "started at" msgstr "start" -#: club/models.py:127 +#: club/models.py:132 msgid "expires_at" msgstr "wygasa" -#: club/models.py:141 +#: club/models.py:146 msgid "schedule" msgstr "harmonogram" -#: club/models.py:142 +#: club/models.py:147 msgid "schedules" msgstr "harmonogramy" -#: club/models.py:262 +#: club/models.py:267 msgid "user" msgstr "użytkownik" -#: club/models.py:263 +#: club/models.py:268 msgid "created at" msgstr "utworzone" -#: club/models.py:264 club/models.py:325 +#: club/models.py:269 club/models.py:330 msgid "name" msgstr "nazwisko" -#: club/models.py:265 +#: club/models.py:270 msgid "manual" msgstr "ustawiony ręcznie" -#: club/models.py:266 +#: club/models.py:271 msgid "notes" msgstr "notatki" -#: club/models.py:267 +#: club/models.py:272 msgid "updated at" msgstr "aktualizacja" -#: club/models.py:271 +#: club/models.py:276 msgid "memberships" msgstr "członkostwa" -#: club/models.py:308 +#: club/models.py:313 msgid "days before" msgstr "dni przed" -#: club/models.py:309 +#: club/models.py:314 msgid "subject" msgstr "temat" -#: club/models.py:310 club/payu/models.py:157 +#: club/models.py:315 club/payu/models.py:157 msgid "body" msgstr "treść" -#: club/models.py:313 +#: club/models.py:318 msgid "reminder email" msgstr "email z przypomnieniem" -#: club/models.py:314 +#: club/models.py:319 msgid "reminder emails" msgstr "emaile z przypomnieniem" -#: club/models.py:319 +#: club/models.py:324 #, python-format msgid "a day before expiration" msgid_plural "%d days before expiration" @@ -199,7 +197,7 @@ msgstr[1] "%d dni przed wygaśnięciem" msgstr[2] "%d dni przed wygaśnięciem" msgstr[3] "%d dni przed wygaśnięciem" -#: club/models.py:321 +#: club/models.py:326 #, python-format msgid "a day after expiration" msgid_plural "%d days after expiration" @@ -208,19 +206,19 @@ msgstr[1] "%d dni po wygaśnięciu" msgstr[2] "%d dni po wygaśnięciu" msgstr[3] "%d dni przed wygaśnięciem" -#: club/models.py:326 +#: club/models.py:331 msgid "photo" msgstr "zdjęcie" -#: club/models.py:327 +#: club/models.py:332 msgid "text" msgstr "tekst" -#: club/models.py:330 +#: club/models.py:335 msgid "ambassador" msgstr "ambasador" -#: club/models.py:331 +#: club/models.py:336 msgid "ambassadors" msgstr "ambasadorowie" @@ -504,12 +502,7 @@ msgid "Supporting Wolne Lektury" msgstr "Wspierasz Wolne Lektury" #: club/templates/payu/rec_payment.html:19 -#, fuzzy, python-format -#| msgid "" -#| "\n" -#| " You are setting up a monthly payment in the amount of %(amount)s " -#| "PLN. Thank you!\n" -#| " " +#, python-format msgid "" "\n" " You are setting up a monthly payment in the amount of %(amount)s " @@ -517,7 +510,8 @@ msgid "" " " msgstr "" "\n" -"Zlecasz comiesięczną płatność w wysokości %(amount)s zł. Dziękujemy!" +"Zlecasz comiesięczną płatność w wysokości %(amount)s zł. Dziękujemy!\n" +"\t" #~ msgid "proposed amounts for single payment" #~ msgstr "proponowane kwoty dla pojedynczej wpłaty" diff --git a/src/experiments/experiments.py b/src/experiments/experiments.py index d38666d74..8cd278594 100644 --- a/src/experiments/experiments.py +++ b/src/experiments/experiments.py @@ -8,6 +8,7 @@ class NewLayout(Experiment): slug = 'layout' name = 'Nowy layout strony' size = settings.EXPERIMENTS_LAYOUT + switchable = False class Sowka(Experiment): diff --git a/src/experiments/locale/pl/LC_MESSAGES/django.mo b/src/experiments/locale/pl/LC_MESSAGES/django.mo new file mode 100644 index 000000000..8d5444a1f Binary files /dev/null and b/src/experiments/locale/pl/LC_MESSAGES/django.mo differ diff --git a/src/experiments/locale/pl/LC_MESSAGES/django.po b/src/experiments/locale/pl/LC_MESSAGES/django.po new file mode 100644 index 000000000..c81c28aad --- /dev/null +++ b/src/experiments/locale/pl/LC_MESSAGES/django.po @@ -0,0 +1,41 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2023-06-13 23:31+0200\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: pl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=4; plural=(n==1 ? 0 : (n%10>=2 && n%10<=4) && " +"(n%100<12 || n%100>14) ? 1 : n!=1 && (n%10>=0 && n%10<=1) || (n%10>=5 " +"&& n%10<=9) || (n%100>=12 && n%100<=14) ? 2 : 3);\n" +"X-Generator: Poedit 3.0.1\n" + +#: experiments/templates/experiments/main_switch.html:5 +#: experiments/templates/experiments/main_switch.html:14 +msgid "Current experiments" +msgstr "Aktualne eksperymenty" + +#: experiments/templates/experiments/main_switch.html:28 +msgid "off" +msgstr "wyłączony" + +#: experiments/templates/experiments/main_switch.html:29 +msgid "on" +msgstr "włączony" + +#: experiments/templates/experiments/main_switch.html:38 +msgid "There are currently no experiments available." +msgstr "Aktualnie nie są dostępne żadne eksperymenty." + +#: experiments/templates/experiments/main_switch.html:46 +msgid "Image" +msgstr "Obraz" diff --git a/src/experiments/templates/experiments/main_switch.html b/src/experiments/templates/experiments/main_switch.html index 7638e1f76..77c29f353 100644 --- a/src/experiments/templates/experiments/main_switch.html +++ b/src/experiments/templates/experiments/main_switch.html @@ -1,52 +1,51 @@ {% extends request.EXPERIMENTS.layout.value|yesno:"2022/base.html,base/base.html" %} +{% load static i18n %} {% block breadcrumbs %} - Eksperymenty + {% translate "Current experiments" %} {% endblock %} {% block main %} -{% block body %} - - - {% for exp in request.EXPERIMENTS.values %} - {% if exp.switchable or request.user.is_staff %} -
- - {{ exp.name }} - - - + {% block body %} +
+
+ +
+

{% translate "Current experiments" %}

+
+
+
+ {% for exp in experiments %} +
+ + {{ exp.name }} + +
+ + +
+
+ + + +
+
+
+
+ {% empty %} +
+
+ {% translate 'There are currently no experiments available.' %} +
+
+ {% endfor %} +
- {% endif %} - {% endfor %} -{% endblock %} -{% block extrabody %} - - -{% endblock %} {% endblock %} diff --git a/src/experiments/templatetags/experiments.py b/src/experiments/templatetags/experiments.py deleted file mode 100644 index f491fb33b..000000000 --- a/src/experiments/templatetags/experiments.py +++ /dev/null @@ -1,22 +0,0 @@ -from django.conf import settings -from django.template import Library - - -register = Library() - - -@register.inclusion_tag('experiments/switch.html', takes_context=True) -def experiments_switcher(context): - tests = [] - explicit = False - for exp in settings.EXPERIMENTS: - currval = context['request'].EXPERIMENTS.get(exp['slug']) - if exp.get('switchable') or context.get('EXPERIMENTS_SWITCHABLE_' + test['slug']): - tests.append((exp, currval)) - for cohort in exp.get('cohorts'): - if cohort.get('explicit') and cohort.get('value') == currval: - explicit = True - return { - 'tests': tests, - 'explicit': explicit, - } diff --git a/src/experiments/views.py b/src/experiments/views.py index 001b32a7f..50c6f1e94 100644 --- a/src/experiments/views.py +++ b/src/experiments/views.py @@ -3,3 +3,11 @@ from django.views.generic import TemplateView class MainSwitchView(TemplateView): template_name = 'experiments/main_switch.html' + + def get_context_data(self): + return { + 'experiments': [ + e for e in self.request.EXPERIMENTS.values() + if e.switchable or self.request.user.is_staff + ] + } diff --git a/src/pdcounter/locale/pl/LC_MESSAGES/django.po b/src/pdcounter/locale/pl/LC_MESSAGES/django.po index e3c9de2e9..435ca71be 100644 --- a/src/pdcounter/locale/pl/LC_MESSAGES/django.po +++ b/src/pdcounter/locale/pl/LC_MESSAGES/django.po @@ -17,51 +17,51 @@ msgstr "" "X-Translated-Using: django-rosetta 0.5.6\n" "X-Generator: Poedit 1.5.4\n" -#: pdcounter/models.py:13 +#: pdcounter/models.py:15 msgid "name" msgstr "nazwa" -#: pdcounter/models.py:14 pdcounter/models.py:64 +#: pdcounter/models.py:16 pdcounter/models.py:78 msgid "slug" msgstr "slug" -#: pdcounter/models.py:15 +#: pdcounter/models.py:17 msgid "sort key" msgstr "klucz sortowania" -#: pdcounter/models.py:16 pdcounter/models.py:41 +#: pdcounter/models.py:18 pdcounter/models.py:43 msgid "description" msgstr "opis" -#: pdcounter/models.py:17 +#: pdcounter/models.py:19 msgid "year of death" msgstr "rok śmierci" -#: pdcounter/models.py:23 pdcounter/models.py:62 +#: pdcounter/models.py:25 pdcounter/models.py:76 msgid "author" msgstr "autor" -#: pdcounter/models.py:24 +#: pdcounter/models.py:26 msgid "authors" msgstr "autorzy" -#: pdcounter/models.py:61 +#: pdcounter/models.py:75 msgid "title" msgstr "tytuł" -#: pdcounter/models.py:63 +#: pdcounter/models.py:77 msgid "goes to public domain" msgstr "trafia do domeny publicznej" -#: pdcounter/models.py:65 +#: pdcounter/models.py:79 msgid "translator" msgstr "tłumacz" -#: pdcounter/models.py:69 +#: pdcounter/models.py:83 msgid "book stub" msgstr "zapowiedź książki" -#: pdcounter/models.py:70 +#: pdcounter/models.py:84 msgid "book stubs" msgstr "zapowiedzi książek" diff --git a/src/search/index.py b/src/search/index.py index 22c9a02ae..4606f57db 100644 --- a/src/search/index.py +++ b/src/search/index.py @@ -9,7 +9,6 @@ import os import re from django.conf import settings from librarian import dcparser -import librarian.meta.types.date import librarian.meta.types.person import librarian.meta.types.text from librarian.parser import WLDocument @@ -350,9 +349,6 @@ class Index(SolrIndex): else: persons = ', '.join(map(str, p)) fields[field.name] = persons - elif issubclass(type_indicator, librarian.meta.types.date.DateValue): - dt = getattr(book_info, field.name) - fields[field.name] = dt # get published date pd = None diff --git a/src/search/locale/pl/LC_MESSAGES/django.po b/src/search/locale/pl/LC_MESSAGES/django.po index cb091bdb6..7ea85d049 100644 --- a/src/search/locale/pl/LC_MESSAGES/django.po +++ b/src/search/locale/pl/LC_MESSAGES/django.po @@ -18,12 +18,12 @@ msgstr "" "|| n%100>=20) ? 1 : 2);\n" "X-Generator: Poedit 2.3\n" -#: search/forms.py:14 search/templates/newsearch/search.html:16 +#: search/forms.py:18 search/templates/newsearch/search.html:16 #: search/templates/search_/search.html:7 msgid "Search" msgstr "Szukaj" -#: search/forms.py:24 +#: search/forms.py:28 msgid "title, author, epoch, kind, genre, phrase" msgstr "tytuł, autor, epoka, rodzaj, gatunek, cytat" diff --git a/src/wolnelektury/static/2021/scripts/main.js b/src/wolnelektury/static/2021/scripts/main.js index 3bbb38d55..696a5fb00 100644 --- a/src/wolnelektury/static/2021/scripts/main.js +++ b/src/wolnelektury/static/2021/scripts/main.js @@ -332,34 +332,6 @@ }); })(); -//Zmieniamy się popup -(function() { - let $change = $('.l-change-pop'); - function change() { - if(localStorage.getItem('change') === null) { - $change.addClass('show'); - } else { - $change.remove(); - return false; - } - - $change.on('click', '.l-change-pop__close', function () { - $change.slideUp(); - localStorage.setItem('change', 'showed'); - }); - } - - if($change.length) { change(); } - - - function quit_experiment() { - document.cookie = 'EXPERIMENT_layout=off; path=/; max-age=31536000'; - window.location.reload(true); - } - $(".quit-experiment").click(quit_experiment); - -})(); - (function() { $('.l-checkout__payments__box button').on('click', function() { let container = $(this).closest('.l-checkout__payments'); @@ -549,4 +521,15 @@ $('select', $form).change(function() {$form.submit()}); $('textarea', $form).change(function() {$form.submit()}); }); + + + // experiments + $(".experiment input").on('change', function() { + let name = $(this).attr('name'); + let val = $(this).val(); + document.cookie = 'EXPERIMENT_' + name + '=' + val + '; path=/; max-age=31536000'; + window.location.reload(true); + }); + + })(); diff --git a/src/wolnelektury/static/2022/index.html b/src/wolnelektury/static/2022/index.html deleted file mode 100644 index 3eaf87c07..000000000 --- a/src/wolnelektury/static/2022/index.html +++ /dev/null @@ -1,496 +0,0 @@ - - - - - - - WolneLektury.pl - - - - - - - - - - - - - - - -
-
- -
- -
-
-
-
- -
-
- -
-
- -
-
-
-
- Henryk Sienkiewicz, Potop, Potop, tom pierwszy, tom 1, rozdział 1. Czyta Jasiek Staszczyk, reż. Jasiek Staszczyk -
-
-
- - - -
-
    -
  • 2×
  • -
  • 1.75×
  • -
  • 1.5×
  • -
  • 1.25×
  • -
  • 1×
  • -
  • 0.75×
  • -
  • 0.5×
  • -
  • 0.25×
  • -
-
-
-
-
1. Godzina pierwsza – godzina miłości
-
- Rozdziały -
    -
  • Godzina pierwsza – godzina miłości
  • -
  • Druga godzina – godzina rozpaczy
  • -
  • Trzecia godzina – godzina przestrogi
  • -
-
- - - - -
-
- - -
-
-
-
- - - -
-
-

Dofinansowano ze środków: Priorytet 4 Udostępnienie publikacji w formatach cyfrowych w ramach Narodowego Programu Rozwoju Czytelnictwa.

-
-
-
-
-
-
-

Pobieranie e-booka

-

Wybierz wersję dla siebie:

-
-
-
-
-

.pdf

-

Jeśli planujesz wydruk albo lekturę na urządzeniu mobilnym bez dodatkowych aplikacji.

-
-
- .pdf -
-
-
-
-

.epub

-

Uniwersalny format e-booków, obsługiwany przez większość czytników sprzętowych i aplikacji na urządzenia mobilne.

-
-
- .epub -
-
-
-
-

.mobi

-

Natywny format dla czytnika Amazon Kindle.

-
-
- .mobi -
-
-
-
-

synchrobook (epub3)

-

Książka elektroniczna i audiobook w jednym. Wymaga aplikacji obsługującej format (np. ..., ..., ...).

-
- -
-
-
-

inne formaty

- -
-
-
- -
-
-
-
-
-

Pobieranie audiobooka

-

Wybierz wersję dla siebie:

-
-
-
-
-

.mp3

-

Uniwersalny format, obsługiwany przez wszystkie urządzenia.

-
-
- .mp3 -
-
-
-
-

OggVorbis

-

Otwarty format plików audio, oferujący nagranie w najwyższej jakości dźwiękowej.

-
-
- .ogg -
-
-
-
-

DAISY

-

Format dla osób z dysfunkcjami czytania.

-
-
- DAISY -
-
-
-
-

synchrobook

-

Książka elektroniczna i audiobook w jednym. Wymaga aplikacji obsługującej format.

-
- -
-
- -
-
-
- -
-

Opis

-

- Pericord i Brown dokonali wspólnie wielu wynalazków. Ich umiejętności doskonale się uzupełniają: - pierwszy to geniusz twórczy, a drugi — umysł praktyczny, doskonale rozumie projekty współpracownika - i wciela je w życie. -

-

- Wspólnicy pracują nad kolejnym pomysłem — maszyną latającą. Prototyp jest już prawie gotów i niebawem - można będzie go przetestować. Na ostatnich etapach pracy między wspólnikami pojawia się kwestia sporna: - komu należy się patent? Wynalazcy — autorowi projektu czy mechanikowi — temu, który skonstruował maszynę? -

-

- Trup w obłokach czyli historia maszyny latającej w powietrzu (oryg. The Great Brown-Pericord Motor) - to opowiadanie z dreszczykiem, pióra Arthura Conana Doyle'a, autora Przygód Sherlocka Holmesa. -

-

Spis treści:

-
    -
  • Dziady. Poema
  • -
  • Przedmowa
  • -
  • Upiór
  • -
  • Dziady, część II
  • -
  • Dziady, część IV
  • -
  • Dziady, część III
  • -
  • Dziady. Widowisko, część I
  • -
-
- -
-
-
-

Ta książka jest dostępna dla tysięcy dzieciaków dzięki darowiznom od osób takich jak Ty!

- Dorzuć się! -
-
- Dorzuć się! -
-
-
-
-
-
-
-

O autorze

-
-
- Adam Mickiewicz -
- Źródło: Wikipedia -
-
-
-

Adam Mickiewicz

-
-

- Ur. 24 grudnia 1798 r. w Zaosiu koło Nowogródka
- Zm. 26 listopada 1855 r. w Konstantynopolu (dziś: Stambuł) -

-
- -
-
-
-
-
-
-
- - Cicho wszędzie, głucho wszędzie, co to będzie co to będzie? Kto nie doznał goryczy ni razu ten - nie dozna słodyczy w niebie. Bo kto nie był człowiekiem ni razu temu człowiek nie pomoże. - -

Adam Mickiewicz – Dziady, część I

-
-
- - Cicho wszędzie, głucho wszędzie, co to będzie co to będzie? Kto nie doznał goryczy ni razu ten - nie dozna słodyczy w niebie. Bo kto nie był człowiekiem ni razu temu człowiek nie pomoże. - -

Adam Mickiewicz – Dziady, część II

-
-
- - Cicho wszędzie, głucho wszędzie, co to będzie co to będzie? Kto nie doznał goryczy ni razu ten - nie dozna słodyczy w niebie. Bo kto nie był człowiekiem ni razu temu człowiek nie pomoże. - -

Adam Mickiewicz – Dziady, część III

-
-
-
-
-
-
-
- -
-
- -
- -
- - - - - - - diff --git a/src/wolnelektury/static/2022/more.scss b/src/wolnelektury/static/2022/more.scss index 65516666f..6aa6caa3e 100644 --- a/src/wolnelektury/static/2022/more.scss +++ b/src/wolnelektury/static/2022/more.scss @@ -230,10 +230,33 @@ form { .experiment { display: flex; + margin: 1em 16px; + font-size: 1.5em; align-items: center; + flex-direction: column; + margin-top: 2em; + @include rwd($break-flow) { + flex-direction: row; + align-items: flex-end; + } + + > span, > div { + text-align: center; + @include rwd($break-flow) { + width: 50%; + } + } } +.legend { + margin: 1em 16px; + font-size: .7em; + color: #777; + text-align:right; + font-style:italic; +} + .funding-promo-bar { margin: 18px auto; diff --git a/src/wolnelektury/static/2022/scripts/main.js b/src/wolnelektury/static/2022/scripts/main.js deleted file mode 100644 index de8b661bd..000000000 --- a/src/wolnelektury/static/2022/scripts/main.js +++ /dev/null @@ -1,140 +0,0 @@ -// JS Menu -(function () { - let button = $('.js-menu'); - let menu = $('.l-navigation__menu'); - let menuLinks = menu.find('a'); - - button.on('click', function() { - if(!$(this).hasClass('is-active')) { - $(this).addClass('is-active'); - menu.addClass('is-open'); - button.find('.bar').addClass('animate'); - menuLinks.attr('tabindex', 0); - } else { - $(this).removeClass('is-active'); - menu.removeClass('is-open'); - button.find('.bar').removeClass('animate'); - menuLinks.attr('tabindex', -1); - } - }); - - $(document).keyup(function(e) { - if (e.keyCode === 27) { - button.removeClass('is-active'); - menu.removeClass('is-open'); - button.find('.bar').removeClass('animate'); - menuLinks.attr('tabindex', -1); - } - }); -})(); - -// Ebook/Audiobook Btns -(function() { - let button = $('.c-media__btn button'); - let closeButton = $('.c-media__popup__close'); - - button.on('click', function () { - let target = $(this).attr('id'); - $('[data-popup=' + target).addClass('is-open'); - }); - - closeButton.on('click', function() { - $(this).closest('.c-media__popup').removeClass('is-open'); - }); - - $(document).keyup(function(e) { - if (e.keyCode === 27) { - $('.c-media__popup').removeClass('is-open'); - } - }); -})(); - - - -// Text overlay toggler -(function () { - let overlays = $('.l-article__overlay'); - let button = $('.l-article__read-more'); - - overlays.each(function () { - let maxHeight = $(this).attr('data-max-height'); - if($(this).outerHeight() > maxHeight) { - $(this).css({'maxHeight': maxHeight+'px'}).addClass('is-active'); - } else { - $(this).next('.l-article__read-more').hide(); - } - }); - - button.on('click', function() { - let dataLabel = $(this).attr('data-label'); - let dataAction = $(this).attr('data-action'); - $(this).parent().find('.l-article__overlay').toggleClass('is-clicked'); - if($(this).text() === dataLabel) { - $(this).text(dataAction); - } else { - $(this).text(dataLabel); - } - }); -})(); - - - -// Quotes slider -(function () { - let slider = $('.l-author__quotes__slider'); - - slider.slick({ - slidesToScroll: 1, - slidesToShow: 1, - infinite: true, - dots: true, - arrows: false, - autoplay: true, - autoplaySpeed: 2500 - }); -})(); - - -//Zmieniamy się popup -(function() { - let $change = $('.l-change-pop'); - function change() { - if(localStorage.getItem('change') === null) { - $change.addClass('show'); - } - - $change.on('click', '.l-change-pop__close', function () { - $change.slideUp(); - localStorage.setItem('change', 'showed'); - - $menubtn = $('.c-hamburger').parent(); - $menubtn.removeClass('is-active'); - $('.animate', $menubtn).removeClass('animate'); - }); - - $(".c-hamburger").click(function() { - $button = $(this).parent(); - if ($button.hasClass('is-active')) { - $change.slideUp(); - localStorage.setItem('change', 'showed'); - } else { - localStorage.removeItem('change'); - $change.slideDown({ - start: function() { - $(this).css({display: "flex"}); - } - }); - } - }); - } - - if($change.length) { change(); } - - function quit_experiment() { - document.cookie = 'EXPERIMENT_layout=off; path=/; max-age=31536000'; - window.location.reload(true); - } - $(".quit-experiment").click(quit_experiment); - - -})(); diff --git a/src/wolnelektury/static/2022/styles/layout/_checkout.scss b/src/wolnelektury/static/2022/styles/layout/_checkout.scss index efbb9eb27..870da2311 100644 --- a/src/wolnelektury/static/2022/styles/layout/_checkout.scss +++ b/src/wolnelektury/static/2022/styles/layout/_checkout.scss @@ -174,6 +174,7 @@ align-items: center; justify-content: center; margin-top: 35px; + width: 100%; } .l-switch { @@ -186,7 +187,7 @@ } .l-switch label { - color: #fff; + color: #74BDC2; font-weight: 600; font-size: 18.5px; line-height: 26px; @@ -221,10 +222,23 @@ z-index: 2; } +.toggle-input-left:checked ~ .l-switch__wrapper { + .toggle-for-left { + color: #003C3C; + } + .toggle { + left: 5px; + } +} +.toggle-input-right:checked ~ .l-switch__wrapper { + .toggle-for-right { + color: #003C3C; + } + .toggle { + left: 39px; + } +} .l-switch input:checked~label:nth-of-type(1) { color: #003C3C; } -.l-switch input:checked~label:nth-of-type(2) { color: #74BDC2; } - -.l-switch input~:checked~label:nth-of-type(1) { color: #74BDC2; } .l-switch input~:checked~label:nth-of-type(2) { color: #003C3C; } .l-switch input:checked~.toggle { diff --git a/src/wolnelektury/static/2022/styles/layout/_navigation.scss b/src/wolnelektury/static/2022/styles/layout/_navigation.scss index a139ae8cd..9333766bc 100644 --- a/src/wolnelektury/static/2022/styles/layout/_navigation.scss +++ b/src/wolnelektury/static/2022/styles/layout/_navigation.scss @@ -215,19 +215,6 @@ body { } } -.l-change-pop__close { - border: 0; - background: transparent; - color: #333333; - outline: 0; - position: absolute; - right: 26px; - top: 0; - bottom: 0; - margin: auto; - cursor: pointer; -} - .l-navigation__menu { position: fixed; top: 0; left: 0; diff --git a/src/wolnelektury/static/img/experiment.jpg b/src/wolnelektury/static/img/experiment.jpg new file mode 100644 index 000000000..3a3be6e4c Binary files /dev/null and b/src/wolnelektury/static/img/experiment.jpg differ diff --git a/src/wolnelektury/static/js/base.js b/src/wolnelektury/static/js/base.js index 8f26db440..01c6d4e4b 100644 --- a/src/wolnelektury/static/js/base.js +++ b/src/wolnelektury/static/js/base.js @@ -375,6 +375,13 @@ return false; }); + // experiments + $(".experiment input").on('change', function() { + let name = $(this).attr('name'); + let val = $(this).val(); + document.cookie = 'EXPERIMENT_' + name + '=' + val + '; path=/; max-age=31536000'; + window.location.reload(true); + }); }); })(jQuery); diff --git a/src/wolnelektury/templates/2022/base.html b/src/wolnelektury/templates/2022/base.html index 087c51bd7..2cdcfd80a 100644 --- a/src/wolnelektury/templates/2022/base.html +++ b/src/wolnelektury/templates/2022/base.html @@ -50,18 +50,6 @@ {% endblock %} -
-
-

Zmieniamy się!

-

- Jeżeli to czytasz jesteś jedną z osób, której prezentujemy nowy wygląd części stron. - Będziemy bardzo! wdzięczni za Twoją opinię – możesz nam ją przesłać tutaj. - Jeżeli wolisz klasyczny wygląd - wystarczy, że klikniesz tutaj -

-
-
- - {% include '2022/footer.html' %}