diff options
Diffstat (limited to 'modules/recaptcha/views')
-rw-r--r-- | modules/recaptcha/views/form_recaptcha.html.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/recaptcha/views/form_recaptcha.html.php b/modules/recaptcha/views/form_recaptcha.html.php new file mode 100644 index 00000000..abdf8428 --- /dev/null +++ b/modules/recaptcha/views/form_recaptcha.html.php @@ -0,0 +1,12 @@ +<?php defined("SYSPATH") or die("No direct script access.") ?> +<div id="gRecaptcha"></div> +<script type="text/javascript" src="http://api.recaptcha.net/js/recaptcha_ajax.js"></script> +<script type="text/javascript"> + setTimeout(function() { + Recaptcha.create( + "<?= $public_key ?>", + "gRecaptcha", + { theme: "white", callback: Recaptcha.focus_response_field }); + }, 0); +</script> + |