-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.htm
64 lines (62 loc) · 2.05 KB
/
index.htm
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
<!DOCTYPE html>
<html lang="en-GB">
<head>
<meta charset="UTF-8">
</head>
<title>Page Title</title>
<style>
.canvas-wrapper {
display: inline-block;
}
</style>
<script type="text/html" id="objective-template">
<fieldset name="objective{i}">
<span>
<label for="name{i}">{i+1}:</label>
<input name="name{i}" type="text" value="{name}">
</span>
<span>
<label for="fun{i}">Fun</label>
<input name="fun{i}" type="range" min="0" max="1" step="0.01" value="{fun}">
</span>
<span>
<label for="achievement{i}">Achievement</label>
<input name="achievement{i}" type="range" min="0" max="1" step="0.01" value="{achievement}">
</span>
<span>
<label for="ease{i}">Ease</label>
<input name="ease{i}" type="range" min="0" max="1" step="0.01" value="{ease}">
</span>
<span>
<label for="impact{i}">Impact</label>
<input name="impact{i}" type="range" min="0" max="1" step="0.01" value="{impact}">
</span>
<span>
<button type="button" name="delete{i}">Delete</button>
</span>
</fieldset>
</script>
<body>
<form id="pc-form">
<button type="button" name="add">Add Objective</button>
<button type="button" name="download-csv">Download CSV</button>
<span>
<label for="upload-csv">Upload CSV:</label>
<input type="file" name="upload-csv" accept="text/csv" />
</span>
</form>
<div>
<div class="canvas-wrapper">
<canvas id="personal-chart" width="250" height="250"></canvas>
</div>
<div class="canvas-wrapper">
<canvas id="collective-chart" width="250" height="250"></canvas>
</div>
<div class="canvas-wrapper">
<canvas id="combined-chart" width="250" height="250"></canvas>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.4.1/chart.umd.min.js"></script>
<script src="main.js"></script>
</body>
</html>