-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.html
130 lines (119 loc) · 4.75 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="css - Copy - Copy/bootstrap.css">
<link rel="icon" href="img/new img.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<title>Contact</title>
</head>
<body style="background-color: black;">
<nav class="navbar navbar-expand-lg ">
<div class="container-fluid">
<a class="navbar-brand" href="about.html">@iam Jahfar ali</a>
<button class="navb-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="material-symbols-outlined">
sort
</span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="about.html">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="timeline.html">Time Line</a>
</li>
<li class="nav-item">
<a class="nav-link" href="project.html">Project</a>
</li>
<li class="nav-item">
<a class="nav-link "href="contact.html">Contact me</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- Contact Me -->
<div class="container contact-sec">
<div class="row heading">
<div class="col-lg-12">
<h1>Contact Me</h1>
</div>
</div>
<div class="row form-sec">
<div class="col-lg-12">
<form id="submitForm">
<div class="mb-3">
<input type="text" class="form-control" id="inputName" placeholder="Name" name="Name">
</div>
<div class="mb-3">
<input type="email" class="form-control" id="InputEmail1" placeholder="Email" name="Email">
</div>
<div class="mb-3">
<input type="text" class="form-control" id="inputPhone" placeholder="Mobile Number" name="Phone">
</div>
<div class="mb-3">
<textarea type="text" class="form-control" id="inputMessage" placeholder="Message" name="Message"></textarea>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
<div class="outputMessage" id="outputMessage"></div>
</form>
</div>
</div>
</div>
<!-- Footer Sec -->
<div class="container footer">
<div class="row text-center">
<div class="col-lg-12">
<h1>Follow me</h1>
</div>
<div class="col-lg-12">
<a href="https://www.facebook.com/jahfar.ev" target="_blank"><i class="fa fa-facebook-official"
aria-hidden="true"></i></a>
<a href="https://www.instagram.com/jahfarev/" target="_blank"><i class="fa fa-instagram"
aria-hidden="true"></i></a>
<a href="https://www.linkedin.com/in/jahfar-ev-9029981a9/" target="_blank"> <i class="fa fa-linkedin-square"
aria-hidden="true"></i></a>
<a href="https://github.com/JahfarEv" target="_blank"><i class="fa fa-github-square" aria-hidden="true"></i></a>
<i class="fa fa-youtube-play" aria-hidden="true"></i>
</div>
<div class="col-lg-12">
<p>Designed by Jahfar ali </p>
</div>
</div>
</div>
<!-- script -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<script>
$("#submitForm").submit((e) => {
e.preventDefault();
$.ajax({
url: "https://script.google.com/macros/s/AKfycbw44qC_iSmzWjcSy_tFxOeY4Yb_iujPzS9y2pzPeJ8uhuxHwp9qrUHOaOyPdmCq6Ul3cw/exec",
data: $("#submitForm").serialize(),
method: "post",
success: function (response) {
document.getElementById("submitForm").reset();
document.getElementById("outputMessage").classList.add('success');
document.getElementById("outputMessage").innerHTML = "Message send successfully";
return false
},
error: function (err) {
document.getElementById("outputMessage").classList.add('fail');
document.getElementById("outputMessage").innerHTML = "Our Server is busy right now. Try again later!"
return false
},
});
});
</script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js"
integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r"
crossorigin="anonymous"></script>
<script src="js - Copy - Copy/bootstrap.js"> </script>
</body>
</html>