-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
54 lines (47 loc) · 1.99 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">
<title>Tip Calculator</title>
<link rel="stylesheet" href="css/style.css">
<link rel="icon" href="images/tip.png" type="image/x-icon"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<div id="main">
<h1>Tip Calculator</h1>
<div id="calulator">
<form id="form">
<p>Total Bill:
<p>$ <input id="billTotal" type="text" placeholder="Bill Amount">
<p>Tip Percentage:
<select id="tipPercentage" onchange="java_script_:show(this.options[this.selectedIndex].value)">
<option disabled selected value="0">-- Choose an Option --</option>
<option value="0.3">30% </option>
<option value="0.2">20% </option>
<option value="0.15">15% </option>
<option value="0.1">10% </option>
<option value="0.05">5% </option>
<option value="other">Other </option>
</select>
<input id="tipNum" type="text" placeholder="Tip Value (%)"><span id="percentage">%</span>
</form>
<p># of people:</p>
<input id="numPeople" type="text" placeholder="# of People"> people
<button type="button" id="calculate">Calculate!</button>
<button type="button" id="clear">Clear</button>
</div>
<div id="totalTip">
$<span id="tip">0.00</span>
<small id="each">each</small>
</div>
</div>
<script type="text/javascript" src="tipcalculator.js"></script>
<script src="js/index.js"></script>
</body>
<footer>
Copyright © 2019 - <script>document.write(new Date().getFullYear())</script> Seyon Rajagopal. All rights reserved.</h4>
</br>
<a href="https://github.com/seyon123" target="_blank">GitHub</a> | <a href="https://www.linkedin.com/in/seyon-rajagopal/" target="_blank">LinkedIn</a> | <a href="https://www.seyonrajagopal.ca" target="_blank">Website</a>
</footer>
</html>