-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
47 lines (36 loc) · 1.29 KB
/
script.js
File metadata and controls
47 lines (36 loc) · 1.29 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
function toHomePage() {
window.location.href = "index.html";
}
function toViewMenuHome() {
window.location.href = "#exploreMenuSection";
}
function toOrderNow() {
window.location.href = "orderNow.html";
}
function toContactUs() {
window.location.href = "contactUs.html";
}
function toWatchVideo() {
window.location.href = "https://youtu.be/sH-juTnjm-Y?feature=shared";
}
function toTwitter() {
window.location.href = "https://www.twitter.com";
}
function toInstagram() {
window.location.href = "https://www.instagram.com/bhangale_gunjan_";
}
function toFacebook() {
window.location.href = "https://www.facebook.com";
}
function sendEmail() {
var name = document.getElementById('floatingInputName').value;
var email = document.getElementById('floatingInputEmail').value;
var phone = document.getElementById('floatingInputPhone').value;
var message = document.getElementById('floatingTextarea').value;
var body = "Name: " + name + "%0D%0A";
body += "Email: " + email + "%0D%0A";
body += "Phone: " + phone + "%0D%0A";
body += "Message: " + message;
var mailtoLink = "mailto:bhangalegunjan2@gmail.com" + "?subject=Contact%20Us%20Form%20Submission&body=" + body;
window.location.href = mailtoLink;
}