Created
October 28, 2014 00:10
-
-
Save pparadis/a26abfdaabf611b49490 to your computer and use it in GitHub Desktop.
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
@using System.Configuration | |
<script type="text/javascript" src="http://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function () { | |
captcha(); | |
}); | |
function captcha() { | |
Recaptcha.create("@(ConfigurationManager.AppSettings["recaptchaPublicKey"])", "captcha", | |
{ | |
theme: "red", callback: Recaptcha.focus_response_field | |
}); | |
} | |
</script> | |
<div id="target"> | |
@Html.Partial("Form") | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment