-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.old.html
290 lines (266 loc) · 11.3 KB
/
index.old.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
<!DOCTYPE html>
<html lang="da-DK" dir="ltr">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Din deklaration | Energinet</title>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1"
crossorigin="anonymous"
/>
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="stylesheet" type="text/css" href="print.css" media="print" />
</head>
<body>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW"
crossorigin="anonymous"
defer
></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]" defer></script>
<script src="https://unpkg.com/[email protected]/dist/bundle.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-piechart-outlabels" defer></script>
<script src="script.js" defer></script>
<div id="banner-background">
<div class="container">
<div class="p-3 rounded-lg">
<img src="./images/logo.png" alt="Energinet" />
</div>
</div>
</div>
<div class="container">
<div class="bg-light rounded-lg p-5 m-3">
<h1 class="display-4">Din deklaration <span id="title-year"></span></h1>
<div class="section-not-to-print">
<p class="lead mt-4">
De beregnede emissioner er baseret på dit timeforbrug og lokation for de viste målere, kombineret med Energinets områdeafhængige
timedeklaration. De beregnede nøgletal per kWh er dine gennemsnitsværdier for perioden. Jo større del af dit forbrug, der ligger
i perioder med høj andel af vedvarende energi (VE), jo lavere vil emissionerne være per kWh. Bemærk:
</p>
<ul class="lead">
<li>
El-deklarationerne fra din elhandler er baseret på handel med certifikater, men de påvirker ikke hvad der leveres fra
elnettet. Læs mere om de forskellige deklarationer på Energinets hjemmeside her:
<a href="https://energinet.dk/Deklarationer" target="_blank" rel="noopener noreferrer">Deklarationer</a>.
</li>
<li>
Producerer du selv strøm, skal du selv indregne den del af forbrug og produktion, der ikke passerer elmåleren (egetforbrug).
</li>
<li>
VE inkluderer vind, sol, vand, bioenergi og 55% affald. Se Energistyrelsens energistatistik
<a
href="https://ens.dk/service/statistik-data-noegletal-og-kort/maanedlig-og-aarlig-energistatistik"
target="_blank"
rel="noopener noreferrer"
>her</a
>.
</li>
<li>Timedeklaration finder du på Energidataservice i følgende to datasæt:</li>
<ul>
<li>
<a href="https://www.energidataservice.dk/tso-electricity/declarationemissionhour" target="_blank" rel="noopener noreferrer"
>Declaration, Emission per Hour</a
>
</li>
<li>
<a href="https://www.energidataservice.dk/tso-electricity/declarationcoveragehour" target="_blank" rel="noopener noreferrer"
>Declaration, Consumption coverage per Hour</a
>
</li>
</ul>
<li>
Venligst skriv til
<a href="mailto: [email protected]">[email protected]</a>, hvis du oplever fejl eller har feedback til løsningen.
</li>
</ul>
<hr class="my-4" />
<p class="lead">
Beregn din emission ved at indtaste din token fra eloverblik.dk (anskaffelse af token:
<a href="./eloverblik_token_vejledning.pdf" target="_blank">Adgang til egne data via API-kald</a>):
</p>
<div class="input-group mb-3">
<input type="text" class="form-control" id="input-token" placeholder="Token" />
<select class="form-control-sm px-3 mx-2" id="input-year">
<option value="2022">2022</option>
<option value="2021">2021</option>
<option value="2020">2020</option>
<option value="2019">2019</option>
<option value="2018">2018</option>
<option value="2017">2017</option>
</select>
<button class="eng-button btn btn-primary px-3" id="search-button" disabled type="button" onclick="retrieveMasterdata(this)">
Fremsøg
</button>
</div>
</div>
<!-- section-not-to-print ends -->
<div class="master-data-sector" hidden>
<div class="pt-3">
<h3>Stamdata</h3>
</div>
<h5 class="pt-3">Deklarationen gælder:</h5>
<div class="pt-3 table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>CVR</th>
<th>Navn</th>
</tr>
</thead>
<tbody id="table-cvr-data"></tbody>
</table>
</div>
<div class="section-not-to-print">
<h5 class="pt-3">Deklarationen omfatter:</h5>
<div class="pt-3 table-responsive" id="measuring-points">
<table class="table table-striped">
<thead>
<tr>
<th></th>
<th>Målepunkt ID</th>
<th>Addresse</th>
<th>Postnummer</th>
<th>By</th>
<th>Status</th>
</tr>
</thead>
<tbody class="table-mp-data"></tbody>
</table>
</div>
<div class="mt-3">
<h5 id="download-status"></h5>
</div>
<button class="btn btn-primary px-3 my-3 eng-button" type="button" onclick="computeDeclaration(this)">Beregn</button>
<button class="btn btn-primary px-3 my-3 eng-button" type="button" onclick="toogleCheckedBoxes(this)">Vælg/fravælg alle</button>
</div>
<!-- section-not-to-print ends -->
</div>
<!-- master-data-sector ends -->
<div class="emission-data-sector" hidden>
<div class="mt-3 group-together">
<h3>Din grønne profil</h3>
<div class="pt-3">
<table class="table table-borderless text-center align-middle">
<tr>
<td class="h5">Andel af vedvarende energi i dit elforbrug</td>
<td class="h5">Din emissions profil</td>
<td class="h5">Din udledning i forhold til gennemsnittet</td>
</tr>
<tr>
<td><span id="gauge-green-meter"></span></td>
<td>
<div class="emission-numbers">
<div>Dit totale forbrug</div>
<div id="num-consumption-total"></div>
<div>Din totale CO<sub>2</sub>-udledning</div>
<div id="num-co2-total"></div>
<div>Din gennemsnitlige CO<sub>2</sub>-udledning</div>
<div id="num-co2-relative"></div>
<div>Gennemsnitlig CO<sub>2</sub>-udledning</div>
<div id="num-co2-average"></div>
</div>
</td>
<td><span id="gauge-indicator-meter"></span></td>
</tr>
</table>
</div>
</div>
<!-- group-together ends -->
<div class="page-break-before">
<div class="pt-3">
<h3>Energikilder anvendt til fremstilling af din el</h3>
</div>
<div class="row pt-3 align-middle">
<div class="col-12 col-md-7 align-middle" id="bar-chart-container"></div>
<div class="col-12 col-md-5 align-middle">
<table class="table table-striped align-middle">
<thead>
<tr>
<th></th>
<th class="text-center">Energikilde</th>
<th class="text-center">Forbrug</th>
<th class="text-center">Procentvis</th>
<th class="text-center">Reference</th>
</tr>
</thead>
<tbody id="table-fuels"></tbody>
</table>
</div>
</div>
</div>
<!-- page-break-before ends -->
<div class="pt-3 page-break-before">
<div class="pt-3">
<h3>Hvor kommer din strøm fra?</h3>
</div>
<table class="table table-striped">
<thead>
<tr>
<th></th>
<th class="text-center">Energikilde</th>
<th class="text-center">Vestdanmark</th>
<th class="text-center">Østdanmark</th>
<th class="text-center">Tyskland</th>
<th class="text-center">Norge</th>
<th class="text-center">Sverige</th>
<th class="text-center">Holland</th>
<th class="text-center">Procentvis</th>
</tr>
</thead>
<tbody id="table-from-production"></tbody>
</table>
</div>
<!-- page-break-before ends -->
<div class="pt-3 page-break-before">
<div class="pt-3">
<h3>Emissioner som følge af dit forbrug</h3>
</div>
<table class="table table-striped" id="table-emission-data">
<thead>
<tr>
<th>Ved forbrug af 1 kWh fremkommer</th>
<th>Individuel deklaration</th>
<th>Reference</th>
</tr>
</thead>
<tbody id="table-emissions"></tbody>
</table>
</div>
<!-- page-break-before ends -->
</div>
<!-- emission-data-sector ends -->
<div class="pt-3">
<h4 id="label-status"></h4>
</div>
<div class="master-data-sector" hidden>
<div class="section-only-print page-break-before">
<h5 class="pt-3">Deklarationen omfatter:</h5>
<div class="pt-3 table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th></th>
<th>Målepunkt ID</th>
<th>Addresse</th>
<th>Postnummer</th>
<th>By</th>
<th>Status</th>
</tr>
</thead>
<tbody class="table-mp-data"></tbody>
</table>
</div>
</div>
<!-- page-break-before ends -->
</div>
<!-- emission-data-sector ends -->
</div>
<!-- bg-light p-5 rounded-lg m-3 ends -->
</div>
<!-- container ends -->
</body>
</html>