-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (54 loc) · 2.36 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
<!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="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" href="assets/styles/normalize.css">
<link rel="stylesheet" href="assets/styles/style.css">
<script src="assets/script/script.js" defer></script>
<title>Tip Calculator</title>
</head>
<body>
<div class="container">
<header>
<h2 class="text-center">Tip Calculator</h2>
</header>
<section>
<!-- Tip info form -->
<form action="" method="post">
<div class="form-group">
<label for="bill-amt">Bill Amount</label>
<input type="text" class="form-control" id="bill-amt">
</div>
<div class="form-group">
<label for="rate-service">Please rate the service</label>
<select class="form-control" id="rate-service">
<option disabled selected value="0">-- Choose an Option --</option>
<option value="0.3">30% - Outstanding</option>
<option value="0.2">20% - Good</option>
<option value="0.15">15% - It was OK</option>
<option value="0.1">10% - Bad</option>
<option value="0.05">5% - Terrible</option>
</select>
</div>
<!-- Info ends -->
</form>
<div class="form-group">
<label for="payment">How many people will pay this bill</label>
<input type="text" class="form-control" id="payment">
</div>
<div class="text-center">
<button id="calculate" type="button">Calculate!</button>
</div>
<!-- Result -->
<div id="result-container">
<strong id="result"></strong>
<span id="persons">Per Person</span>
</p>
</div>
<!-- Result Ends -->
</section>
</div>
</body>
</html>