-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
97 lines (86 loc) · 4.25 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<title>Tip Calculator</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="">
<meta property="og:type" content="">
<meta property="og:url" content="">
<meta property="og:image" content="">
<link rel="manifest" href="site.webmanifest">
<link rel="apple-touch-icon" href="icon.png">
<!-- Place favicon.ico in the root directory -->
<!-- Boostrap stylesheet -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<!-- Local stylesheet -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Nobile:wght@400;500&display=swap" rel="stylesheet">
<meta name="theme-color" content="#fafafa">
</head>
<body>
<div class="main-wrapper">
<h1>Tip Calculator</h1>
<form id="tip-form">
<!--Total Bill Input Section -->
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">$</span>
</div>
<input type="number" class="form-control" id="billTotal" placeholder="Total Bill">
</div>
<!--Tip Range Selector Section -->
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">Tip:</span>
</div>
<input type="range" class="form-control-range" id="tipInput" value="0">
<div class="input-group-append">
<span
id="tipOutput" class="input-group-text" >%</span>
</div>
</div>
</form>
<!--Results Section -->
<hr> <!-- Divide line -->
<h3>Results</h3>
<!--Tip Amount Section -->
<form>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">Tip Amount:</span>
</div>
<input type="number" class="form-control" id="tipAmount" disabled>
</div>
<!-- Total Bill with Tip Section -->
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">Total Bill with Tip:</span>
</div>
<input type="text" class="form-control" id="totalBillWithTip" disabled>
</div>
</form>
</div> <!-- End of class="main-wrapper" -->
<footer>
<p><span>Photo by <a href="https://unsplash.com/@sharonmccutcheon?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText" target="_Blank">Sharon McCutcheon</a> on <a href="https://unsplash.com/s/photos/lights?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText" target="_Blank">Unsplash</a></span></p>
</footer>
<!-- Bootstrap bundle -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
<!--Local js scripts -->
<script src="js/vendor/modernizr-3.11.2.min.js"></script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<!-- Google Analytics: change UA-XXXXX-Y to be your site's ID. -->
<script>
window.ga = function () { ga.q.push(arguments) }; ga.q = []; ga.l = +new Date;
ga('create', 'UA-XXXXX-Y', 'auto'); ga('set', 'anonymizeIp', true); ga('set', 'transport', 'beacon'); ga('send', 'pageview')
</script>
<script src="https://www.google-analytics.com/analytics.js" async></script>
</body>
</html>