-
Notifications
You must be signed in to change notification settings - Fork 0
/
coasian_bargain_country.pug
53 lines (48 loc) · 2.33 KB
/
coasian_bargain_country.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
45
46
47
48
49
50
51
52
53
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 Coasian bargain, country deal
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
// img(src="public/country_scc_part6.svg")
div#freeloaderplot
div#scatterplot(style="@media (min-width: 1200px) {width:60%; margin:0 auto;}")
// Data description
div(style="width: 80%; margin:0 auto").py-3
p The data below is a JSON object that consists of 4 key-value pairs:
ul
li
tt "unilateral_cost"
|, which contains a JSON object of
pre {"<country name>": <cost of the country's own unilateral action>}
li
tt "unilateral_benefit"
|, which contains a JSON object of
pre {"<country name>": <benefit of the country's own unilateral action>}
li
tt "freeloader_benefit"
|, which contains a JSON object with the countries doing the unilateral
|action as the keys, and the values being the JSON objects of
pre {"<'freeloader' country name>": <benefit amount>}
li
tt "global_benefit"
|, which contains a JSON object with the country names as the keys,
|and the fraction of global benefit, scaled by a fraction of the country's
|social cost of carbon, as the values.
|The values are in billion dollars.
// 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 {main} from "./js/coasian_bargain_country.js"
main()