Skip to content

Commit

Permalink
Debugging code removed
Browse files Browse the repository at this point in the history
  • Loading branch information
dawlat committed Oct 27, 2023
1 parent 5421b67 commit aa9b98d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -594,11 +594,6 @@ <h1 class="title">Contact</h1>
<textarea rows="7" name="message" class="form-control" placeholder="Message" required></textarea>
</div>
</div>
<div class="row mb-3">
<div class="col-md-12">
<button class="g-recaptcha" data-sitekey="6LcGhdMoAAAAAIjzvht8yGbw1iRJg489LLD-oLgJ" data-callback='onSubmit' data-action='submit'>Submit</button>
</div>
</div>
<div class="row mb-3">
<div class="col-md-12">
<div class="g-recaptcha" data-sitekey="6Le8pNMoAAAAAGKGB1WqGu9NXmOXclNbpxT8MkH4" required></div>
Expand Down Expand Up @@ -726,8 +721,6 @@ <h1 class="title">Contact</h1>
form.addEventListener('submit', e => {
e.preventDefault();

$('#submit_button').attr('disabled', true);
$('#submit_button').text('Submitting...');
$('#form_submit_message').removeClass('error');
$('#form_submit_message').removeClass('success');
$('#form_submit_message').text('');
Expand All @@ -738,6 +731,9 @@ <h1 class="title">Contact</h1>
return;
}

$('#submit_button').attr('disabled', true);
$('#submit_button').text('Submitting...');

fetch(scriptURL, { method: 'POST', body: new FormData(form) })
.then(response => {
$('#form_submit_message').addClass('success');
Expand Down

0 comments on commit aa9b98d

Please sign in to comment.