From 66af79c4433f531bb71e38392afc4e96a48567d6 Mon Sep 17 00:00:00 2001 From: Tintinkung Date: Wed, 10 Nov 2021 18:06:52 +0700 Subject: [PATCH 1/3] feat: smptjs for contact-us html --- Contact_Us/contact.html | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/Contact_Us/contact.html b/Contact_Us/contact.html index 4e1a66a..228c46e 100644 --- a/Contact_Us/contact.html +++ b/Contact_Us/contact.html @@ -69,8 +69,9 @@

Contact Us

-

Lorem ipsum, dolor sit amet consectetur adipisicing elit. Eius soluta eveniet delectus nemo, reiciendis - repellendus.

+

You can open a ticket by clicking the Open Ticket + button
This creates an email where you can + contact the staff team

Facebook @@ -82,34 +83,23 @@

Contact Us

Contact Us

- -
+ + - + - - - - - + - +
- - From 5eaeedcfcac55e7311e34691d2e170f358f069a9 Mon Sep 17 00:00:00 2001 From: Tintinkung Date: Wed, 10 Nov 2021 18:10:20 +0700 Subject: [PATCH 2/3] add: contact.js * smptjs contact javascript file --- Contact_Us/contact.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Contact_Us/contact.js diff --git a/Contact_Us/contact.js b/Contact_Us/contact.js new file mode 100644 index 0000000..6b503be --- /dev/null +++ b/Contact_Us/contact.js @@ -0,0 +1,20 @@ +function sendEmail() { + var EmailInput = document.getElementById("email").value; + var NameInput = document.getElementById("name").value; + var button = document.getElementById("send"), + count = 1; + button.onclick = function () { + count += 1; + }; + Email.send({ + SecureToken: "", + To: EmailInput, + From: "", + Subject: "Support Ticket" + "#" + count, + Body: "Thank you for reaching out to ASEAN BTE. This is an automated message to notify you that we have received your ticket and one of our team members will get back to you to assist with this matter. \n Please send you queries by replying to this email", + }).then(function (message) { + alert( + "A ticket has been created, please check your inbox, if you didn't find it check the spam folder" + ); + }); +} From df66abf2b49ede61a18a9edb15841248d00e36eb Mon Sep 17 00:00:00 2001 From: Tintinkung Date: Wed, 10 Nov 2021 18:10:55 +0700 Subject: [PATCH 3/3] edit: contact.css