forked from ProjectPODER/TowerBuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
iframe-visualization.html
56 lines (49 loc) · 1.51 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
---
layout: iframe-layout
permalink: /iframe-visualization/
---
<style>
.graph-container {
height: 100%;
width: 70%;
top: 0;
position: fixed;
right: 0;
z-index: 1000;
}
</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">
<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 src="/assets/img/{{visualization-slide.image}}" alt="" class="img-fluid">
</div>
</div>
</div>
</div>
{% endfor %}
</div>
<div class="tooltip d-none d-lg-block"></div>
<div class="graph-container d-none d-lg-block">
<svg width="100%" height="100%"></svg>
</div>
<script src="/assets/javascript/papaparse.min.js"></script>
<script src="/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 %}
]
$.getJSON("{{ site.contracts_url }}", function(json) {
buildGraphData(json);
});
</script>