-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
269 lines (243 loc) · 12.4 KB
/
index.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
<!doctype html>
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M7QVCMH6JH"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
''
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-M7QVCMH6JH');
</script>
<meta charset="utf-8">
<title>LEAP — stakeholders and lessons</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Interactive database of stakeholders with formal status that have or can have an impact on the specific problems of the young population in the Cluj metropolitan area, lessons learnt from the quantitative and qualitative studies as well as policy recommendations #LEAPCluj">
<meta name="author" content="Denes Csala">
<meta name="keywords" content="leapcluj leap pont group cluj-napoca cluj kolozsvar erdely transylvania youth romania transilvania youth children parents teacher foundation botnar dataviz d3plus csaladenes dc2 d3js d3" />
<meta property="og:image" content="https://data.csaladen.es/leap/snapshot.png" />
<meta property="og:description" content="Interactive database of stakeholders with formal status that have or can have an impact on the specific problems of the young population in the Cluj metropolitan area, lessons learnt from the quantitative and qualitative studies as well as policy recommendations #LEAPCluj">
<meta property="og:title" content="LEAP — stakeholders and lessons" />
<meta property="og:type" content="article" />
<meta property="og:site_name" content="https://leapcluj.ro" />
<meta property="og:url" content="https://leapcluj.ro" />
<meta property="fb:admins" content="LEAPcluj" />
<link rel="icon" href="https://leapcluj.ro/wp-content/uploads/2020/05/cropped-LEAP-logo1x1-192x192.png" sizes="192x192" />
<link rel="apple-touch-icon" href="https://leapcluj.ro/wp-content/uploads/2020/05/cropped-LEAP-logo1x1-180x180.png" />
<meta name="msapplication-TileImage" content="https://leapcluj.ro/wp-content/uploads/2020/05/cropped-LEAP-logo1x1-270x270.png" />
<!-- |---------------------------------------------------------------------------| -->
<!-- viz created by: Denes Csala Data Consulting | https://data.csaladen.es | 2021 -->
<!-- MIT LICENSE | https://data.csaladen.es/leap/LICENSE --------------------------->
<!-- |---------------------------------------------------------------------------| -->
<link rel="stylesheet" href="css/bubbles.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Montserrat:400,700,900">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Condensed:400,700,900">
</head>
<body>
<div class="container">
<div id="header-parent">
<div id="header">
<table>
<tr>
<td>
<a href="//leapcluj.ro/">
<img src="img/leap_logo.png" alt="back to main page" id="logo">
<div id="logotext">back to main page</div>
</a>
</td>
<td>
<div id="title">
<div id="title1">
LEAP — stakeholders and lessons
</div>
<div id="title2">
Interactive database of stakeholders with formal status that have or can have an impact on the specific problems of the young population in the Cluj metropolitan area, lessons learnt from the quantitative and qualitative studies as well as policy recommendations
</div>
</div>
</td>
</tr>
</table>
</div>
</div>
<div id="main-parent">
<div id="main">
<div id="toolbar">
<span id="group"><span>Group by</span>
<a href="javascript:;" id="all" class="button">All</a>
<a href="javascript:;" id="priority" class="button active">Priority</a>
</span>
<span id="filter" style='margin-left: 30px;'><span>Filter by priority</span></span>
<span id="neighbors"><span>Show only neighbors on selection</span>
<a href="javascript:;" id="on" class="button">On</a>
<a href="javascript:;" id="off" class="button active">Off</a>
</span>
<span id="color"><span>Color by</span>
<a href="javascript:;" id="all" class="button">All</a>
<a href="javascript:;" id="priority" class="button active">Priority</a>
</span>
</div>
<div id="vis">
<div id='legend'><span>select</span>
<img src="img/left.png" alt="select" class="mouse">
<img src="img/right.png" alt="isolate" class="mouse"><span>isolate</span>
<div id='dc2' class='credit'>
<a href='https://data.csaladen.es/' target='_blank' rel='author'>
<img src='https://www.csaladen.es/favicon.png' style="height:30px;" title='viz created by: Denes Csala Data Consulting' alt='viz by Denes Csala Data Consulting' />
</a>
</div>
</div>
</div>
</div>
</div>
<div id="details">
<div id="selected-head-parent">
<div id="selected-head">
</div>
</div>
<div id="tabs-head-parent">
<table id="tabs-head">
<thead>
<th style="padding-left:10px;">
<div class='button' id='stakeholder-tab'>stakeholders</div>
</th>
<th>
<div style="width:20px;"> </div>
</th>
<th style="padding-right:10px;">
<div class='button active' id='lessons-tab'>lessons</div>
</th>
</thead>
</table>
</div>
<div id="stakeholder-all">
<div id="stakeholder-head-parent">
<table id="stakeholder-head" class='table'>
<thead>
<th><span>keywords</span> <span class="stakeholder-head-icon">▼</span></th>
<th>stakeholders</th>
</thead>
</table>
</div>
<div id="stakeholder-table-parent">
<div id="stakeholder-table">
<table class='table'>
<tbody></tbody>
</table>
</div>
</div>
</div>
<div id="lessons-all">
<div id="lessons-head-parent">
<table id="lessons-head" class='table'>
<thead>
<th><span>lessons</span> <span class="lessons-head-icon">▼</span></th>
<th>
<div id='lessons-legend'>
<span>
<img src="img/type/pol.png">
<a href="javascript:;" class="button active"
id="toggle-lessons_Policy-recommendations">
Policy recommendations
</a>
</span>
<span>
<img src="img/type/quan.png">
<a href="javascript:;" class="button active"
id="toggle-lessons_Quantitative-research">
Quantitative research
</a>
</span>
<span>
<img src="img/type/qual.png">
<a href="javascript:;" class="button active" id="toggle-lessons_Qualitative-research">
Qualitative research
</a>
</span>
</div>
</th>
</thead>
</table>
</div>
<div id="lessons-table-parent">
<div id="lessons-table">
</div>
</div>
</div>
</div>
<button class="scrollToTopBtn">▲</button>
</div>
<script src="https://d3js.org/d3.v4.min.js"></script>
<!-- <script src="src/d3js.org/d3.v4.min.js"></script> -->
<!-- <script src="//d3plus.org/js/d3plus-text.v0.10.full.min.js"></script> -->
<!-- <script src="//d3plus.org/js/d3plus-plot.v0.9.full.min.js"></script> -->
<!-- <script src="https://d3plus.org/js/d3plus.v2.0.0-alpha.30.full.min.js"></script> -->
<script src="src/d3plus2.js"></script>
<script src="src/tooltip.js"></script>
<script src="src/bubbles.js"></script>
<script>
//scrolltotop
var scrollToTopBtn = document.querySelector(".scrollToTopBtn")
var rootElement = document.documentElement
function handleScroll() {
// Do something on scroll
var scrollTotal = rootElement.scrollHeight - rootElement.clientHeight
if ((rootElement.scrollTop / scrollTotal) > 0.05) {
// Show button
scrollToTopBtn.classList.add("showBtn")
} else {
// Hide button
scrollToTopBtn.classList.remove("showBtn")
}
}
function scrollToTop() {
// Scroll to top logic
rootElement.scrollTo({
top: 0,
behavior: "smooth"
})
}
scrollToTopBtn.addEventListener("click", scrollToTop)
// document.addEventListener("scroll", handleScroll)
//rescale
// var width = 1000; //defined in bubbles.js
// var height = 10;
var rescale = function() {
//scale content
var container = document.getElementsByClassName('container')[0]
var parent = document.body;
var scal = Math.min(
(parent.offsetWidth) /
width,
(parent.offsetHeight) /
height)
if (scal < 1) {
console.log('rendering...scaling', scal)
container.width = width
container.height = height
container.style.WebkitTransform = "scale(" + scal + ")";
container.style.OTransform = "scale(" + scal + ")";
container.style.MozTransform = "scale(" + scal + ")";
container.style.msTransform = "scale(" + scal + ")";
container.style.Transform = "scale(" + scal + ")";
container.style.WebkitTransformOrigin = "0% 0%";
container.style.OTransformOrigin = "0% 0%";
container.style.MozTransformOrigin = "0% 0%";
container.style.msTransformOrigin = "0% 0%";
container.style.TransformOrigin = "0% 0%";
} else {
console.log('rendering...no scaling', scal)
container.width = parent.offsetWidth
container.height = parent.offsetHeight
}
// container.attr('src', 'frame.html')
};
//init view
rescale();
</script>
</body>
</html>