jekyll-theme-pirati 8.4.4 → 8.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/footer.html +211 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8df541636615d92bbbf31aac367a5a4d87337c386507e7628bf677001d3378a5
4
- data.tar.gz: 9faafdc458624cf47235b17c969ed12cfe973aa0aeb2225c820e52e05c2d5374
3
+ metadata.gz: f1ebff15c0d14800a258356fb482ac46ec0cf3a2d871a9db7f7de2d3fd88234b
4
+ data.tar.gz: cada9b1aa242e1dc72700f8759d03fa24af4da154a36338f2517f1979e19c281
5
5
  SHA512:
6
- metadata.gz: 03bdaa94990f9716a78d1892761e71c6407d88e0c2d296ccfe406dae79b5db3f210800bf998928dc2cb2598691ab4b4085fd87bb3920440fb32dc7aa46da9411
7
- data.tar.gz: 3901498ffb9bb595f87552a5b6cc40b6652fc1a4cffb0172ffc3bd411b9fe15b2fee070dfb11ae753811e310ba118ead327d2ab52cb71d9dfa6c913b8adb4272
6
+ metadata.gz: 81ae8f56caee8ab87dc2e581525998863042c42fec861a495d5e0b75dcc2cc930109f80dfcc25734a04c9c498a337100d15f1fcc63f788df6010a13b1f3a71e3
7
+ data.tar.gz: 0fcce6bbaab20b14e6de1382702af6c8245aa35fa3440782097182461c9b4dc65b1b9ba9d8db124872e43c079b4966f1b5d125d91c2769c1186e5b739cba8bf1
@@ -96,9 +96,218 @@
96
96
  </div>
97
97
  </section>
98
98
  <section class="bg-black py-4 lg:py-12">
99
- <div class="medium-12 large-7 text-white" ><center><hr></hr>
100
- <a href="https://www.pirati.cz/o-nas/ochrana-osobnich-udaju/">Zásady zpracování osobních údajů a informace o využití cookies</a></center>
99
+
100
+ <!-- Styles -->
101
+ <link rel="stylesheet" href="https://www.piratiastarostove.cz/static/elections2021/css/styleguide.min.css">
102
+ <link rel="stylesheet" href="https://www.piratiastarostove.cz/static/elections2021/css/styles.css">
103
+ <style type="text/css">
104
+ sup {
105
+ white-space: nowrap;
106
+ }
107
+ </style>
108
+
109
+
110
+
111
+
112
+ <div class=" bg-white">
113
+ <div class="row bg-grey-700">
114
+
115
+ <div class="row">
116
+ <section id="jakpomoci" class="lg:flex">
117
+ <div class="w-full">
118
+ <div class="cta-card cta-news px-8 py-8 bg-acidgreen text-black">
119
+ <p class="font-alt text-4xl">CHCI VĚDĚT VÍCE</p>
120
+ <form method="post" action="https://www.piratiastarostove.cz/prihlaseni-k-newsletteru/">
121
+ <input type="hidden" name="csrfmiddlewaretoken" value="ZerZ0grBRC8kdub1dHvoc9ISJrA6sICWtGgF8sIOZH6hrG2k2xKu5PwqiCqKcEya">
122
+ <input type="hidden" name="return_page_id" value="408">
123
+ <input name="email" type="email" class="text-input form-field__control w-full mt-7" value="" placeholder="Zadejte email" required="">
124
+ <button class="btn btn--icon my-2 text-lg w-full cta-btn">
125
+ <div class="btn__body-wrap">
126
+ <div class="btn__body py-4 leading-4 w-full">Přihlásit se k newsletteru</div>
127
+ <div class="btn__icon px-4 bg-grey-800 border-grey-500">
128
+ <i class="ico--chevron-right"></i>
129
+ </div>
130
+ </div>
131
+ </button>
132
+ <div class="checkbox form-field__control cta-cbox h-6">
133
+ <input type="checkbox" name="confirmed" id="confirmed_bottom" required="">
134
+ <label for="confirmed_bottom" style="color: #000000"> Souhlasím se <a href="https://www.piratiastarostove.cz/zasady-ochrany-osobnich-udaju/" class="underline" target="_blank">zásadami ochrany osobních údajů</a> a zasíláním novinek</label>
135
+ </div>
136
+ </form>
137
+ </div>
138
+ </div>
139
+
140
+ <div class="w-full">
141
+ <div class="cta-card cta-help px-8 py-8 bg-lemon " id="cta-card">
142
+ <p class="font-alt text-4xl w-1">CHCI POMÁHAT</p>
143
+
144
+ <a href="https://nalodeni.pirati.cz/kampan2021/" class="btn btn--icon text-lg w-full cta-button my-2">
145
+ <div class="btn__body-wrap">
146
+ <div class="btn__body py-4 leading-4 w-full">Chci se přidat k Pirátům</div>
147
+ <div class="btn__icon px-4 bg-grey-800 border-grey-500">
148
+ <i class="ico--chevron-right"></i>
149
+ </div>
150
+ </div>
151
+ </a>
101
152
  </div>
