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

Commit

Permalink
backend.contact: properly fix the 'captcha' width
Browse files Browse the repository at this point in the history
  • Loading branch information
div72 committed Oct 28, 2022
1 parent 9b09092 commit eb9291d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion views/sections/forms/contact.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,16 @@
</div>

<!-- Captcha -->
<div class="input-group mb-3 ms-5">
<div class="input-group mb-3 col-lg-6">
<% 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 %>>

<div class="input-group-prepend">
<span class="me-3" style="display: block; width: 32px;"></span>
</div>

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

0 comments on commit eb9291d

Please sign in to comment.