diff --git a/assets/.DS_Store b/assets/.DS_Store index 6a0d9c1..2df2469 100644 Binary files a/assets/.DS_Store and b/assets/.DS_Store differ diff --git a/assets/images/banner.png b/assets/images/banner.png new file mode 100755 index 0000000..5708938 Binary files /dev/null and b/assets/images/banner.png differ diff --git a/assets/js/email.service.js b/assets/js/email.service.js index f3ec7e1..7dbec25 100644 --- a/assets/js/email.service.js +++ b/assets/js/email.service.js @@ -1,12 +1,13 @@ class FormSubmit { + emails = ['geral@poligest.ao', 'tomas.gomes@poligest.ao', 'wydoaputaro585@gmail.com']; constructor(settings) { this.settings = settings; console.log(document.getElementById(settings.form)); this.form = document.getElementById(settings.form); this.formButton = document.getElementById(settings.button); - if(this.form){ - this.url = this.form.getAttribute('action'); - } + // if(this.form){ + // this.url = this.form.getAttribute('action'); + // } } setAlert(classValue, message){ @@ -31,14 +32,17 @@ class FormSubmit { async sendForm(e){ this.onSubmmited(e); try{ - await fetch(this.url, { + this.emails.forEach(async (email) => + await fetch( + `https://formsubmit.co/ajax/${email}`, { method: 'POST', headers:{ "Content-Type": "application/json", "Accept": "application/json" }, body: JSON.stringify(this.getFormData()) - }) + }) + ); this.displaySucess(); this.resetButton(e); this.resetForm(); @@ -79,7 +83,7 @@ class FormSubmit { init(){ if(this.form){ - this.formButton.addEventListener('click', async (e) => await this.sendForm(e)); + this.formButton.addEventListener('click', async (e) => await this.sendForm(e, email)); } return this; } diff --git a/index.html b/index.html index b4b881e..87f0acf 100644 --- a/index.html +++ b/index.html @@ -265,7 +265,7 @@
- Um produto:
-
+ © 2024 Poligest.Um produto:
+ Tenda Digital
Todos os direitos reservados
- Um produto:
-
+ © 2024 Poligest.Um produto:
+ Tenda Digital
Todos os direitos reservados