-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2,776 changed files
with
430,408 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages /> |
11 changes: 11 additions & 0 deletions
11
TestSite-V8.7.3/App_Plugins/UmbracoForms.uCaptcha/Assets/umbracoforms.hcaptcha.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//hCaptcha callback | ||
function onSubmit(token) { | ||
//Find form which triggered hCaptcha | ||
var uf = $("form"); | ||
uf.each(function () { | ||
if ($(this).find('.h-captcha-response').val(token)) { | ||
//Set hidden field to true if response matches | ||
$(this).find('.u-captcha-bool').val("true"); | ||
} | ||
}); | ||
} |
40 changes: 40 additions & 0 deletions
40
TestSite-V8.7.3/App_Plugins/UmbracoForms.uCaptcha/Assets/umbracoforms.invisible.hcaptcha.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
var submittedFormId = null; | ||
|
||
//hCaptcha callback | ||
function onSubmit(token) { | ||
//Get form container with the id set earlier | ||
var frm = $("#" + submittedFormId); | ||
var form = frm.find('form').first(); | ||
//Check we have the correct form by comparing response token | ||
if (form.length > 0 && form.find(".h-captcha-response").val(token)) { | ||
//Set hCaptcha field to true | ||
form.find(".u-captcha-bool").val("true"); | ||
//Submit the form | ||
form.submit(); | ||
} | ||
} | ||
|
||
function validate() { | ||
//trigger hCaptcha | ||
hcaptcha.execute(); | ||
} | ||
|
||
//Remove umbraco forms click event | ||
$(".umbraco-forms-form input[type=submit]").not(".cancel").off('click'); | ||
|
||
//Replace with hCaptcha trigger | ||
$(".umbraco-forms-form input[type=submit]").not(".cancel").click(function (evt) { | ||
evt.preventDefault(); | ||
var self = $(this); | ||
var frm = self.closest("form"); | ||
//Validate the form as per usual Umbraco forms way | ||
frm.validate(); | ||
if (frm.valid()) { | ||
//Set form id for easy form finding on call back | ||
submittedFormId = frm.parent(".umbraco-forms-form").attr('id'); | ||
//Start hCaptcha process | ||
validate(); | ||
//Disable submit button | ||
self.attr("disabled", "disabled"); | ||
} | ||
}); |
40 changes: 40 additions & 0 deletions
40
TestSite-V8.7.3/App_Plugins/UmbracoForms.uCaptcha/Assets/umbracoforms.invisible.recaptcha.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
var submittedFormId = null; | ||
|
||
//hCaptcha callback | ||
function onSubmit(token) { | ||
//Get form container with the id set earlier | ||
var frm = $("#" + submittedFormId); | ||
var form = frm.find('form').first(); | ||
//Check we have the correct form by comparing response token | ||
if (form.length > 0 && form.find(".g-captcha-response").val(token)) { | ||
//Set hCaptcha field to true | ||
form.find(".u-captcha-bool").val("true"); | ||
//Submit the form | ||
form.submit(); | ||
} | ||
} | ||
|
||
function validate() { | ||
//trigger hCaptcha | ||
hcaptcha.execute(); | ||
} | ||
|
||
//Remove umbraco forms click event | ||
$(".umbraco-forms-form input[type=submit]").not(".cancel").off('click'); | ||
|
||
//Replace with hCaptcha trigger | ||
$(".umbraco-forms-form input[type=submit]").not(".cancel").click(function (evt) { | ||
evt.preventDefault(); | ||
var self = $(this); | ||
var frm = self.closest("form"); | ||
//Validate the form as per usual Umbraco forms way | ||
frm.validate(); | ||
if (frm.valid()) { | ||
//Set form id for easy form finding on call back | ||
submittedFormId = frm.parent(".umbraco-forms-form").attr('id'); | ||
//Start hCaptcha process | ||
validate(); | ||
//Disable submit button | ||
self.attr("disabled", "disabled"); | ||
} | ||
}); |
11 changes: 11 additions & 0 deletions
11
TestSite-V8.7.3/App_Plugins/UmbracoForms.uCaptcha/Assets/umbracoforms.recaptcha.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//hCaptcha callback | ||
function onSubmit(token) { | ||
//Find form which triggered hCaptcha | ||
var uf = $("form"); | ||
uf.each(function () { | ||
if ($(this).find('.g-captcha-response').val(token)) { | ||
//Set hidden field to true if response matches | ||
$(this).find('.u-captcha-bool').val("true"); | ||
} | ||
}); | ||
} |
1 change: 1 addition & 0 deletions
1
...-V8.7.3/App_Plugins/UmbracoForms.uCaptcha/Backoffice/Common/FieldTypes/ucaptchafield.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<img src="/App_Plugins/UmbracoForms.uCaptcha/Images/uCaptcha.png" style="max-height: 90px;" /> |
3 changes: 3 additions & 0 deletions
3
TestSite-V8.7.3/App_Plugins/UmbracoForms.uCaptcha/Images/uCaptcha.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
...ite-V8.7.3/App_Plugins/UmbracoForms/Assets/BaremetricsCalendar/public/css/application.css
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.