-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
129 lines (111 loc) · 5.77 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Keep track of your lease mileage usage with this free simple calculator">
<meta name="author" content="Jose Browne">
<title>Sunday Project: Lease Milleage Monitor</title>
<!-- build:style all -->
<link rel="stylesheet" href="bower_components/bootswatch/flatly/bootstrap.css" media="screen">
<link rel="stylesheet" href="bower_components/font-awesome/css/font-awesome.css">
<link rel="stylesheet" href="bower_components/Pikaday/css/pikaday.css">
<link rel="stylesheet" href="css/main.css">
<!-- /build -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-5050117-12', 'digitalmaster.github.io');
ga('send', 'pageview');
</script>
</head>
<body>
<div class="container">
<!-- Header -->
<div class="row text-center">
<h1>Lease Milleage Calculator</h1>
<p>Just a simple, free way to keep track of your car lease milleage.</p>
</div>
<!-- Form -->
<div class="row">
<form id="leaseInfo" class="">
<fieldset>
<div class="form-group">
<label for="date">Start Date:</label>
<div class="input-group">
<input type="text" class="form-control" id="date" name="date" placeholder="Click to select date">
<span class="input-group-addon"><i class="icon-calendar"></i></span>
</div>
</div>
<div class="form-group">
<label for="current">Current Mileage:</label>
<div class="input-group">
<input type="text" class="form-control" id="current" name="current" placeholder="10244">
<span class="input-group-addon"><i class="icon-road"></i></span>
</div>
</div>
<div class="form-group">
<label for="years">Term Years:</label>
<div class="input-group">
<input type="text" class="form-control" id="years" name="years" placeholder="2">
<span class="input-group-addon"><i class="icon-time"></i></span>
</div>
</div>
<div class="form-group">
<label for="milesAllowed">Miles Per year:</label>
<select class="form-control" id="milesAllowed" name="milesAllowed">
<option value="">Select</option>
<option value="10000">10,000</option>
<option value="11000">11,000</option>
<option value="12000">12,000</option>
<option value="13000">13,000</option>
<option value="14000">14,000</option>
<option value="15000">15,000</option>
</select>
</div>
<div class="form-group">
<label for="overagesCost">Overages Cost:</label>
<div class="input-group">
<input class="form-control" id="overagesCost" name="overagesCost" type="text" placeholder="0.25">
<span class="input-group-addon"><i class="icon-dollar"></i></span>
</div>
</div>
</fieldset>
</form>
</div><!-- end .row -->
<!-- Results -->
<div class="row">
<script type="text/template" id="info_pane">
<legend>Information:</legend>
<p>You should be driving around <b><%= perDay %></b> miles per day.</p>
<p>You should be at or under <b><%= shouldBe %></b> miles.</p>
<legend>Your Current Status:</legend>
<p>You are <b><%= difference %></b> miles <%= overUnder %>.</p>
<p>You have <b><%= daysLeft %></b> days left on your contract.</p>
<p>You should drive about <b><%= shouldDrive %></b> miles per day to get back on track.</p>
<p>You have <b><%= leftInYear %></b> miles left this contract year</p>
<p>You will have to pay <b>$<%= willCost %></b></p>
</script>
</div>
</div><!-- end .container -->
<nav class="navbar navbar-default navbar-fixed-bottom">
<span class="footer-text pull-left">By: <a href="http://www.josebrowne.com">Jose Browne</a></span>
<span class='twitter-btn pull-right'>
<li><a href="https://twitter.com/joseBchillin" class="twitter-follow-button" data-show-count="false">@joseBchillin</a></li>
</span>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</nav>
<a href="https://github.com/digitalmaster/leasemon"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>
<!-- build:script min -->
<script src="bower_components/jquery/jquery.js"></script>
<script src="bower_components/underscore/underscore.js"></script>
<script src="bower_components/backbone/backbone.js"></script>
<script src="bower_components/backboneValidateAll/src/javascripts/Backbone.validateAll.js"></script>
<script src="bower_components/moment/moment.js"></script>
<script src="bower_components/Pikaday/pikaday.js"></script>
<script src="js/main.js"></script>
<!-- /build -->
</body>
</html>