-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabout.html
More file actions
394 lines (350 loc) · 12.3 KB
/
Copy pathabout.html
File metadata and controls
394 lines (350 loc) · 12.3 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
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
<!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>touronline</title>
<link rel="icon" href="img/icon.png" type="image/icon type">
<link href="navbar.css" rel="stylesheet">
<link href="common.css" rel="stylesheet">
<style>
body {
background-color: #dee5e6d2;
overflow-x: hidden;
}
section {
background-color: #fff;
width: 95vw;
margin-top: 20px;
margin-bottom: 20px;
margin-left: auto;
margin-right: auto;
border-radius: 10px;
padding: 5px;
}
.status {
padding: 20px;
display: flex;
justify-content: center;
}
.aboutfaq {
padding: 20px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.stat {
border-radius: 10px;
text-align: center;
font-size: 24px;
min-height: 100px;
padding: 5px;
margin: 10px;
margin-left: 3vw;
margin-right: 3vw;
background-color: rgb(230, 229, 229);
box-shadow: 10px 10px 20px #6d8dad;
}
.statinfo {
background-color: #cbcbcbd2;
font-weight: 500;
border-radius: 10px;
margin-top: 10px;
margin-left: 5vw;
margin-right: 5vw;
min-height: 50px;
min-width: 5vw;
padding: 10px;
}
.aboutnav {
margin-top: 120px;
display: flex;
justify-content: center;
align-items: center;
list-style: none;
text-decoration: none;
}
.aboutbar a {
display: flex;
align-items: center;
cursor: pointer;
color: inherit;
border: 2px groove rgba(98, 98, 98, 0.3);
border-radius: 10px;
padding: 5px;
background: transparent;
text-align: center;
}
.aboutbar a:hover {
border: 2px groove rgba(98, 98, 98, 0.073);
color: #fff;
background-color: #686868d2;
}
.aboutbar {
display: flex;
}
.aboutbar li {
padding-left: 8vw;
padding-right: 8vw;
}
.faq {
margin: 10px;
display: flex;
flex-direction: column;
background-color: rgb(230, 229, 229);
border-radius: 25px;
border-style: ridge;
}
.question {
padding: 20px;
font-size: 24px;
width: 50vw;
background-color: rgb(230, 229, 229);
border-radius: 25px;
cursor: pointer;
-webkit-tap-highlight-color: transparent;
}
.question:hover {
background-color: rgb(197, 197, 197);
}
.answer {
color: #fff;
padding: 20px;
display: none;
font-size: 16px;
width: 50vw;
background-color: rgb(69, 69, 69);
border-radius: 25px;
}
@media screen and (max-width:600px) {
.status {
flex-direction: column;
margin-top: 60px;
}
.question {
max-width: 500px;
font-size: 16px;
width: 80vw;
}
.answer {
max-width: 500px;
font-size: 12px;
width: 80vw;
}
.aboutnav {
display: none;
}
.aboutfaq{
margin-bottom: 80px;
}
}
</style>
</head>
<body>
<header>
<nav>
<div id="navsection">
<a herf="home" class="logo">touronline</a>
<ul class="navbar">
<li><a href="home">Home</a></li>
<li><a href="explore">Explore</a></li>
<li><a href="category">Category</a></li>
<li><a href="about">About</a></li>
<li><a href="search">Search</a></li>
<li><a><span id="navlogin">Login</span></a></li>
</ul>
</div>
<div class="mobologo">
<a herf="home" class="logo">touronline</a>
</div>
<div id="navsectionmobile">
<ul class="navbar">
<li><a href="home"><img src="img/home.svg"></a></li>
<li><a href="explore"><img src="img/explore.svg"></a></li>
<li><a href="category"><img src="img/category.svg"></a></li>
<li><a href="search"><img src="img/search.svg"></a></li>
<li><a href="mobo"><img src="img/expand.svg"></a></li>
</ul>
</div>
</nav>
</header>
<section class="aboutnav">
<ul class="aboutbar">
<li><a href="aboutdev">About Dev</a></li>
<li><a href="contact">Contact us</a></li>
<li><a href="aboutNSBM">About NSBM</a></li>
</ul>
</section>
<section class="status">
<diV class="stat">
<div class="stattitle">Registered Users</div>
<div class="statinfo" id="users">0</div>
</diV>
<diV class="stat">
<div class="stattitle">People Visited</div>
<div class="statinfo" id="visits">0</div>
</diV>
<diV class="stat">
<div class="stattitle">Locations Added</div>
<div class="statinfo" id="places">0</div>
</div>
<diV class="stat">
<div class="stattitle">Comments Made</div>
<div class="statinfo" id="reviews">0</div>
</diV>
</section>
<section class="aboutfaq">
<div class="faq">
<div class="question" id="q1" onclick="show(0)">
<p>• What is the purpose of this website?</p>
</div>
<div class="answer" id="a1">
<p>Our development team is undergraduates studying at NSBM this website is the product of a
web assessment we have done</p>
</div>
</div>
<div class="faq">
<div class="question" id="q2" onclick="show(1)">
<p>• What is the vision of this website?</p>
</div>
<div class="answer" id="a2">
<p>To become an online platform for all kinds of tourists to find the places they love
according to their preferences</p>
</div>
</div>
<div class="faq">
<div class="question" id="q3" onclick="show(2)">
<p>• Why does this website user interface look trashy?</p>
</div>
<div class="answer" id="a3">
<p>The website is at the development stage and limited time to develop a website
from scratch but as we planned over time this website's look and features will be matched today's
standards</p>
</div>
</div>
<div class="faq">
<div class="question" id="q4" onclick="show(3)">
<p>• What do you mean by the development stage?
<p>
</div>
<div class="answer" id="a4">
<p>As planned we could not complete the website at the given time as we desire but that
does not mean there is no space for future development that's why we mean this website is still in
the
development stage and we can't say this final product also</p>
</div>
</div>
<div class="faq">
<div class="question" id="q5" onclick="show(4)">
<p>• What are the services offered?</p>
</div>
<div class="answer" id="a5">
<p>At the development stage, we currently offer a limited number of information about
places In the future we are planned to add services like booking hotels, hiring cabs, etc</p>
</div>
</div>
<div class="faq">
<div class="question" id="q6" onclick="show(5)">
<p>• Is this free to use?</p>
</div>
<div class="answer" id="a6">
<p>For now and future this will be free to use, But in the future, we planned to show
advertisements</p>
</div>
</div>
<div class="faq">
<div class="question" id="q7" onclick="show(6)">
<p>• How many countries or places are covered by this website?</p>
</div>
<div class="answer" id="a7">
<p>At this stage, our only focus is Sri Lanka although we only covered a few places for now
</p>
</div>
</div>
<div class="faq">
<div class="question" id="q8" onclick="show(7)">
<p>• Is it possible to have a booking using the website?</p>
</div>
<div class="answer" id="a8">
<p>At this stage no but we already planned to add a booking service on the website</p>
</div>
</div>
</section>
<script src="navbar.js"></script>
<script src="log.js"></script>
<script>
function show(a) {
const ids = ["a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8"];
var element = document.getElementById(ids[a]);
if (element.style.display == "none") {
ids.forEach(id => {
document.getElementById(id).style.display = "none";
});
element.style.display = "block";
} else {
element.style.display = "none";
}
}
function users() {
var xhr = new XMLHttpRequest();
xhr.open('POST', 'about.php', true);
xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded')
xhr.onload = function () {
if (this.status == 200) {
if (this.responseText != false) {
document.getElementById("users").innerHTML = this.responseText;
}
}
}
xhr.send("user");
}
function locations() {
var xhr = new XMLHttpRequest();
xhr.open('POST', 'about.php', true);
xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded')
xhr.onload = function () {
if (this.status == 200) {
if (this.responseText != false) {
document.getElementById("places").innerHTML = this.responseText;
}
}
}
xhr.send("place");
}
function visits() {
var xhr = new XMLHttpRequest();
xhr.open('POST', 'about.php', true);
xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded')
xhr.onload = function () {
if (this.status == 200) {
if (this.responseText != false) {
document.getElementById("visits").innerHTML = this.responseText;
}
}
}
xhr.send("visit");
}
function reviews() {
var xhr = new XMLHttpRequest();
xhr.open('POST', 'about.php', true);
xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded')
xhr.onload = function () {
if (this.status == 200) {
if (this.responseText != false) {
document.getElementById("reviews").innerHTML = this.responseText;
}
}
}
xhr.send("review");
}
window.onload = function () {
users();
locations();
visits();
reviews();
}
</script>
</body>
</html>