intia-theme 0.1.33 → 0.1.34

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d91479c69748c51cbcca036645f04192dc05d45603d08a2336dd069d35183eaa
4
- data.tar.gz: 562743e6f282501a33959ac6000121fb3f160e9fbc81dae2f1f148289f9c6c45
3
+ metadata.gz: 7d8b0195d80fb69a9a2177a7769f02349333680f98daa8f8c504089157b5f6ca
4
+ data.tar.gz: 72c76f141f9836ee8d9e59c9d31d827b08eb9a501a602d7f85cc65c2901f6dbf
5
5
  SHA512:
6
- metadata.gz: bdfd41fb22ddaf7f2f6d3b13c186b872961835b7b73a93b47c87b01b11adfef6ba5c688781a093e947c0cff083a3f047e58ea59cbedbe5b3d91db3d94d740cf8
7
- data.tar.gz: 4877edc1e207f096f9df822d613a25d5b1ce6e0a1b9932e563f707f7e8a626cbddcb5ad09c1703370b8cee2cc63244a87ef020ee978dec081452a08f06db6108
6
+ metadata.gz: b6625d581bc2505c47b9dd3dbfdaf61c91d6d3d1b8ecf4e1257c10d7b6d2d4c5d02c0398ab5b153822a7660f7e237688a8fdf73a2147eeaeb7e631c9734fd8a4
7
+ data.tar.gz: da66ba79347f070acd22926429bd0528cb9997c2b6ac62fe77d60ec60aa0d1730d9f4b7ce82c1953ee3e66faec8ee18f42d67f507fe610b4a5d18dde10378c30
@@ -2,7 +2,7 @@
2
2
  <div class="container contact">
3
3
  <h1>{{ site.data.contact.title }}</h1>
4
4
  {{ site.data.contact.introduction }}
5
- <form action="{{ site.data.contact.action }}" class="columns">
5
+ <form id="form" action="{{ site.data.contact.action }}" data-botpoison-public-key="{{ site.data.contact.botpoison_key }}" class="columns">
6
6
  <div class="column is-6">
7
7
  <div class="field">
8
8
  <label class="label">Vor- und Nachname</label>
@@ -53,10 +53,23 @@
53
53
 
54
54
  <div class="column contact-agree">
55
55
  <label for="agree">{{ site.data.contact.checkbox }}</label><br><br>
56
- <button class="button is-rounded is-dark" type="submit">Abschicken</button>
56
+ <button id="button" class="button is-rounded is-dark" type="submit">Abschicken</button>
57
57
  </div>
58
58
  </div>
59
59
  </div>
60
60
  </form>
61
+ <script>
62
+ var formElement = document.getElementById("form");
63
+ var buttonElement = document.getElementById("button");
64
+ formElement.addEventListener("botpoison-challenge-start", function () {
65
+ buttonElement.setAttribute("disabled", "disabled");
66
+ });
67
+ formElement.addEventListener("botpoison-challenge-success", function () {
68
+ buttonElement.removeAttribute("disabled");
69
+ });
70
+ formElement.addEventListener("botpoison-challenge-error", function () {
71
+ buttonElement.removeAttribute("disabled");
72
+ });
73
+ </script>
61
74
  </div>
62
75
  {% endif %}
@@ -1,2 +1,3 @@
1
1
  <!-- head scripts -->
2
+ <script src="https://unpkg.com/@botpoison/browser"></script>
2
3
  <script type="module" src="{{ site.baseurl }}/assets/js/main.js"async></script>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intia-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.33
4
+ version: 0.1.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc Schmidt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-17 00:00:00.000000000 Z
11
+ date: 2021-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll