-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
32 lines (31 loc) · 1.23 KB
/
script.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// code for section-2 for scroll button
const rightBtn = document.querySelector('#right-button');
const leftBtn = document.querySelector('#left-button');
rightBtn.addEventListener("click", function(event) {
const conent = document.querySelector('#content');
conent.scrollLeft += 300;
event.preventDefault();
});
leftBtn.addEventListener("click", function(event) {
const conent = document.querySelector('#content');
conent.scrollLeft -= 300;
event.preventDefault();
});
///////////////////////////////////////////////////////
//Email sender
function sendEmail() {
let name = document.getElementById("name").value;
let email = document.getElementById("email").value;
let message = document.getElementById("comment").value;
Email.send({
Host: "smtp.elasticemail.com",
Username: "add your mail",
Password: "use password",
To:'add your mail',
From: 'add your mail',
Subject: "Query From user " +name,
Body: "Hi,"+name + " "+" Thanks for joining ahkamboh 😊"+"<br>"+" Message: "+message+"<br>"+"Message from: "+email
}).then(
alert("Thanks "+name+" For joining ah_Kamboh 😊. We will send you responsive email Soon "));
}
/////////////////////////////////////