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 +4 -4
- data/_includes/contact.html +4 -1
- data/assets/js/contact_me.js +8 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51141f929b4c53b1c5a5abfb44172821847d5779fde0b9ec1caffc08fdb8532a
|
4
|
+
data.tar.gz: 9e30803b61d4cfe587d60726b856c11a577b020814975bdd237cfdb35fa726cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e170c4505619b635736b31519d5009ea09f51ef19852ed678a2da53a95dac4f3b48a3c16d1a1837674a5694f8733255e90f35bef9f0a9d93a9cf2daef002795
|
7
|
+
data.tar.gz: 13ee010be106984023571f77519445aec430319fbbf967eb3b03900c6cda8a5672750657cc9ac0928fe38266f3f9223bb053405f12677888d776cbd299c600eb
|
data/_includes/contact.html
CHANGED
@@ -9,7 +9,8 @@
|
|
9
9
|
</div>
|
10
10
|
<div class="row">
|
11
11
|
<div class="col-lg-12">
|
12
|
-
<form id="contactForm"
|
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>
|
data/assets/js/contact_me.js
CHANGED
@@ -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:
|
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
|
-
|
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'>×")
|
@@ -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.
|
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:
|
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
|
171
|
+
the most up-to-date Jekyll Agency theme.'
|
172
172
|
test_files: []
|