-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
55 lines (55 loc) · 1.6 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>
<title>Inflation Calculator</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.2.1/dist/chart.umd.min.js"></script>
<script type="module" src="calculator.js"></script>
</head>
<body>
<h1>Inflation Calculator</h1>
<div id="grid">
<form>
<label for="dollars">What is</label>
<div class="input-box">
<span class="prefix">$</span>
<input
class="input"
type="text"
placeholder="5"
id="dollars"
onKeyPress="if(this.value.length==10) return false;"
/>
</div>
<label for="startyear">from</label>
<input
type="number"
min="1913"
max="currentYear"
onKeyPress="if(this.value.length==4) return false;"
placeholder="1913"
id="startYear"
class="input"
/>
<label for="endyear">worth in</label>
<input
type="number"
min="1913"
max="currentYear"
onKeyPress="if(this.value.length==4) return false;"
placeholder="2022"
id="endYear"
class="input"
/>
</form>
<button id="submit" type="submit">Calculate</button>
<div id="generated"></div>
<div id="chart-wrapper"></div>
<div id="about"></div>
</div>
<footer></footer>
</body>
</html>