diff options
Diffstat (limited to 'blog/templates/captcha/widget_ajax.html')
| -rw-r--r-- | blog/templates/captcha/widget_ajax.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/blog/templates/captcha/widget_ajax.html b/blog/templates/captcha/widget_ajax.html new file mode 100644 index 0000000..71969f2 --- /dev/null +++ b/blog/templates/captcha/widget_ajax.html @@ -0,0 +1,25 @@ + +{# import recaptcha_ajax.js in your body #} +{# <script type="text/javascript" src="//www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script> #} + +<div id="Recap"></div> +<script type="text/javascript"> + var RecaptchaOptions = {{options}}; + Recaptcha.create("{{ public_key }}", + "Recap", + { + theme: "red", + callback: Recaptcha.focus_response_field + }, + RecaptchaOptions + ); +</script> + + +{% comment %} +<noscript> + <iframe src="{{api_server}}/noscript?k={{public_key}}{{error_param}}" height="300" width="500" frameborder="0"></iframe><br /> + <textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea> + <input type='hidden' name='recaptcha_response_field' value='manual_challenge' /> +</noscript> +{% endcomment %}
\ No newline at end of file |
