diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-12-19 14:21:33 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-12-19 14:21:33 +0100 |
| commit | 5d9f7190bd118fe4d44594d7a9584de98b527467 (patch) | |
| tree | c323938b4626290a227a652380af769d7f4c4518 /src/lib/rules/mask.js | |
| parent | 29f687276d9e9ef01ce70ebd210a01386ca581ae (diff) | |
Port to svelte
Diffstat (limited to 'src/lib/rules/mask.js')
| -rw-r--r-- | src/lib/rules/mask.js | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/lib/rules/mask.js b/src/lib/rules/mask.js new file mode 100644 index 0000000..a27fe36 --- /dev/null +++ b/src/lib/rules/mask.js @@ -0,0 +1,51 @@ +const internals ={ + + masks: [ + 'HTML', + 'FFP4', + 'Leather', + 'Denim', + 'Pink', + 'RSVP', + 'TBD', + 'Quantum', + 'Medical', + 'GMO', + 'FFP9', + 'FFP2.5', + 'KN96', + 'France98', + 'Mesh', + ], + + conditions: [ + 'when dancing', + 'at all times', + 'in bed', + 'outdoors', + 'when running', + 'when driving', + 'when cycling', + 'in restaurants', + 'in pools', + 'in small groups', + 'at 3pm', + 'at 5pm', + 'when nobody is looking', + 'around the police', + 'when speaking', + 'while chewing gum', + 'while eating bread', + ] +}; + +export default function () { + + const mask = internals.masks[Math.floor(Math.random() * internals.masks.length)]; + const condition = internals.conditions[Math.floor(Math.random() * internals.conditions.length)]; + + return { + emoji: '😷', + text: `${mask} masks must be worn ${condition}` + }; +} |