jekyll-theme-pirati 8.4.6 → 8.4.7

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 +1 -186
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 58b1421700baf351c17b8533be343248a9ed2bfe571f380a504fcc22ce83debf
4
- data.tar.gz: db888769563c94e61390eed42962742847f05fadef52b461693e95c0071aa568
3
+ metadata.gz: 6b453be12ec6f2bbc1a039c10169b3cffb462ba482a33ad229eb17af2a6a7153
4
+ data.tar.gz: 7f975c085b9da925824ca86a9bb9ae283ca284a94dd888b47229b7ab04fb756c
5
5
  SHA512:
6
- metadata.gz: aa7b875ca81fd00159ed8793cd8042db185452a7ad1ffd482d31a2cd751df3e7f44b862854f3da645e089dd22b0d8d2e325d935f3f945aebf05def150c0718a7
7
- data.tar.gz: 792216cf3091ec1dfebea817b42347ed24dbb345643f219573a8b770c56fa3501296d77aa6a0efbb300e88aae4a093bae7a94beb4155d00c899cb812d5d05ee5
6
+ metadata.gz: 79eaff883e775d3679e2fa98738748b3d83e4747e535c7ad7678c0cd1a61ac91b2a8681e5cacd857fce666fbad9f47c257c55f8785caf7524f0e69c44ca03278
7
+ data.tar.gz: ce0e256dd88fcae5348f515e5376cc984349c8cc2cc9e3de1e0fdbc17f9e54c9f2609850340293f7db32c98c38bd27d930f063f2eddf7502b201eb60dd2396ed
@@ -126,193 +126,8 @@ sup {
126
126
 
127
127
 
128
128
 
129
- <div class=" bg-white">
130
-
131
- <div class="row">
132
- <section id="jakpomoci" class="lg:flex">
133
- <div class="w-full">
134
- <div class="cta-card cta-news px-8 py-8 bg-acidgreen text-black">
135
- <p class="font-alt text-4xl">CHCI VĚDĚT VÍCE</p>
136
- <form method="post" action="https://www.piratiastarostove.cz/prihlaseni-k-newsletteru/">
137
- <input type="hidden" name="csrfmiddlewaretoken" value="ZerZ0grBRC8kdub1dHvoc9ISJrA6sICWtGgF8sIOZH6hrG2k2xKu5PwqiCqKcEya">
138
- <input type="hidden" name="return_page_id" value="408">
139
- <input name="email" type="email" class="text-input form-field__control w-full mt-7" value="" placeholder="Zadejte email" required="">
140
- <button class="btn btn--icon my-2 text-lg w-full cta-btn">
141
- <div class="btn__body-wrap">
142
- <div class="btn__body py-4 leading-4 w-full">Přihlásit se k newsletteru</div>
143
- <div class="btn__icon px-4 bg-grey-800 border-grey-500">
144
- <i class="ico--chevron-right"></i>
145
- </div>
146
- </div>
147
- </button>
148
- <div class="checkbox form-field__control cta-cbox h-6">
149
- <input type="checkbox" name="confirmed" id="confirmed_bottom" required="">
150
- <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>
151
- </div>
152
- </form>
153
- </div>
154
- </div>
155
-
156
- <div class="w-full">
157
- <div class="cta-card cta-help px-8 py-8 bg-lemon " id="cta-card">
158
- <p class="font-alt text-4xl w-1">CHCI POMÁHAT</p>
159
-
160
- <a href="https://nalodeni.pirati.cz/kampan2021/" class="btn btn--icon text-lg w-full cta-button my-2">
161
- <div class="btn__body-wrap">
162
- <div class="btn__body py-4 leading-4 w-full">Chci pomáhat v kampani</div>
163
- <div class="btn__icon px-4 bg-grey-800 border-grey-500">
164
- <i class="ico--chevron-right"></i>
165
- </div>
166
- </div>
167
- </a>
168
- </div>
169
- <script>
170
- if (typeof window.initializehelp === 'undefined') {
171
- window.initializehelp = function() {
172
- let state = 0;
173
- document.querySelectorAll('.cta-help-toggler').forEach(item => {
174
- item.addEventListener("click", event => {
175
- helpelement = event.target.closest(".cta-help");
176
- let elements = helpelement.querySelectorAll(".cta-animated");
177
- let elements2 = helpelement.querySelectorAll(".cta-animated-rev");
178
- if (state === 0) {
179
- [].forEach.call(elements, function(el) {
180
- el.classList.remove("collapsed");
181
- });
182
- [].forEach.call(elements2, function(el) {
183
- el.classList.add("collapsed");
184
- });
185
- state = 1;
186
- } else {
187
- [].forEach.call(elements2, function(el) {
188
- el.classList.remove("collapsed");
189
- });
190
- [].forEach.call(elements, function(el) {
191
- el.classList.add("collapsed");
192
- });
193
- state = 0;
194
- }
195
- });
196
- });
197
- }
198
-
199
- window.addEventListener('load', function() {
200
- initializehelp();
201
- });
202
- }
129
+ <div class=" bg-white ">
203
130
 
204
- function isValidPhone(phoneNumber) {
205
- var found = phoneNumber.search(/^[+]*[(]{0,1}[0-9]{1,3}[)]{0,1}[-\s\./0-9]{7,18}$/g);
206
- if (found > -1) {
207
- return true;
208
- } else {
209
- return false;
210
- }
211
- }
212
-
213
- function isValidZip(zip) {
214
- var found = zip.search(/^(?=.*\d)[\d ]{5,6}$/g);
215
- if (found > -1) {
216
- return true;
217
- } else {
218
- return false;
219
- }
220
- }
221
- window.addEventListener('DOMContentLoaded', (event) => {
222
- var elements = document.querySelectorAll("input, select");
223
- for (var i = 0; i < elements.length; i++) {
224
- if (elements[i].getAttribute("type") == "email") {
225
- elements[i].onchange = function(e) {
226
- e.target.setCustomValidity("");
227
- e.target.checkValidity();
228
- };
229
- elements[i].oninvalid = function(e) {
230
- if (e.target.value == "")
231
- e.target.setCustomValidity(
232
- "E-mail je povinná položka"
233
- );
234
- else
235
- e.target.setCustomValidity(
236
- "Neplatný e-mail"
237
- );
238
- }
239
- } else if (elements[i].getAttribute("name") == "tel") {
240
- elements[i].onchange = function(e) {
241
- if (isValidPhone(e.target.value)) {
242
- e.target.setCustomValidity("");
243
- } else {
244
- e.target.setCustomValidity("Telefonní číslo obsahuje chybu");
245
- }
246
- e.target.checkValidity();
247
- };
248
- elements[i].oninput = function(e) {
249
- if (isValidPhone(e.target.value)) {
250
- e.target.setCustomValidity("");
251
- } else {
252
- e.target.setCustomValidity("Telefonní číslo obsahuje chybu");
253
- }
254
- e.target.checkValidity();
255
- };
256
- elements[i].oninvalid = function(e) {
257
- if (e.target.value == "")
258
- e.target.setCustomValidity(
259
- "Telefon je povinná položka"
260
- );
261
- };
262
- } else if (elements[i].getAttribute("name") == "psc") {
263
- elements[i].onchange = function(e) {
264
- if (isValidZip(e.target.value)) {
265
- e.target.setCustomValidity("");
266
- } else {
267
- e.target.setCustomValidity("PSČ číslo obsahuje chybu");
268
- }
269
- e.target.checkValidity();
270
- };
271
- elements[i].oninput = function(e) {
272
- if (isValidZip(e.target.value)) {
273
- e.target.setCustomValidity("");
274
- } else {
275
- e.target.setCustomValidity("PSČ číslo obsahuje chybu");
276
- }
277
- e.target.checkValidity();
278
- };
279
- elements[i].oninvalid = function(e) {
280
- if (e.target.value == "")
281
- e.target.setCustomValidity(
282
- "PSČ je povinná položka"
283
- );
284
- };
285
- } else {
286
- elements[i].oninvalid = function(e) {
287
- e.target.setCustomValidity("");
288
- if (!e.target.validity.valid) {
289
- e.target.setCustomValidity("Toto pole je povinné");
290
- }
291
- };
292
- elements[i].onchange = function(e) {
293
- e.target.setCustomValidity("");
294
- };
295
- }
296
- }
297
- });
298
- </script>
299
- </div>
300
-
301
- <div class="w-full">
302
- <div class="cta-card cta-support px-8 py-8 bg-white">
303
- <p class="font-alt text-4xl w-1">CHCI PODPOŘIT</p>
304
- <a href="https://dary.pirati.cz/projekty-kampane/piratiastarostove/" class="btn btn--icon text-lg w-full cta-btn my-2">
305
- <div class="btn__body-wrap">
306
- <div class="btn__body py-4 leading-4 w-full">Chci darovat na kampaň</div>
307
- <div class="btn__icon px-4 bg-grey-800 border-grey-500">
308
- <i class="ico--chevron-right"></i>
309
- </div>
310
- </div>
311
- </a>
312
- </div>
313
- </div>
314
- </section>
315
- </div>
316
131
  <div class="row">
317
132
  <section class="bg-black py-4 lg:py-12">
318
133
  <div class="medium-12 large-7 text-white" ><center>
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.6
4
+ version: 8.4.7
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-15 00:00:00.000000000 Z
12
+ date: 2021-12-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jekyll