Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var pickValidationRecaptcha;
- function pickValidateRecaptchaCallback() {
- pickValidationRecaptcha = grecaptcha.render('pickValidationRecaptcha', {
- 'sitekey': recaptchaKey,
- 'callback': function (resp) {
- $.ajax({
- type: "get",
- url: "/pick/b415b056279700603a6e07ffe9fcf319?g-recaptcha-response=" + resp
- }).done(function (html) {
- $("body").html(html);
- });
- },
- 'expired-callback': function () {
- try {
- grecaptcha.reset(reportRecaptcha);
- }
- catch (e) {
- }
- }
- });
- }
- $(document).ready(function () {
- setTimeout(function () {
- if ($("#pickValidationRecaptcha").length > 0) {
- pickValidateRecaptchaCallback();
- }
- }, 1000);
- });
- $(document).ajaxComplete(function () {
- setTimeout(function () {
- if ($("#pickValidationRecaptcha").length > 0) {
- pickValidateRecaptchaCallback();
- }
- }, 1000);
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement