Skip to content

Commit

Permalink
email validation
Browse files Browse the repository at this point in the history
  • Loading branch information
e11sy committed Jul 13, 2024
1 parent 7114c53 commit 740c03f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions components/contact.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,24 @@
Либо оставьте почту:
</span>
</p>
<div
<form
v-if="mail === '' || mail === undefined"
class="bottom-container"
@submit="notify(inputData)"
>
<div class="frame">
<input
required
:value="inputData"
:class="['input-style', inputActive && 'input-style-active']"
@input="inputData = $event.target.value"
type="text"
type="email"
placeholder="dev@yourproduct.ru" />
</div>
<button class="div-wrapper">
<div @click="notify(inputData)" class="text-wrapper-3">Получить информацию</div>
<div class="text-wrapper-3">Получить информацию</div>
</button>
</div>
</form>
<div v-else
class="bottom-container, bottom-container__text"
>
Expand Down Expand Up @@ -69,7 +71,6 @@ export default Vue.extend({
},
methods: {
notify: function(message: string): void {
console.log('emit triggered')
fetch('https://notify.bot.codex.so/u/U8S04KRK5R51', {
method: 'POST',
headers: {
Expand Down

0 comments on commit 740c03f

Please sign in to comment.