-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
55 lines (55 loc) · 2.16 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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1, minimum-scale=1, maximum-scale=1">
<meta charset="utf-8">
<title>FasTip - Tip Calculator</title>
<link rel="stylesheet" href="css/themes/default/jquery.mobile-1.4.0.css">
<link rel="stylesheet" href="css/app.css">
<script src="js/jquery.js"></script>
<script src="js/jquery.mobile-1.4.0.js"></script>
</head>
<body>
<div data-role="page" class="" id="mainPage">
<div data-role="header" class="">
<h1>FasTip</h1>
<a href="#settingsPage" id='settingsButton' class="ui-btn-right" data-role="button" data-icon="gear">Settings</a>
</div>
<div data-role="content" class="">
<form>
<div data-role="fieldcontain">
<label for="billAmount">Bill Amount:</label>
<input type="number" name="billAmount" id="billAmount" data-clear-btn="true" maxlength="3" value="" placeholder="Enter amount here">
</div>
<p style="text-align: center;">
<a href="#" id="calcTip" data-role="button" data-icon="check">Calculate Tip</a>
</p>
<p class="amounts">
<label>Tip Amount</label>
<span id="tipAmount">$0.00</span>
</p>
<p class="amounts totals">
<label>Total Amount</label>
<span id="totalAmount">$0.00</span>
</p>
</form>
</div>
</div>
<div data-role="page" class="" id="settingsPage" data-add-back-btn="true" >
<div data-role="header" class="">
<a href="#mainPage" class="ui-btn ui-icon-delete ui-btn-icon-left" data-rel="back">Cancel</a>
<h1>FasTip - Settings</h1>
</div>
<div data-role="content" class="">
<form>
<input type="number" name="tipPercentage" id="tipPercentage" value="" placeholder="Tip Percentage">
<p style="text-align: center;">
<a href="#" id='saveSettings' data-role="button" data-inline="true" data-icon="check">Save</a>
</p>
</form>
</div>
</div>
<script type="text/javascript" src="cordova.js"></script>
<script src="js/app.js"></script>
</body>
</html>