-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontact.html
102 lines (98 loc) · 4.6 KB
/
contact.html
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Form</title>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<style>
.register .nav-tabs .nav-link:hover{
border: none;
}
.text-align{
margin-top: -3%;
margin-bottom: -9%;
padding: 10%;
}
.form-new{
margin-left: -5%;
width: 118.5%;
}
.register-heading{
margin-left: 27%;
margin-bottom: 10%;
color: #e9ecef;
}
.register-heading h1{
margin-left: 21%;
margin-bottom: 10%;
color: #e9ecef;
}
.register{
background: -webkit-linear-gradient(left, #055a4f, #00c6ff);
margin-top: 3%;
padding: 3%;
border-radius: 2.5rem;
}
.btnSubmit
{
width: 50%;
border-radius: 1rem;
padding: 1.5%;
color: #fff;
background-color: #03612e;
border: none;
cursor: pointer;
margin-right: 6%;
color: rgb(246, 246, 252);
margin-top: 4%;
}
</style>
</head>
<body {style="background-color:grey;}>
<div class="container register" style="background: linear-gradient(57deg, #00C6A7 , #1E4D92 ); background: #0f8a9d; height: 100%; width: 88%; ">
<a href="#"><h1 style="margin-left: 23%; color:wheat;">The LiFiVerse</h1></a>
<a href="index.html"><img src="home.png" style="margin-top: -30%; margin-left:5%;"></a>
<div class="row">
<div class="col-md-12">
<div class="tab-pane fade show active text-align form-new" id="home" role="tabpanel" aria-labelledby="home-tab">
<h3 class="register-heading">Contact Us</h3>
<div class="row register-form">
<div class="col-md-12">
<form method="post" autocomplete="off" name="google-sheet">
<div class="form-group">
<input type="text" name="Name" class="form-control" placeholder="Your Name *" value="" required=""/>
</div>
<div class="form-group">
<input type="text" name="Email" class="form-control" placeholder="Your Email *" value="" required=""/>
</div>
<div class="form-group">
<input type="text" name="Subject" class="form-control" placeholder="Subject *" value="" required=""/>
</div>
<div class="form-group">
<input type="text" name="Body" class="form-control" placeholder="Body *" value="" required=""/>
</div>
<div class="form-group">
<input type="submit" name="submit" class="btnSubmit btn-block" value="Submit" />
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
const scriptURL = 'https://script.google.com/macros/s/AKfycbxMsFZY9Se1fl9ofBpj68OrmLCmQti5Zpni2cYqXmXkz2hcI5j18SIBQGDDhPdGm94/exec'
const form = document.forms['google-sheet']
form.addEventListener('submit', e => {
e.preventDefault()
fetch(scriptURL, { method: 'POST', body: new FormData(form)})
.then(response => alert("Thanks for Contacting us..! We Will Contact You Soon..."))
.catch(error => console.error('Error!', error.message))
})
</script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</body>
</html>