153
+ <script>
154
+ if (typeof window.initializehelp === 'undefined') {
155
+ window.initializehelp = function() {
156
+ let state = 0;
157
+ document.querySelectorAll('.cta-help-toggler').forEach(item => {
158
+ item.addEventListener("click", event => {
159
+ helpelement = event.target.closest(".cta-help");
160
+ let elements = helpelement.querySelectorAll(".cta-animated");
161
+ let elements2 = helpelement.querySelectorAll(".cta-animated-rev");
162
+ if (state === 0) {
163
+ [].forEach.call(elements, function(el) {
164
+ el.classList.remove("collapsed");
165
+ });
166
+ [].forEach.call(elements2, function(el) {
167
+ el.classList.add("collapsed");
168
+ });
169
+ state = 1;
170
+ } else {
171
+ [].forEach.call(elements2, function(el) {
172
+ el.classList.remove("collapsed");
173
+ });
174
+ [].forEach.call(elements, function(el) {
175
+ el.classList.add("collapsed");
176
+ });
177
+ state = 0;
178
+ }
179
+ });
180
+ });
181
+ }
182
+
183
+ window.addEventListener('load', function() {
184
+ initializehelp();
185
+ });
186
+ }
187
+
188
+ function isValidPhone(phoneNumber) {
189
+ var found = phoneNumber.search(/^[+]*[(]{0,1}[0-9]{1,3}[)]{0,1}[-\s\./0-9]{7,18}$/g);
190
+ if (found > -1) {
191
+ return true;
192
+ } else {
193
+ return false;
194
+ }
195
+ }
196
+
197
+ function isValidZip(zip) {
198
+ var found = zip.search(/^(?=.*\d)[\d ]{5,6}$/g);
199
+ if (found > -1) {
200
+ return true;
201
+ } else {
202
+ return false;
203
+ }
204
+ }
205
+ window.addEventListener('DOMContentLoaded', (event) => {
206
+ var elements = document.querySelectorAll("input, select");
207
+ for (var i = 0; i < elements.length; i++) {
208
+ if (elements[i].getAttribute("type") == "email") {
209
+ elements[i].onchange = function(e) {
210
+ e.target.setCustomValidity("");
211
+ e.target.checkValidity();
212
+ };
213
+ elements[i].oninvalid = function(e) {
214
+ if (e.target.value == "")
215
+ e.target.setCustomValidity(
216
+ "E-mail je povinná položka"
217
+ );
218
+ else
219
+ e.target.setCustomValidity(
220
+ "Neplatný e-mail"
221
+ );
222
+ }
223
+ } else if (elements[i].getAttribute("name") == "tel") {
224
+ elements[i].onchange = function(e) {
225
+ if (isValidPhone(e.target.value)) {
226
+ e.target.setCustomValidity("");
227
+ } else {
228
+ e.target.setCustomValidity("Telefonní číslo obsahuje chybu");
229
+ }
230
+ e.target.checkValidity();
231
+ };
232
+ elements[i].oninput = function(e) {
233
+ if (isValidPhone(e.target.value)) {
234
+ e.target.setCustomValidity("");
235
+ } else {
236
+ e.target.setCustomValidity("Telefonní číslo obsahuje chybu");
237
+ }
238
+ e.target.checkValidity();
239
+ };
240
+ elements[i].oninvalid = function(e) {
241
+ if (e.target.value == "")
242
+ e.target.setCustomValidity(
243
+ "Telefon je povinná položka"
244
+ );
245
+ };
246
+ } else if (elements[i].getAttribute("name") == "psc") {
247
+ elements[i].onchange = function(e) {
248
+ if (isValidZip(e.target.value)) {
249
+ e.target.setCustomValidity("");
250
+ } else {
251
+ e.target.setCustomValidity("PSČ číslo obsahuje chybu");
252
+ }
253
+ e.target.checkValidity();
254
+ };
255
+ elements[i].oninput = function(e) {
256
+ if (isValidZip(e.target.value)) {
257
+ e.target.setCustomValidity("");
258
+ } else {
259
+ e.target.setCustomValidity("PSČ číslo obsahuje chybu");
260
+ }
261
+ e.target.checkValidity();
262
+ };
263
+ elements[i].oninvalid = function(e) {
264
+ if (e.target.value == "")
265
+ e.target.setCustomValidity(
266
+ "PSČ je povinná položka"
267
+ );
268
+ };
269
+ } else {
270
+ elements[i].oninvalid = function(e) {
271
+ e.target.setCustomValidity("");
272
+ if (!e.target.validity.valid) {
273
+ e.target.setCustomValidity("Toto pole je povinné");
274
+ }
275
+ };
276
+ elements[i].onchange = function(e) {
277
+ e.target.setCustomValidity("");
278
+ };
279
+ }
280
+ }
281
+ });
282
+ </script>
283
+ </div>
284
+
285
+ <div class="w-full">
286
+ <div class="cta-card cta-support px-8 py-8 bg-white">
287
+ <p class="font-alt text-4xl w-1 text-black">CHCI PODPOŘIT</p>
288
+ <a href="https://dary.pirati.cz/projekty-kampane/" class="btn btn--icon text-lg w-full cta-btn my-2">
289
+ <div class="btn__body-wrap">
290
+ <div class="btn__body py-4 leading-4 w-full">Chci darovat Pirátům</div>
291
+ <div class="btn__icon px-4 bg-grey-800 border-grey-500">
292
+ <i class="ico--chevron-right"></i>
293
+ </div>
294
+ </div>
295
+ </a>
296
+ </div>
297
+ </div>
298
+ </section>
299
+ </div>
300
+
301
+ </div>
302
+ </div>
303
+ <div class="row">
304
+ <section class="bg-black py-4 lg:py-12">
305
+ <div class="medium-12 large-7 text-white" ><center>
306
+ <a href="https://www.pirati.cz/o-nas/ochrana-osobnich-udaju/">Zásady zpracování osobních údajů a informace o využití cookies</a></center>
307
+ </div>
308
+ </section>
309
+ </div>
310
+
102
311
  </section>
103
312
  </div>
104
313
  </ui-app>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-pirati
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.4.4
4
+ version: 8.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jitka Novotná
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-10-01 00:00:00.000000000 Z
12
+ date: 2021-10-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll