-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (38 loc) · 1.33 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- Fixed viewport -->
<title>Corrected Emission Curve</title>
<!-- Using Chart.js for drawing charts -->
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="chartContainer">
<div class="chart-controls">
<label for="inputYear">
PoS launch:
<input type="number" id="inputYear" placeholder="Enter year" value="2024" />
</label>
<label for="inputPercentage">
Initial emissionrate in %:
<input type="number" id="inputPercentage" placeholder="Enter percentage" value="3" />
</label>
</div>
<canvas id="emissionCurve"></canvas>
<!-- Table to display curve values -->
<div class="table-scroller">
<table id="curveValuesTable">
<thead>
<!-- Headers will be dynamically inserted here -->
</thead>
<tbody>
<!-- Data rows will be dynamically inserted here -->
</tbody>
</table>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="script.js"></script>
</body>
</html>