Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
Merge remote-tracking branch 'origin/captcha'
Browse files Browse the repository at this point in the history
  • Loading branch information
div72 committed Oct 28, 2022
2 parents f4cb92f + dcfc1f0 commit 9b09092
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions views/sections/forms/contact.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,14 @@
</div>

<!-- Captcha -->
<div class="input-group mb-3">
<div class="input-group mb-3 ms-5">
<% num1 = Math.floor(Math.random() * 100); %>
<% num2 = Math.floor(Math.random() * 100); %>
<input name="num1" type="number" id="num1" style="display: none;" value=<%= num1 %>>
<input name="num2" type="number" id="num2" style="display: none;" value=<%= num2 %>>

<span class="input-group-text" id="inputGroup-sizing-default"><%= `${num1} + ${num2}` %></span>
<input name="captcha" type="number" class="form-control" aria-label="Sizing example input" aria-describedby="inputGroup-sizing-default">
<input id="captcha" name="captcha" type="number" class="form-control" placeholder="Yandaki işlemin sonucunu giriniz">
</div>

<!-- Submit Button -->
Expand Down

0 comments on commit 9b09092

Please sign in to comment.