Skip to content

Commit f997872

Browse files
committed
added chap 2
1 parent 90727af commit f997872

File tree

10 files changed

+460
-180
lines changed

10 files changed

+460
-180
lines changed

src/components/game/game.json

+445-162
Large diffs are not rendered by default.

src/components/slice/slice.service.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ function SliceService(I18n) {
2424
// No reading time for the user's slices
2525
return 0;
2626
}
27-
// We read approximativly 200 words per minute
28-
const duration = (this.text || '').split(' ').length * 60 / 200 * 1000;
27+
// Speed of reading set to 120 words per minute
28+
const duration = (this.text || '').split(' ').length * 60 / 120 * 1000;
2929
// Reading time can't be under 700 milliseconds
3030
return Math.max(duration, 700);
3131
}

src/components/step/step.service.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ function StepService(Choice, Slice, Stack, I18n, Explainer, $rootScope, $log) {
2929
return this[_meta].hasOwnProperty('helper');
3030
}
3131
displayHelper() {
32-
return this.isLastSlice() && this.hasHelper() && !this.selection;
32+
return false; // helpers are not displayed anymore
33+
// return this.isLastSlice() && this.hasHelper() && !this.selection;
3334
}
3435
isPrevious() {
3536
return this === this.game.journey.slice(-2)[0];

src/containers/main/main.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ <h1 class="main__intro__content__heading" data-fittext="1" translate>main.intro.
5353
<div ng-bind-html="$ctrl.game.end.text | unsafe" class="lead"></div>
5454
<div class="main__steps__over__share">
5555
<p translate="main.steps.over.share" translate-compile translate-values="{
56-
amount: ($ctrl.game.var('personal_account').value | number),
56+
amount: ($ctrl.game.var('sources_contacted').value | number),
5757
years: $ctrl.yearsCount()
5858
}"></p>
5959
</div>

src/containers/main/main.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
}
216216

217217
&__item {
218-
margin:0.5rem;
218+
margin:0;
219219
overflow: hidden;
220220

221221
&:last-child {

src/containers/main/toolbar/toolbar.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<div class="main__toolbar text-md-left">
22
<h1 class="main__toolbar__heading" data-fittext="1" translate>main.toolbar.heading</h1>
33
<div class="main__toolbar__var">
4-
<i class="fa fa-money"></i>
5-
<span class="hidden-sm-down ml-1">{{ $ctrl.game.var('personal_account').label }}</span>
4+
<i class="fa fa-users"></i>
5+
<span class="hidden-sm-down ml-1">{{ $ctrl.game.var('sources_contacted').label }}</span>
66
<div class="main__toolbar__var__digit">
7-
{{ $ctrl.game.var('personal_account').value | number }}
7+
{{ $ctrl.game.var('sources_contacted').value | number }}
88
</div>
99
</div>
1010
<div class="main__toolbar__var" ng-repeat="risk in $ctrl.game.publicRisks">

src/images/avatars/tt-spox.png

425 KB
Loading

src/images/years/tt.png

827 KB
Loading

src/locales/en.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"intro": {
1717
"heading": "Can you break <br />the algorithm?",
1818
"meta": "— by <a href='http://jplusplus.org' target='_blank'>AlgorithmWatch</a>",
19-
"description": "<p>You're a journalist reporting on algorithms. A new media platform is taking its toll of the mental health of teenagers. Find out why.</p><p>Every example in the game is based on real cases.</p>",
19+
"description": "<p>You're a journalist reporting on algorithms. A new app is taking its toll of the mental health of teenagers. Find out why.</p><p>Every example in the game is based on real cases.</p>",
2020
"new-game": "Start a new game",
2121
"continue": "Continue"
2222
},
@@ -32,7 +32,7 @@
3232
"heading": "Can you break <br />the algorithm?",
3333
"links": {
3434
"chats": "Chats",
35-
"hints": "Hints",
35+
"hints": "Inbox",
3636
"indicators": "Indicators",
3737
"about": "About"
3838
},
@@ -44,8 +44,8 @@
4444
}
4545
},
4646
"hints": {
47-
"none": "No hints yet",
48-
"description": "Hints are collected during the game."
47+
"none": "No e-mails yet",
48+
"description": "You'll receive e-mails during the game."
4949
}
5050
}
5151
}

src/translate.js

+2-6
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,11 @@ module.exports.translateConfig = function translateConfig($translateProvider, tm
88
prefix: 'locales/',
99
suffix: '.json'
1010
})
11-
.registerAvailableLanguageKeys(['en', 'fr', 'de', 'sl'], {
11+
.registerAvailableLanguageKeys(['en'], {
1212
'en_US': 'en',
1313
'en_UK': 'en',
1414
'en-US': 'en',
15-
'en-UK': 'en',
16-
'fr_FR': 'fr',
17-
'fr_BE': 'fr',
18-
'de_DE': 'de',
19-
'sl_SI': 'sl'
15+
'en-UK': 'en'
2016
})
2117
.determinePreferredLanguage()
2218
.fallbackLanguage('en')

0 commit comments

Comments
 (0)