-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
79 lines (74 loc) · 3.39 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
70
71
72
73
74
75
76
77
78
79
<!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">
<link rel="stylesheet" href="styles/style.css">
<title>Tip calculator FrondEnd Mentor Project</title>
</head>
<body>
<div class="page">
<header class="header">
<h1>spli<br>tter</h1>
</header>
<main class="calculator">
<!--Begining of left section of calculator desktop version-->
<div class="calculator__section_left">
<div action="#" class="section__left_bill">
<p>Bill</p>
<label for="bill" class="dollar">$</label>
<input style='font-size: 24px' id="bill" type="text" name="bill" placeholder="0" required="true" value="">
</div>
<div class="section__left_tip">
<p>Select Tip %</p>
<div class="section__left_tip-percent">
<button class="button">
<span class="percent">5%</span>
</button>
<button class="button">
<span class="percent">10%</span>
</button>
<button id="defButton" class="button">
<span class="percent">15%</span>
</button>
<button class="button">
<span class="percent">25%</span>
</button>
<button class="button">
<span class="percent">50%</span>
</button>
<button class="button_custom">
<span id="custom">Custom</span>
</button>
</div>
</div>
<div action="#" class="section__left_people">
<p>Number of People</p>
<img src="images/icon-person.svg" alt="person icon">
<input style='font-size: 24px' id="person" class="" type="text" placeholder="0" value="" required="true">
</div>
</div>
<!--The end of left section of calculator desktop version-->
<!--Begining of right section of calculator desktop version-->
<form class="calculator__section_right">
<div class="calculator__section_right-tip">
<div class="tip_amount">
<p><span class="white_text">Tip amount</span><br><span class="grey_text">/ person</span></p>
<p><span id="tipPerPerson"class="green_price">0</span></p>
</div>
<div class="tip_total">
<p><span class="white_text">Total</span><br><span class="grey_text">/ person</span></p>
<p><span id="tipTotal" class="green_price">0</span></p>
</div>
</div>
<div class="submit">
<button type="reset" value="reset" id="reset" class="reset_button">reset</button>
</div>
</form>
<!--The end of right section of calculator desktop version-->
</main>
</div>
<script src="main.js"></script>
</body>
</html>