-
Notifications
You must be signed in to change notification settings - Fork 0
/
appointment.html
209 lines (201 loc) · 10.1 KB
/
appointment.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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
<title>Harbinder_Singh</title>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="ico/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="ico/favicon-16x16.png">
<link rel="manifest" href="ico/site.webmanifest">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="xtra.css">
<link rel="stylesheet" href="termynal.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-fQybjgWLrvvRgtW6bFlB7jaZrFsaBXjsOMm/tB9LTS58ONXgqbR9W8oWht/amnpF"
crossorigin="anonymous"></script>
</head>
<body>
<div class="noshowdesk">
<nav class="navbar navbar-expand-lg navbar-dark ">
<div class="row brand">
<div class="logo">
<svg viewBox="0 0 200 200" width=100px height=100%>
<path stroke="#ff004e" stroke-width="0" fill="#ff004e" d="M140.773,59.227C137.316,55.771,130.055,50,100,50
s-37.317,5.771-40.774,9.227C55.77,62.684,49.999,69.104,50,100c-0.001,30.896,5.77,37.316,9.227,40.773
C62.683,144.229,69.103,150,100,150c30.895,0,37.317-5.771,40.772-9.227C144.229,137.316,150,130.896,150,100
S144.229,62.683,140.773,59.227z" />
<path stroke="#ff004e" stroke-width="0" fill="#ff004e" d="M140.773,59.227C137.316,55.771,130.055,50,100,50
s-37.317,5.771-40.774,9.227C55.77,62.684,49.999,69.104,50,100c-0.001,30.896,5.77,37.316,9.227,40.773
C62.683,144.229,69.103,150,100,150c30.895,0,37.317-5.771,40.772-9.227C144.229,137.316,150,130.896,150,100
S144.229,62.683,140.773,59.227z" />
<path stroke="#ff004e" stroke-width="0" fill="#ff004e" d="M140.773,59.227C137.316,55.771,130.055,50,100,50
s-37.317,5.771-40.774,9.227C55.77,62.684,49.999,69.104,50,100c-0.001,30.896,5.77,37.316,9.227,40.773
C62.683,144.229,69.103,150,100,150c30.895,0,37.317-5.771,40.772-9.227C144.229,137.316,150,130.896,150,100
S144.229,62.683,140.773,59.227z" />
</svg>
</div>
</div>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav" role="navigation">
<ul class="navbar-nav nav-justified">
<li class="nav-item">
<a class="nav-link" href="/index.html"><i class="icon fa fa-home"></i><b> Home</b></a>
</li>
<li class="nav-item">
<a class="nav-link" href="/about.html"><i class="icon fa fa-user "></i><b> About</b></a>
</li>
<li class="nav-item">
<a class="nav-link" href="/skills.html"><i class="icon fa fa-calculator "></i><b> Skills</b></a>
</li>
<li class="nav-item">
<a class="nav-link" href="/work.html"><i class="icon fa fa-television "></i><b> Work</b></a>
</li>
<li class="nav-item active">
<a class="nav-link" href="#"><i class="icon fa fa-phone active"></i><b> Contact</b></a>
</li>
</ul>
</div>
</nav>
</div>
<div class="container-fluid bg-main">
<div class="row">
<div class="noshowmobile col-md-1 col-sm-1 d-lg-block sidenav">
<div class="row brand">
<div class="logo">
<svg viewBox="0 0 200 200" width=100px height=100%>
<path stroke="#ff004e" stroke-width="0" fill="#ff004e" d="M140.773,59.227C137.316,55.771,130.055,50,100,50
s-37.317,5.771-40.774,9.227C55.77,62.684,49.999,69.104,50,100c-0.001,30.896,5.77,37.316,9.227,40.773
C62.683,144.229,69.103,150,100,150c30.895,0,37.317-5.771,40.772-9.227C144.229,137.316,150,130.896,150,100
S144.229,62.683,140.773,59.227z" />
<path stroke="#ff004e" stroke-width="0" fill="#ff004e" d="M140.773,59.227C137.316,55.771,130.055,50,100,50
s-37.317,5.771-40.774,9.227C55.77,62.684,49.999,69.104,50,100c-0.001,30.896,5.77,37.316,9.227,40.773
C62.683,144.229,69.103,150,100,150c30.895,0,37.317-5.771,40.772-9.227C144.229,137.316,150,130.896,150,100
S144.229,62.683,140.773,59.227z" />
<path stroke="#ff004e" stroke-width="0" fill="#ff004e" d="M140.773,59.227C137.316,55.771,130.055,50,100,50
s-37.317,5.771-40.774,9.227C55.77,62.684,49.999,69.104,50,100c-0.001,30.896,5.77,37.316,9.227,40.773
C62.683,144.229,69.103,150,100,150c30.895,0,37.317-5.771,40.772-9.227C144.229,137.316,150,130.896,150,100
S144.229,62.683,140.773,59.227z" />
</svg>
</div>
</div>
<div class="row justify-content-md-center">
<ul>
<li><a href="/index.html"><i class="icon fa fa-home fa-2x"></i><b>Home</b></a></li>
<li><a href="/about.html"><i class="icon fa fa-user fa-2x"></i><b>About</b></a></li>
<li><a href="/skills.html"><i class="icon fa fa-calculator fa-2x"></i><b>Skills</b></a></li>
<li><a href="/work.html"><i class="icon fa fa-television fa-2x"></i><b>Work</b></a></li>
<li><a href="/contact.html"><i class="icon fa fa-phone fa-2x active"></i><b>Contact</b></a></li>
</ul>
</div>
<div class="row justify-content-md-center">
<ul>
<li><a href="https://www.linkedin.com/in/harbinder5ingh/"><i
class="fa fa-fw fa-linkedin"></i><b>Linkedin</b></a></li>
<li><a href="mailto:[email protected]?subject=Your Website is awesome!"><i
class="fa fa-fw fa-envelope"></i><b>Email</b></a></li>
<li><a href="tel:+1-204-809-7588"><i class="fa fa-fw fa-feed"></i><b>Phone</b></a></li>
<li><a href="#"><i class="fa fa-fw fa-share-alt"></i><b>Share</b></a></li>
</ul>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="types">
<div class="window-icon mx-start">
<div id="text">
<p>Book an appointment:</p>
<form id="form" target="_self" onsubmit="" action="javascript: postToGoogle()">
<div class="form-group">
<label for="exampleInputName1">Your Name</label>
<input type="text" class="form-control" id="exampleInputName1" name="name" placeholder="Your Name"
required>
</div>
<div class="form-group">
<label for="exampleInputEmail1">Your Email Id</label>
<input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp"
name="email" placeholder="Email Id" required>
<small id="emailHelp" class="form-text text-muted">I'll never share your email with anyone
else.</small>
</div>
<div class="form-group">
<label for="exampleInputComment1">Reason for appointment</label>
<textarea class="form-control" id="exampleInputComment1" name="comment" placeholder="Your Message"
required></textarea>
</div>
<div class="form-group"><button type="submit" class="btn btn-primary">Submit</button>
<span id="success_message" class="text-warning"></span>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="col-md-6 pb-3">
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function () {
$.getJSON("https://ipapi.co/json/", function (e) {
$('.ip').text(e.ip);
$('.city').text(e.city);
$('.org').text(e.org);
$('.postal').text(e.postal);
});
});
</script>
<script type="text/javascript">
function postToGoogle() {
var field1 = $("[name='name']").val();
var field2 = $("[name='comment']").val();
var field3 = $("[name='email']").val();
$.ajax({
url:
"https://docs.google.com/forms/d/e/1FAIpQLSfXb2QipdxtBk8jHJi2ZpRVAlRbhS2q9RrR1PKf_q8o1jtlOA/formResponse",
data: {
"entry.2005902704": field1,
"entry.1270099091": field2,
"entry.1903834769": field3
},
type: "POST",
dataType: "xml",
statusCode: {
0: function () {
//Success message
$("form").trigger("reset");
$('#success_message').fadeIn().html("Message Sent");
setTimeout(function () {
$('#success_message').fadeOut("Slow");
}, 2000);
},
200: function () {
//Success Message
alert("Success!");
}
}
});
}
/*
$(document).ready(function() {
$('#form').submit(function() {
postToGoogle();
return false;
});
});
*/
</script>
</body>
</html>