-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
80 lines (75 loc) · 3.66 KB
/
index.html
File metadata and controls
80 lines (75 loc) · 3.66 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Just4fit</title>
</head>
<link rel="stylesheet" href="style.css">
<body>
<header class="header">
<div class="left">
<img src="./IMG/bg.jpg" alt="">
<div>just4fit</div>
</div>
<div class="mid">
<ul class="navbar">
<li><a href="#" class="active">Home</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Fitness calculator</a></li>
<li><a href="#">contact us</a></li>
</ul>
</div>
<div class="right">
<button class="btn">Call us </button>
<button class="btn"> email us</button>
</div>
</header>
<div class="container register">
<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">
<h1>Best Gym form</h1>
<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="number" name="Phone" class="form-control" placeholder="Your Contact Number *" value="" required=""/>
</div>
<div class="form-group">
<input type="text" name="Address" class="form-control" placeholder="Your Address *" value="" required=""/>
</div>
<div class="form-group">
<input type="number" name="Age" class="form-control" placeholder="Your Age *" value="" required=""/>
</div>
<div class="form-group">
<input type="submit" name="submit" class="btnSubmit btn-block" value="Login" />
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
const scriptURL = 'https://script.google.com/macros/s/AKfycbyYoERRJ_pYHX6A4Sbud5jrXXMv9TyROBPD5O5-MapQsmYpGLiv0a9gH3qj28W_9fHH/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>