-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (56 loc) · 3.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link rel="stylesheet" href="main.css"/>
<!-- Global Site Tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-36727669-3"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments)}
gtag('js', new Date());
gtag('config', 'UA-36727669-3');
</script>
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png">
<link rel="manifest" href="/img/manifest.json">
<link rel="mask-icon" href="/img/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="/img/favicon.ico">
<meta name="msapplication-config" content="/img/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<meta property="og:title" content="Four Cents | Petrol Discount Calculator" />
<meta property="og:description" content="A simple calculator to determine what the petrol bowser should display
to pay a certain amount of cash after applying a discount, and whether
E10 fuel is really worth it." />
<meta property="og:image:url" content="http://i.imgur.com/pEtKFDE.png"/>
<meta property="og:image:secure_url" content="https://i.imgur.com/pEtKFDE.png"/>
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="512"/>
<meta property="og:image:height" content="512"/>
<meta property="og:url" content="http://fourcents.me"/>
<meta property="Description" content="A simple calculator to determine what the petrol bowser should display
to pay a certain amount of cash after applying a discount, and whether
E10 fuel is really worth it."/>
<title>4¢ | Petrol Discount Calculator</title>
</head>
<body>
<h1>Four Cents</h1>
<div>
I want to spend $<input type="number" id="cash" placeholder=20 autofocus />,
petrol costs <input type="number" id="petrolprice" placeholder=112.9 /> ¢/L,
and my discount is <input type="number" id="discount" placeholder=4 /> ¢/L.
<br><br>
<h2>Put in $<span class="result_spend">0.00</span> (<span class="result_litres">0.00</span> litres)</h2>
<h3>Use E10 if it is <span class="e10_price">0.00</span>¢/L or cheaper before discounts</h3>
<h4>(You gained <span class="petrol_gained">0</span>L of petrol)</h4>
</div>
<footer>
Source available on <a href="https://github.com/curtiswest/petrol-discount-calculator">GitHub</a>.
Created by <a href="https://www.curtiswest.net">Curtis West</a>.
</footer>
<script src="calc.js"></script>
</body>
</html>