-
Notifications
You must be signed in to change notification settings - Fork 43
/
iframe-visualization.html
83 lines (78 loc) · 2.19 KB
/
iframe-visualization.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
---
layout: iframe-layout
permalink: /iframe-visualization/
---
<style>
.graph-container {
height: 100%;
width: 70%;
top: 0;
position: fixed;
right: 0;
z-index: 1000;
}
@media (max-width: 768px) {
.graph-container {
height: 400px;
width: 100%;
}
.vis-text{
margin-top: 400px;
}
.bg-graph{
width: 100%;
height: 400px;
position: fixed;
top: 0;
right: 0;
z-index: 99999999;
}
}
</style>
<div id="page-loader"><span class="preloader-interior"></span></div>
<div id="fullpage">
{% for visualization-slide in site.visualization-slider %}
{% capture id %}{{ visualization-slide.id | remove:'/' | remove:'visualization-slider' | downcase }}{% endcapture %}
<div class="section">
<div class="container">
<div class="row align-items-center">
{%- if page.responsive -%}
<div class="col-lg-5 col-md-5 col-sm-12">
{{ visualization-slide.content }}
</div>
<div class="col-lg-7 col-md-7 col-sm-12 d-block d-lg-none mb-5">
<img data-src="{{ site.baseurl }}/assets/img/{{visualization-slide.image}}" alt="" class="img-fluid">
</div>
{%- else -%}
<div class="col-lg-5 col-md-5 col-sm-12 vis-text">
{{ visualization-slide.content }}
</div>
{%- endif -%}
</div>
</div>
</div>
{% endfor %}
</div>
{%- if page.responsive -%}
<div class="tooltip-graph d-none d-lg-block"></div>
<div class="graph-container d-none d-lg-block">
<svg width="100%" height="100%"></svg>
</div>
{%- else -%}
<div class="tooltip-graph"></div>
<div class="bg-graph"></div>
<div class="graph-container">
<svg width="100%" height="100%"></svg>
</div>
{%- endif -%}
<script src="{{ site.baseurl }}/assets/javascript/papaparse.min.js"></script>
<script src="{{ site.baseurl }}/assets/javascript/towergraph.js"></script>
<script type="text/javascript">
var anchors = [
{% for visualization-slide in site.visualization-slider %}
{% capture id %}{{ visualization-slide.id | remove:'/' | remove:'visualization-slider' | downcase }}{% endcapture %}
'{{id}}'{% if forloop.last == false %},{% endif %}
{% endfor %}
]
getGraphData($, "{{ site.contracts_url | prepend: site.baseurl }}");
</script>