-
Notifications
You must be signed in to change notification settings - Fork 117
/
view.html
54 lines (44 loc) · 1.58 KB
/
view.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
<!DOCTYPE html>
<html>
<head>
<title>OpenEVSE Solar Divert Simulations</title>
<script type="text/javascript" src="https://canvasjs.com/assets/script/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<script type="text/javascript" src="simulations.js"></script>
<script type="text/javascript">
var profiles = [
"master",
"default",
"noimport",
"nowaste"
];
window.onload = function () {
init_summary(profiles);
loadSummary("output/summary_master.csv", () => {
loadSummary("output/summary.csv", () => {
generate_summary_table(profiles);
});
});
}
</script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" />
<link rel="stylesheet" href="simulations.css" />
</head>
<body>
<h1>OpenEVSE Solar Divert Simulations</h1>
<a href="interactive.html">Interactive Simulations</a>
<h2>Summary</h2>
<div id="summary_table">
</div>
<script type="text/javascript">
for (const dataset of datasets) {
for (const profile of profiles) {
var id = generate_chart(dataset, profile);
loadChart(id, "output/" + id + ".csv", dataset.title + " (" + profile + ")", dataset.class);
}
}
//<div id="day1_default" style="width:100%; height:300px;" class="solar" csv="output/day1_default.csv" title="Day 1"></div>
</script>
</body>
</html>