jekyll-agency 1.0.6 → 1.0.7

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: 9a381be840564ea84051e1dfa2ba86c6f8a8710367838931eec34aaeb1b8c5c2
4
- data.tar.gz: a2193db90f8a7e89477982546371962343d88897ea308867ec4d42af4ea0f408
3
+ metadata.gz: 51141f929b4c53b1c5a5abfb44172821847d5779fde0b9ec1caffc08fdb8532a
4
+ data.tar.gz: 9e30803b61d4cfe587d60726b856c11a577b020814975bdd237cfdb35fa726cd
5
5
  SHA512:
6
- metadata.gz: 3929cd62f7f1ab2ed9006ebc87db5f7fc14db0b6654153868d96b746e4c4a1d5bccfc4dd87b4cfc6101560a10eab94395701f65aba763288895fb89ad036ce77
7
- data.tar.gz: 2c94bbf0dd782dc094d5f7d1284f583d47f57f2141fe56abf4adf16f60440e5b53e84f41b3d1252d0f6d53207e18b594e44f1f3f99c4179dbccb01b452c1a874
6
+ metadata.gz: 9e170c4505619b635736b31519d5009ea09f51ef19852ed678a2da53a95dac4f3b48a3c16d1a1837674a5694f8733255e90f35bef9f0a9d93a9cf2daef002795
7
+ data.tar.gz: 13ee010be106984023571f77519445aec430319fbbf967eb3b03900c6cda8a5672750657cc9ac0928fe38266f3f9223bb053405f12677888d776cbd299c600eb
@@ -9,7 +9,8 @@
9
9
  </div>
10
10
  <div class="row">
11
11
  <div class="col-lg-12">
12
- <form id="contactForm" name="sentMessage" novalidate="novalidate" method="POST" action="https://formspree.io/{{ site.email }}">
12
+ <form id="contactForm" action="https://formspree.io/{{ site.email }}" novalidate="novalidate" method="POST">
13
+ <!--name="sentMessage"-->
13
14
  <div class="row">
14
15
  <div class="col-md-6">
15
16
  <div class="form-group">
@@ -37,6 +38,8 @@
37
38
  <div id="success"></div>
38
39
  <button id="sendMessageButton" class="btn btn-primary btn-xl text-uppercase" type="submit">Send Message</button>
39
40
  </div>
41
+ <input type="text" name="_gotcha" style="display:none">
42
+ <input type="hidden" name="_next" value="#"/>
40
43
  </div>
41
44
  </form>
42
45
  </div>
@@ -1,3 +1,5 @@
1
+ ---
2
+ ---
1
3
  $(function() {
2
4
 
3
5
  $("#contactForm input,#contactForm textarea").jqBootstrapValidation({
@@ -8,6 +10,7 @@ $(function() {
8
10
  submitSuccess: function($form, event) {
9
11
  event.preventDefault(); // prevent default submit behaviour
10
12
  // get values from FORM
13
+ var url = "https://formspree.io/" + "{{ site.email }}";
11
14
  var name = $("input#name").val();
12
15
  var email = $("input#email").val();
13
16
  var phone = $("input#phone").val();
@@ -20,7 +23,7 @@ $(function() {
20
23
  $this = $("#sendMessageButton");
21
24
  $this.prop("disabled", true); // Disable submit button until AJAX call is complete to prevent duplicate messages
22
25
  $.ajax({
23
- url: "././mail/contact_me.php",
26
+ url: url,
24
27
  type: "POST",
25
28
  data: {
26
29
  name: name,
@@ -29,7 +32,8 @@ $(function() {
29
32
  message: message
30
33
  },
31
34
  cache: false,
32
- success: function() {
35
+
36
+ success: function() {
33
37
  // Success message
34
38
  $('#success').html("<div class='alert alert-success'>");
35
39
  $('#success > .alert-success').html("<button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;")
@@ -41,6 +45,7 @@ $(function() {
41
45
  //clear all fields
42
46
  $('#contactForm').trigger("reset");
43
47
  },
48
+
44
49
  error: function() {
45
50
  // Fail message
46
51
  $('#success').html("<div class='alert alert-danger'>");
@@ -51,6 +56,7 @@ $(function() {
51
56
  //clear all fields
52
57
  $('#contactForm').trigger("reset");
53
58
  },
59
+
54
60
  complete: function() {
55
61
  setTimeout(function() {
56
62
  $this.prop("disabled", false); // Re-enable submit button when AJAX call is complete
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-agency
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ravi Riley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-25 00:00:00.000000000 Z
11
+ date: 2020-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -168,5 +168,5 @@ signing_key:
168
168
  specification_version: 4
169
169
  summary: 'Bootstrap Agency ported to Jekyll. Added lots of new features: Markdown
170
170
  support, custom pages, Google Analytics, customizable styling, and more! This is
171
- the most updated Jekyll Agency theme.'
171
+ the most up-to-date Jekyll Agency theme.'
172
172
  test_files: []