-
Notifications
You must be signed in to change notification settings - Fork 13
/
02-why-join.html
164 lines (151 loc) · 4 KB
/
02-why-join.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
---
layout: page
title: pages.why-join
namespace: why-join
permalink: /why-join/
---
<div class="why-join">
<div class="video">
<video id="myVideo" playsinline="playsinline" muted="muted" type="video/mp4"></video>
</div>
<div class="section head dark">
<div class="container">
<div class="row">
<div class="col-md-12">
{% translate_file why-join/section1.md %}
</div>
</div>
</div>
</div>
<div class="top-plains">
<div class="container">
<div class="row">
<div class="col-md-4 box">
<div class="card">
<div class="card-body">
{% translate_file why-join/box1.md %}
</div>
</div>
</div>
<div class="col-md-4 box">
<div class="card">
<div class="card-body">
{% translate_file why-join/box2.md %}
</div>
</div>
</div>
<div class="col-md-4 box">
<div class="card">
<div class="card-body">
{% translate_file why-join/box3.md %}
</div>
</div>
</div>
</div>
</div>
</div>
<div class="section">
<div class="container">
<div class="row">
<div class="col-md-6">
{% translate_file why-join/section2-img.md %}
</div>
<div class="col-md-6">
{% translate_file why-join/section2.md %}
</div>
</div>
</div>
</div>
<div class="section grey">
<div class="container">
<div class="row">
<div class="col-md-6 order-md-2">
{% translate_file why-join/section3-img.md %}
</div>
<div class="col-md-6 order-md-1">
{% translate_file why-join/section3.md %}
</div>
</div>
</div>
</div>
<div class="section dark">
<div class="container">
<div class="row">
<div class="col-md-12">
{% translate_file vision-core-principles/vision.md %}
</div>
</div>
</div>
</div>
<div class="section grey">
<div class="container">
<div class="row">
<div class="col-md-6">
{% translate_file why-join/section5-img.md %}
</div>
<div class="col-md-6">
{% translate_file why-join/section5.md %}
</div>
</div>
</div>
</div>
<div class="section">
<div class="container">
<div class="row">
<div class="col-md-6 order-md-2">
{% translate_file why-join/section6-img.md %}
</div>
<div class="col-md-6 order-md-1">
{% translate_file why-join/section6.md %}
</div>
</div>
</div>
</div>
<div class="section grey">
<div class="container">
<div class="row">
<div class="col-md-12">
{%- include core-principles.html -%}
</div>
</div>
</div>
{%- include footer-plains.html -%}
</div>
</div>
<script type="text/javascript">
var videoSource = new Array();
var mq = window.matchMedia("(max-width: 992px)")
mediaQueryFunc(mq) // Call listener function at run time
mq.addListener(mediaQueryFunc) // Attach listener function on state changes
var i = 0;
var videoCount = videoSource.length;
function videoPlay(videoNum) {
document.getElementById("myVideo").setAttribute("src", videoSource[videoNum]);
document.getElementById("myVideo").load();
document.getElementById("myVideo").play();
}
document.getElementById('myVideo').addEventListener('ended', videoEnded, false);
videoPlay(0);
function videoEnded() {
i++;
if (i === videoCount) {
i = 0;
videoPlay(i);
} else {
videoPlay(i);
}
}
function mediaQueryFunc(x) {
if (x.matches) { // If on mobile
videoSource[0] = '/assets/why-join/join-and-sign-consti_480p.mp4';
videoSource[1] = '/assets/why-join/interact-with-discord-1_480p.mp4';
videoSource[2] = '/assets/why-join/interact-with-discord-2_480p.mp4';
videoSource[3] = '/assets/why-join/voting-custodians_480p.mp4';
} else {
videoSource[0] = '/assets/why-join/join-and-sign-consti.mp4';
videoSource[1] = '/assets/why-join/interact-with-discord-1.mp4';
videoSource[2] = '/assets/why-join/interact-with-discord-2.mp4';
videoSource[3] = '/assets/why-join/voting-custodians.mp4';
}
}
</script>