-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclimate_financing.pug
44 lines (37 loc) · 1.64 KB
/
climate_financing.pug
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
doctype html
html(lang="en")
head
meta(charset="utf-8")
link(href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous")
title Climate financing
link(rel="stylesheet", type="text/css", href="public/style.css")
body.text-responsive
include includes/header.pug
include includes/mixins.pug
div.d-flex.flex-column.flex-lg-row.justify-content-center
// Input
div(class="d-flex flex-wrap justify-content-center py-3 mb-4", style="margin:0 auto")
.flex-column
div
|Regional break-down of the present value of
<br>
|climate finance needed to replace coal with renewables.
+cfUnit("Trillion dollars")
include includes/common_user_inputs.pug
+discountRate
+energyStorage
+coalExport
// Output
div#barchart(style="@media (min-width: 1200px) {width:60%; margin:0 auto;}").mx-auto
// Data
.px-3.mb-3
+resultDataDownload
script(src="https://cdn.jsdelivr.net/npm/d3@7")
script(src="https://cdn.jsdelivr.net/npm/@observablehq/[email protected]")
script(src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous")
// Needed to enable Bootstrap tooltips
script(src="js/enable_tooltips.js")
script(type="module").
import {calculate} from "./js/climate_financing.js"
window.calculate = calculate
calculate()