-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathi_food.html
83 lines (72 loc) · 2.83 KB
/
i_food.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
<!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>Document</title>
<link rel="stylesheet" href="style_food.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Sora&family=Tourney:ital,wght@0,600;1,300&display=swap" rel="stylesheet">
</head>
<body>
<div id="container">
<h1>Do you have a bill? Let's Split!</h1>
<form>
<div class="amount">
<p>
Bill amount:</p>
<span> <input type="text" id= "bill" placeholder="Write bill amount ($)...">
</span>
</div>
<div class="amount">
<p>
Number of people:</p>
<span> <input type="text" id="people" placeholder="How many people ...">
</span>
</div>
<p><img src="https://img.icons8.com/dusk/35/000000/tip.png"/> What about tips?</p>
<button id="addTip">Add a Tip!</button>
<select id="tip">
<option disabled>Select an option</option>
<option value="0.30">WOW! 30% 🥇</option>
<option value="0.20">Good service! 20% 🤝</option>
<option value="0.10">It was OK. 10% ✅</option>
<option value="0.00" selected>No tip! 🤦</option>
</select>
<button id="btn">Calculate</button>
</form>
<div id="showTotalAmountToPay">
<!-- #1 -->
<div id="billSplit">
<p>Bill per person:</p>
<span>$</span>
<span id="dividedBill"></span>
</div>
<!-- #2 -->
<div id="totalTip">
<p>Tip per person:</p>
<span>$</span>
<span id="dividedTip"></span>
</div>
<!-- #3 -->
<div id="totalAmount">
<p>Total per person:</p>
<span>$</span>
<span id="billAndTip"></span>
</div>
</div>
<div class="close">
<button class="btnClose"><img src="https://img.icons8.com/bubbles/57/000000/process.png" alt="reload"></button>
</div>
</div>
<div class="goback">
<a href="index.html"><img src="https://img.icons8.com/dusk/75/000000/circled-left-2.png"/></a>
</div>
<canvas id="my-canvas"></canvas>
<script src="index.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="script.js"></script>
</body>
</html>