-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path34-publications.Rmd
82 lines (69 loc) · 2.28 KB
/
34-publications.Rmd
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
# Publications
The following publications have applied the AED modelling library. Please edit this page by clicking the above icon if you wish to have a new publication added, or contact the authors.
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
/* Style the buttons inside the tab */
.tab button {
background-color: #2481AA;
float: left;
border: none;
outline: none;
cursor: pointer;
padding: 14px 16px;
transition: 0.3s;
font-size: 17px;
color: #FFFFFF;
font-weight: bold;
}
</style>
</head>
<body>
<div class="tab">
<button class="tablinks" onclick="openCity(event, 'London')"id="defaultOpen">Publications</button>
<button class="tablinks" onclick="openCity(event, 'Paris')">Tab 2</button>
<button class="tablinks" onclick="openCity(event, 'Tokyo')">Tab 3</button>
</div>
<div id="London" class="tabcontent">
<p>
```{r 35-publications, echo=FALSE, message=FALSE, warning=FALSE}
library(knitr)
library(kableExtra)
publications <- read.csv("tables/34-publications/publications.csv", check.names=FALSE)
kable(publications,"html", escape = F, align = "c", caption = "Publications") %>%
kable_styling(publications, bootstrap_options = "basic",
full_width = F, position = "left", font_size = 12) %>%
column_spec(1, width_min = "6em") %>%
column_spec(2, width_min = "6em") %>%
column_spec(3, width_min = "6em") %>%
row_spec(1:19, background = 'white') %>%
scroll_box(width = "750px", height = "900px",
fixed_thead = FALSE)
```
</p>
</div>
<div id="Paris" class="tabcontent">
<h3>Tab 2</h3>
<p>This is the second tab</p>
</div>
<div id="Tokyo" class="tabcontent">
<h3>Tab 3</h3>
<p>This is the third tab.</p>
</div>
<script>
function openCity(evt, cityName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablinks");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
document.getElementById(cityName).style.display = "block";
evt.currentTarget.className += " active";
}
document.getElementById("defaultOpen").click();
</script>
</body>