-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
69 lines (62 loc) · 2.61 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="index.css" />
<link rel="icon" type="image/x-icon" href="train.ico" />
<script src="https://cdn.tailwindcss.com"></script>
<title>PASSENGER COUNTER APP</title>
</head>
<body>
<div class="passenger-detail">
<header class="text-gray-600 body-font">
<div class="container mx-auto flex flex-wrap p-5 flex-col md:flex-row items-center">
<nav class="flex lg:w-2/5 flex-wrap items-center text-base md:ml-auto">
<a class="mr-5 hover:text-gray-900"></a>
<a class="mr-5 hover:text-gray-900"></a>
<a class="mr-5 hover:text-gray-900"></a>
<a class="hover:text-gray-900"></a>
</nav>
<a class="flex order-first lg:order-none lg:w-1/5 title-font font-bold items-center text-gray-900 lg:items-center lg:justify-center mb-4 md:mb-0">
<img class="w-14 h-14 text-white p-2 rounded-full" src="travel.png" />
<span class="ml-3 text-3xl">Passengers</span>
</a>
<div class="lg:w-2/5 inline-flex lg:justify-end ml-5 lg:ml-0">
</div>
</div>
</header>
<div class="passenger-detail-container">
<div id="count-operations">
<h1><strong>People Entered:</strong></h1>
<h2 id="count-el">0</h2>
Adults:
<button id="increment-btn" onclick="increment(), adultincrement()">
INCREMENT 👨
</button><br>
<button id="save-btn" onclick="save()">SAVE 💾</button><br>
Hey there kid:
<button id="increment-btn" onclick="childincrement(), increment()">
INCREMENT 🧒🏻
</button><br>
Senior Citizen:
<button id="increment-btn" onclick="seniorincrement(), increment()">
INCREMENT 👴🏻
</button><br>
<p id="save-el">Previous Entries :</p><br>
<Button id="reset-btn" onclick="reset()">RESET ↩</button>
</div>
<div id="passenger-data">
<h3>Total Passenger Entries 👥 :</h3>
<p class="total" id="total-el">0</p>
<h3>Adults entered :</h3>
<p class="total" id="adult-el">0</p>
<h3>Children entered :</h3>
<p class="total" id="child-el">0</p>
<h3>Senior Citizen entered :</h3>
<p class="total" id="senior-el">0</p>
</div>
</div>
</div>
<script src="index.js"></script>
</body>
</html>