-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.qmd
147 lines (93 loc) · 2.55 KB
/
index.qmd
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
---
page-layout: custom
lightbox: false
---
<!-- Scripts-->
```{=HTML}
<script src="./js/jquery.js"></script>
<script src="./js/d3js-dvs.js"></script>
<script src="./js/index-array-by.js"></script>
<script src="./js/globe.gl.js"></script>
<script type="module" src="./js/my_globe.gl.js"> </script>
<!-- bootbox modals for Globe -->
<script src="./js/bootbox.js"></script>
<script src="./js/marked.js"></script>
```
<!-- content: globe, dude, text -->
```{=HTML}
<div class="container" >
<div id="intro_start" class="intro w-75"> </div>
<div class="d-flex align-items-end" >
<div id="dude" class="flex-shrink-0 d-none d-lg-block " data-toggle="tooltip" data-bs-html="true"
title= "
Explore our field studies by pushing <i class='fas fa-circle'></i> on the Globe! <br>
Points are locations of {{< var N_birds >}} individuals from {{< var N_species >}} shorebird species we've tracked.
Visit <strong> /Projects/ </strong> for more.
"
>
<img src="./CONTENT/main/dude.webp" class="img-fluid img-right">
<hr>
</div>
<div id= "Earth" class="flex-shrink-0" > </div>
</div>
</div>
```
<!-- before body ends-->
```{=HTML}
<script>
// init bs tooltip
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
});
</script>
<script>
$.get('/CONTENT/main/intro_start.md', function(txt) {
const htmlContent = marked.parse(txt);
$('#intro_start').html(htmlContent);
});
</script>
<!-- <script>
// let the dude talk
$(document).ready(function() {
setTimeout(function() {
$("#dude").tooltip('show');
}, 2000);
setTimeout(function() {
$('#dude').tooltip('hide');
}, 8000);
});
</script> -->
<script>
// intro text as modal
$(document).on('click', '.show-read-more', function(e) {
$.get("/CONTENT/main/intro.md", function (intro_text) {
bootbox.alert({
animate : false,
scrollable : true,
size : "xl",
centerVertical: true,
message : marked.parse(intro_text),
backdrop : true,
closeButton : true,
onShow : function(e) {
$('#dude').tooltip('hide');
$(this).find('.modal-footer').remove();
$('#intro_start').hide();
$('#dude').css('opacity', '0.05');
$('#Earth').css('opacity', '0.05');
},
onHide : function(e) {
$('#intro_start').show();
$('#dude').css('opacity', '1');
$('#Earth').css('opacity', '1');
},
});
});
})
</script>
<!-- <script>
$(document).ready(function(){
$(".nav-footer").remove();
});
</script> -->
```