-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
spa.html
211 lines (188 loc) · 7.55 KB
/
spa.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
---
layout: page
title: "SPA Quiz"
permalink: /spa
description: "Test your Security, Privacy and Anonymity and see what you can improve on."
---
{% include variables.html %}
{% assign spaQuiz = site.data._en.spa-quiz.text %}
<section>
<noscript>
<div class="container is-max-tablet has-text-centered">
<h1 class="glitchEffect mb-2" data-text="{{ spaQuiz.title }}️">{{ spaQuiz.title }}️</h1>
{% include c_nojs-message.html %}
</div>
</noscript>
<div class="container is-max-tablet">
<div class="spa-quiz">
<!-- START -->
<section id="main-box" class="spa-quiz__section spa-quiz__section--start has-text-centered">
<h1 class="glitchEffect mb-2" data-text="{{ spaQuiz.title }}️">{{ spaQuiz.title }}️</h1>
<h5>{{ spaQuiz.desc }}</h5>
<button class="play-button button is-primary mt-6" id="quiz-game-btn">{{ spaQuiz.buttons.start }}️</button>
{%- include spa-quiz-sponsor-block.html -%}
</section>
<!-- QUIZ -->
{% assign answersTotalCount = 0 %} {% comment %} for the unique IDs {% endcomment %}
<section id="checks-box" class="spa-quiz__section spa-quiz__section--aswers">
<div class="is-flex is-justify-content-center is-gap-1.5" id="steps">
<span class="spa-quiz__step has-radius-rounded has-background active"></span>
<span class="spa-quiz__step has-radius-rounded has-background"></span>
</div>
<!-- ZONE 1 -->
<div id="zone_1" data-max="130" data-steps="6" class="spa-quiz__zone mt-6">
<div class="has-text-centered">
<h2 class="mb-0">{{ spaQuiz.zone1.title }}️</h2>
<p>{{ spaQuiz.zone1.subtitle }}️</p>
</div>
{% assign zone1 = site.data._en.spa-quiz.data.zone1 %}
{% assign zone1Answers = zone1.answers %}
{% assign groupedZone1Answers = zone1Answers | group_by: "slide" %}
{%- for group in groupedZone1Answers -%}
<div class="tab mt-6">
{% for answer in group.items %}
{% include c_spa-quiz-item.html data=answer value=zone1.value %}
{% assign answersTotalCount = answersTotalCount | plus: 1 %}
{% endfor %}
</div>
{%- endfor -%}
</div>
<!-- ZONE 2 -->
<div id="zone_2" data-max="120" data-steps="4" class="spa-quiz__zone mt-6">
<div class="has-text-centered">
<h2 class="mb-0">{{ spaQuiz.zone2.title }}️</h2>
<p>{{ spaQuiz.zone2.subtitle }}️</p>
</div>
{% assign zone2 = site.data._en.spa-quiz.data.zone2 %}
{% assign zone2Answers = zone2.answers %}
{% assign groupedZone1Answers = zone2Answers | group_by: "slide" %}
{%- for group in groupedZone1Answers -%}
<div class="tab mt-6">
{% for answer in group.items %}
{% include c_spa-quiz-item.html data=answer value=zone2.value %}
{% assign answersTotalCount = answersTotalCount | plus: 1 %}
{% endfor %}
</div>
{%- endfor -%}
</div>
<!-- ZONE 3 -->
<div id="zone_3" data-max="56" data-steps="2" class="spa-quiz__zone mt-6">
<div class="has-text-centered">
<h2 class="mb-0">{{ spaQuiz.zone3.title }}️</h2>
<p>{{ spaQuiz.zone3.subtitle }}️</p>
</div>
{% assign zone3 = site.data._en.spa-quiz.data.zone3 %}
{% assign zone3Answers = zone3.answers %}
{% assign groupedZone1Answers = zone3Answers | group_by: "slide" %}
{%- for group in groupedZone1Answers -%}
<div class="tab mt-6">
{% for answer in group.items %}
{% include c_spa-quiz-item.html data=answer value=zone3.value %}
{% assign answersTotalCount = answersTotalCount | plus: 1 %}
{% endfor %}
</div>
{%- endfor -%}
</div>
<!-- CONTROL BUTTONS -->
<div class="is-flex is-justify-content-space-between mt-6">
<button type="button" class="button is-primary" id="prevBtn">{{ spaQuiz.buttons.prev }}️</button>
<button
type="button"
class="button is-primary"
id="nextBtn"
data-next="{{ spaQuiz.buttons.next }}"
data-results="{{ spaQuiz.buttons.results }}"
>
{{ spaQuiz.buttons.next }}
</button>
</div>
</section>
<!-- RESULTS -->
<section id="result-box" class="spa-quiz__section spa-quiz__section--results">
<div class="results has-text-centered">
<h2 class="results__title mb-0">-</h2>
<div class="spa-quiz__score columns has-5-cols is-size-7 mt-3 is-flex is-flex-wrap-wrap">
<div class="column">
<span id="result1" data-title="{{ spaQuiz.score.weak.desc }}️">{{ spaQuiz.score.weak.points }}</span>
</div>
<div class="column">
<span id="result2" data-title="{{ spaQuiz.score.belowAverage.desc }}">{{ spaQuiz.score.belowAverage.points }}</span>
</div>
<div class="column">
<span id="result3" data-title="{{ spaQuiz.score.techloreApproved.desc }}">{{ spaQuiz.score.techloreApproved.points }}</span>
</div>
<div class="column">
<span id="result4" data-title="{{ spaQuiz.score.aboveBeyond.desc }}">{{ spaQuiz.score.aboveBeyond.points }}</span>
</div>
<div class="column">
<span id="result5" data-title="{{ spaQuiz.score.techloreMax.desc }}">{{ spaQuiz.score.techloreMax.points }}</span>
</div>
</div>
</div>
<div class="progressB has-text-centered mt-6"></div>
<div class="columns mt-4 has-3-cols has-text-centered">
<div class="column">
<h3>{{ spaQuiz.zone1.title }}</h3>
<div class="progressG"></div>
</div>
<div class="column">
<h3>{{ spaQuiz.zone2.title }}</h3>
<div class="progressY"></div>
</div>
<div class="column">
<h3>{{ spaQuiz.zone3.title }}</h3>
<div class="progressR"></div>
</div>
</div>
<div id="rs-info" class="mt-6">
<div class="has-text-centered">
<h2 class="mb-0">{{ spaQuiz.toImprove.title }}️</h2>
<p>{{ spaQuiz.toImprove.desc }}️</p>
</div>
<div class="columns has-1-cols has-3-cols-tablet is-centered is-multiline mt-4">
<div class="column is-half-tablet is-one-third-desktop is-flex">
{% assign icon = "youtube" %}
{% assign buttonLink = "https://www.youtube.com/watch?v=a1i-3xwcSGA" %}
{% include c_feature-box.html
icon=icon
title="Become Anonymous"
desc="The ultimate & complete guide to becoming anonymous, private, and secure on the internet."
buttonText="Watch on YouTube"
buttonLink=buttonLink
class="is-box-danger has-no-background px-4 py-3"
buttonClass="is-danger"
%}
</div>
<div class="column is-half-tablet is-one-third-desktop is-flex">
{% assign icon = "bright-star" %}
{% assign buttonLink = site.data._en.navigation.mainNav.goincognito.url | relative_url %}
{% include c_feature-box.html
icon=icon
title=t.featureBox.tryIncognito.title
desc=t.featureBox.tryIncognito.desc
buttonText=t.featureBox.tryIncognito.buttonText
buttonLink=buttonLink
class="is-box-warning has-no-background px-4 py-3"
buttonClass="is-warning"
%}
</div>
<div class="column is-half-tablet is-one-third-desktop is-flex">
{% assign icon = "server" %}
{% assign buttonLink = site.data._en.navigation.mainNav.resources.url | relative_url %}
{% include c_feature-box.html
icon=icon
title=t.resources.section.tools.title
desc=t.resources.section.tools.desc
buttonText=t.resources.title
buttonLink=buttonLink
class="is-box-info has-no-background px-4 py-3"
buttonClass="is-info"
%}
</div>
</div>
{%- include spa-quiz-sponsor-block.html -%}
</div>
</section>
</div>
</div>
</section>