-
Notifications
You must be signed in to change notification settings - Fork 3
/
events.html
130 lines (113 loc) · 4.3 KB
/
events.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
---
title: Summit
layout: dark
---
<div class="events-page page-content">
<div class="bg-beige container-fluid landing-events">
<div class="row">
<div class="col-md-12">
<img src="assets/images/pages/events/landing_events.jpg" alt="" class="img-fluid min-width-100">
</div>
</div>
<div class="row fabcity-mt-40">
<h2 class="col-md-6">
Fab City<br/>Summit
</h2>
<div class="col-md-6">
<p>
The annual Fab City Summit brings together city leaders, enthusiasts, industry and policy-makers to debate and explore innovations in productive cities.
Historically hosted by a Network member, it is a chance for new Network members to pledge to join, and existing members to exchange learnings and advance our collective roadmap. Consisting of keynote talks,
panels and workshops it is complemented by the Fab City Campus, a pop-up Fab City demonstrator to demonstrate various citizen-led approaches to local circularity and productivity of food, energy and materials.
</p>
</div>
</div>
<div class="width-100 position-relative fabcity-mt-50">
<div id="roadmap-component" class="roadmap-component timeline-component overflow-x-hidden">
<ul class="timeline-container width-100 align-items-start">
{% assign events = site.data.roadmap.events | sort: "year" %}
{% for item in events %}
<li class="timelime-item flex-column">
<div class="timeline-dot"></div>
<div class="timeline-item-header fabcity-mb-20">
{{item.year}} – {{item.location}}
</div>
{% for text in item.text %}
<h4 class="timelime-item-title fabcity-mb-10 display-block">
{{text}}
</h4>
{% endfor %}
{% if item.link %}
<a href="{{item.link}}" class="fab-city-link" target="_blank">
<h4 class="fabcity-font-size-20 text-underline">{{item.link-text}}</h4>
</a>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
<div class="timeline-control back" onclick="toRight()">
<div class="arrow arrow-left black"></div>
</div>
<div class="timeline-control next" onclick="toLeft()">
<div class="arrow arrow-right black"></div>
</div>
</div>
</div>
<div class="fabcity-p-tb-50 container-fluid">
<div>
<h3 class="fabcity-mb-50">
Upcoming Summits
</h3>
</div>
<div class="row">
<div class="col-md-6">
<img src="assets/images/pages/events/bali.png" alt="" class="img-fluid fabcity-mb-35 min-width-100">
<p>Bali 2022</p>
</div>
<div class="col-md-6">
<img src="assets/images/pages/events/mexico.png" alt="" class="img-fluid fabcity-mb-35 min-width-100">
<p>
Mexico 2023
</p>
</div>
</div>
</div>
</div>
<script type="text/javascript">
{% assign events = site.data.roadmap.events | sort: "year" %}
function toLeft() {
let elmnt = document.getElementById("roadmap-component");
let x = elmnt.scrollLeft;
let w = elmnt.scrollWidth;
let c = elmnt.clientWidth;
let s = (w - c) / {{ events.last.number }};
elmnt.scrollLeft += 320;
}
function toRight() {
let elmnt = document.getElementById("roadmap-component");
let x = elmnt.scrollLeft;
let w = elmnt.scrollWidth;
let c = elmnt.clientWidth;
let s = (w - c) / {{ events.last.number | prepend: "-" }};
elmnt.scrollLeft -= 320;
}
function scrollPosi() {
let elmnt = document.getElementById("roadmap-component");
let x = elmnt.scrollLeft;
let w = elmnt.scrollWidth;
let c = elmnt.clientWidth;
let s = x / ((w - c) / {{ events.last.number | plus: 1 }});
switch(true) {
{% assign events2 = site.data.roadmap.events | sort: "year" | reverse %}
{% for item in events2 %}
// case (s < {{ item.number | plus: 1 }}):
// document.getElementById("{{ item.number }}").classList.add("active");
// document.getElementById("{{ item.number | plus: 1 | at_most: events.count }}").classList.remove("active");
// document.getElementById("{{ item.number | minus: 1 | at_least: 0 }}").classList.remove("active");
// break;
{% endfor %}
default:
break;
}
}
</script>