-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
68 lines (55 loc) · 2.44 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
62
63
64
65
66
67
68
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1 id="title" style="font-size:16px; display:flex; justify-content:center; text-align:center"></h1>
<p>number of panels installed : <span><input type="number" id="panelCount" step="100000"/></span></p>
<p>panel power [W] : <span><input type="number" id="panelPower" step="100"/></span></p>
<!-- <p>cloud cover : <span>
<input type="radio" id="high" name="occultation" value="high">
<label for="high">High</label>
<input type="radio" id="mid" name="occultation" value="mid">
<label for="mid">Medium</label>
<input type="radio" id="low" name="occultation" value="low" checked>
<label for="low">Low</label>
</span></p> -->
<p>number of windturbines : <span><input type="number" id="turbineCount" step="1000"/></span></p>
<!-- <p>windturbine power [kW]: <span><input type="number" id="turbinePower"/></span></p> -->
<label for="turbines">Select the wind turbine:</label>
<select name="turbines" id="cars">
<option value="vestav40">Vestas V42 600/42</option>
</select>
<!-- <canvas id="myChart" style="width:100%;max-width:1300px"></canvas> -->
<!-- <canvas id="solarWind" style="width:100%;max-width:1300px"></canvas> -->
<canvas id="marchCH" style="width:100%;max-width:1300px"></canvas>
<button onclick="showHideCloudCover()">CloudCover</button>
<button onclick="showHideWindspeed()">Wind Speed</button>
<canvas id="sw" style="width:100%;max-width:1300px"></canvas>
<canvas id="sw1" style="width:100%;max-width:1300px"></canvas>
<script src="./dist/main.js"></script>
<script>
// button actions for secondary displays
function showHideCloudCover() {
const swElement = document.getElementById('sw');
if(swElement.style.display === 'none') {
swElement.style.display = 'block'
} else {
swElement.style.display = 'none'
}
}
function showHideWindspeed() {
const sw1Element = document.getElementById('sw1');
if(sw1Element.style.display === 'none') {
sw1Element.style.display = 'block'
} else {
sw1Element.style.display = 'none'
}
}
</script>
</body>
</html>