]> git.r.bdr.sh - rbdr/corona-regeln/blame - src/lib/rules/mask.js
Port to svelte
[rbdr/corona-regeln] / src / lib / rules / mask.js
CommitLineData
10129c00
RBR
1const internals ={
2
3 masks: [
4 'HTML',
5 'FFP4',
29f68727
RBR
6 'Leather',
7 'Denim',
8 'Pink',
10129c00
RBR
9 'RSVP',
10 'TBD',
29f68727
RBR
11 'Quantum',
12 'Medical',
10129c00
RBR
13 'GMO',
14 'FFP9',
15 'FFP2.5',
16 'KN96',
17 'France98',
29f68727 18 'Mesh',
10129c00
RBR
19 ],
20
9012f395 21 conditions: [
10129c00
RBR
22 'when dancing',
23 'at all times',
24 'in bed',
25 'outdoors',
26 'when running',
27 'when driving',
28 'when cycling',
29 'in restaurants',
30 'in pools',
31 'in small groups',
32 'at 3pm',
33 'at 5pm',
34 'when nobody is looking',
35 'around the police',
36 'when speaking',
37 'while chewing gum',
38 'while eating bread',
39 ]
40};
41
5d9f7190 42export default function () {
10129c00
RBR
43
44 const mask = internals.masks[Math.floor(Math.random() * internals.masks.length)];
45 const condition = internals.conditions[Math.floor(Math.random() * internals.conditions.length)];
46
47 return {
48 emoji: '😷',
49 text: `${mask} masks must be worn ${condition}`
50 };
51}