-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontactus.html
More file actions
282 lines (267 loc) · 12 KB
/
Copy pathcontactus.html
File metadata and controls
282 lines (267 loc) · 12 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
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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
<!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">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZEJoxp5GQz3uX4Xipp8WYj" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZEJoxp5GQz3uX4Xipp8WYj" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://kit.fontawesome.com/e3bb8bcf2d.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="style.css">
<title>Contact Us:)</title>
<style>
.special-icon {
transition: transform 0.5s;
transform-style: preserve-3d;
}
.special-icon:hover {
transform: translateZ(20px) rotateX(15deg) rotateY(15deg);
}
@keyframes fade-in {
0% {
opacity: 0;
transform: translateY(-20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
@keyframes rotate-in {
0% {
transform: rotateX(90deg) rotateY(90deg) rotateZ(90deg);
}
100% {
transform: rotateX(0) rotateY(0) rotateZ(0);
}
}
.special-icon {
background: linear-gradient(45deg, #ff527b, #e84a7f);
-webkit-background-clip: text; /* Add -webkit- prefix */
background-clip: text;
-webkit-text-fill-color: transparent; /* Add -webkit- prefix */
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
padding: 10px;
}
.input_field{
margin-bottom: 10px;
}
.input_field input[type="text"],
textarea{
width: 100%;
border: 1px solid #100f0f;
padding: 10px;
}
textarea{
height: 80px;
resize: none;
}
#error_message{
margin-bottom: 20px;
padding: 0px;
background: #fe8b8e;
text-align: center;
font-size: 14px;
transition: all 0.5s ease;
}
.input_field label {
display: block;
margin-bottom: 10px;
font-weight: bold;
}
.form-check-label {
margin-left: 10px;
}
.form-check-input[type=radio] {
margin-left: -20px;
}
</style>
<script>
function validation() {
var name = document.getElementById("name").value;
var email = document.getElementById("email").value;
var phone = document.getElementById("phone").value;
var error_message = document.getElementById("error_message");
var text;
error_message.style.padding = "10px";
// Get the radio button group and the value of the selected radio button
var radio_button_group = document.getElementsByName("feedback");
var selected_option = "";
for (var i = 0; i < radio_button_group.length; i++) {
if (radio_button_group[i].checked) {
selected_option = radio_button_group[i].value;
break;
}
}
if (name.length < 5) {
text = "Please Enter Valid Name";
error_message.innerHTML = text;
return false;
}
if (email.indexOf("@") == -1 || email.length < 6) {
text = "Please Enter Valid Email";
error_message.innerHTML = text;
return false;
}
if (isNaN(phone) || phone.length != 10) {
text = "Please Enter Valid Phone Number";
error_message.innerHTML = text;
return false;
}
if (selected_option == "") {
text = "Please select an option";
error_message.innerHTML = text;
return false;
}
else {
// Replace form_url with your Google Form URL
var form_url ="https://docs.google.com/forms/d/e/1FAIpQLSfSAYlsRV88FgnIIxjkloW80jyVfB6LI6Yyekpm6dT-lT6Z0g/viewform?usp=sf_link";
var form_data = {
"entry.1234567890": name,
"entry.0987654321": email,
"entry.2468135790": phone,
"entry.1357924680": selected_option, // Include the selected radio button value
};
var encoded_data = encodeURI(JSON.stringify(form_data));
var url = form_url + "&entry=" + encoded_data;
window.open(url);
return true;
}
}
</script>
</head>
<body>
<nav class="navbar navbar-expand-md navbar-light" style="background-color: #ffd9e5;">
<a class="navbar-brand" href="#">
<i class="fa fa-book-open-reader special-icon" style="text-align: center; font-size: 70px;"></i>
</a>
<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">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="home.html" style="color: black;">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="books.html" style="color: black;">Books</a>
</li>
<li class="nav-item">
<a class="nav-link" href="aboutus.html" style="color: black;">About Us</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contactus.html" style="color: black;">Contact Us</a>
</li>
</ul>
<div class="search-container">
<i class="fas fa-search search-icon"></i>
<input class="search-input" type="text" placeholder="Search...">
</div>
</div>
</nav>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.5.0/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8" crossorigin="anonymous"></script>
<div class="container">
<div class="jumbotron">
<h1 class="display-4">Contact Us</h1>
<hr class="my-4">
<p class="lead">Feel free to contact us with any questions, comments, suggestions or concerns you may have.</p>
</div>
<div class="row">
<div class="col-sm-8">
<h2>Don't think much...just type it down.!</h2>
<div id="error_message"></div>
<form onsubmit="return validation()" style="border-color: aliceblue; border-style: groove; border-width: 10px;">
<div class="input_field">
<label for="name">Name:</label>
<input type="text" class="form-control" id="name" placeholder="Enter your name">
</div>
<div class="input_field">
<label for="email">Email:</label>
<input type="email" class="form-control" id="email" placeholder="Enter your email">
</div>
<div class="input_field">
<label for="phone">Mobile No.:</label>
<input type="number" class="form-control" id="phone" placeholder="Enter your mobile number">
</div>
<div class="input_field">
<label for="feedback">Feedback Type:</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="feedback" id="query" value="query">
<label class="form-check-label" for="query">
Query
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="feedback" id="suggestion" value="suggestion">
<label class="form-check-label" for="suggestion">
Suggestion
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="feedback" id="experience" value="experience">
<label class="form-check-label" for="experience">
Share your experience
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="feedback" id="concern" value="concern">
<label class="form-check-label" for="concern">
Concern
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="feedback" id="other" value="other">
<label class="form-check-label" for="other">
Other...
</label>
</div>
</div>
<div class="text-center"><button type="submit" class="btn btn-warning">Just a Page away to Express!</button></div>
</form>
</div>
<div class="col-sm-4">
<h2><i class="fa fa-phone"></i>Contact Information:</h2>
<p>040-24600346</p>
<p>info@kitabghar.com</p>
<h2><i class="fa fa-map-marker"></i>Address:</h2>
<address>
4-1-503, Sunflower Street<br>
Hyderabad, 500001<br>
Telangana, India.
</address>
<h2>Follow Us On:</h2>
<a href="#"><i class="fab fa-facebook" style="font-size: 60px;"></i></a>
<a href="#"><i class="fab fa-twitter" style="font-size: 60px;"></i></a>
<a href="#"><i class="fab fa-instagram" style="font-size: 60px;"></i></a>
</div>
</div>
</div>
<footer class="footer mt-5">
<div class="container">
<div class="row">
<div class="col-md-6">
<p>© Kitab Ghar. All rights reserved.</p>
</div>
<div class="col-md-6">
<ul class="list-inline">
<li class="list-inline-item"><a href="#">Privacy Policy</a></li>
<li class="list-inline-item"><a href="#">Terms of Use</a></li>
<li class="list-inline-item"><a href="#">FAQ</a></li>
</ul>
</div>
</div>
</div>
</footer>
</body>
</html>