aboutsummaryrefslogtreecommitdiff
path: root/lib/template.html.eex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/template.html.eex')
-rw-r--r--lib/template.html.eex35
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/template.html.eex b/lib/template.html.eex
new file mode 100644
index 0000000..c9c5385
--- /dev/null
+++ b/lib/template.html.eex
@@ -0,0 +1,35 @@
+<script src="https://www.google.com/recaptcha/api.js" async defer></script>
+
+<div class="g-recaptcha"
+ data-sitekey="<%= @public_key %>"
+ data-theme="<%= @options[:theme]%>"
+ data-type="<%= @options[:type]%>"
+ data-tabindex="<%= @options[:tabindex]%>"
+ data-size="<%= @options[:size]%>">
+</div>
+
+<%= if @options[:noscript] do %>
+
+ <noscript>
+ <div style="width: 302px; height: 422px;">
+ <div style="width: 302px; height: 422px; position: relative;">
+ <div style="width: 302px; height: 422px; position: absolute;">
+ <iframe src="https://www.google.com/recaptcha/api/fallback?k=<%= @public_key %>"
+ frameborder="0" scrolling="no"
+ style="width: 302px; height:422px; border-style: none;">
+ </iframe>
+ </div>
+ <div style="width: 300px; height: 60px; border-style: none;
+ bottom: 12px; left: 25px; margin: 0px; padding: 0px; right: 25px;
+ background: #f9f9f9; border: 1px solid #c1c1c1; border-radius: 3px;">
+ <textarea id="g-recaptcha-response" name="g-recaptcha-response"
+ class="g-recaptcha-response"
+ style="width: 250px; height: 40px; border: 1px solid #c1c1c1;
+ margin: 10px 25px; padding: 0px; resize: none;" >
+ </textarea>
+ </div>
+ </div>
+ </div>
+ </noscript>
+
+<% end %>