Skip to content

Commit

Permalink
fix the form submition
Browse files Browse the repository at this point in the history
  • Loading branch information
PodvAx committed Sep 12, 2023
1 parent 576c69c commit f962886
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,9 @@ <h2 class="feedback__title section-title section-title--footer section-title--fo

<form
class="feedback__form"
onsubmit="this.reset(); SumbitForm(); return false;"
method="POST"
action="/#"
onsubmit="this.reset(); submitForm(); return false"
>
<input
type="email"
Expand All @@ -498,7 +500,6 @@ <h2 class="feedback__title section-title section-title--footer section-title--fo
>

<textarea
name="user-message"
id="user-message"
class="feedback__user-message input"
placeholder="Your message"
Expand Down Expand Up @@ -599,7 +600,8 @@ <h4 class="subhead">Our socials</h4>
}

function submitForm() {
window.location.reload();
location.reload();
location.replace('/');
}
</script>
</body>
Expand Down

0 comments on commit f962886

Please sign in to comment.