forked from fac-14/Week3TakingAIME
-
Notifications
You must be signed in to change notification settings - Fork 0
/
convert.js
65 lines (61 loc) · 1.95 KB
/
convert.js
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
const convert = {
getValue: function(object, key) {
return convert[object][key];
},
sentiment: {
GoodService: "happy-dancing",
MinorDelays: "whatever",
ReducedService: "whatever",
PlannedClosure: "crying",
PartClosure: "crying",
SevereDelays: "screaming",
Suspended: "wtf",
PartSuspended: "wtf",
BusService: "bus",
SpecialService: "nope"
},
emoji: {
GoodService: " 🎉😍🎉",
MinorDelays: " 🙄🙄🙄",
ReducedService: " 🤨🤨🤨",
PlannedClosure: " 😩😫😖",
PartClosure: " 😩😫😖",
SevereDelays: " 😬😡😭",
Suspended: " 😠🤬👊",
PartSuspended: " 😠🤬👊",
BusService: " 🚌🚌🚌",
SpecialService: " 🤔🤔🤔"
},
logoColor: {
bakerloo: "rgba(174, 97, 24, 1.0)",
central: "rgba(228, 31, 31, 1.0)",
circle: "rgba(248, 212, 45, 1.0)",
district: "rgba(0, 165, 117, 1.0)",
["hammersmith-city"]: "rgba(232, 153, 168, 1.0)",
jubilee: "rgba(143, 152, 158, 1.0)",
metropolitan: "rgba(137, 50, 103, 1.0)",
northern: "rgba(0, 0, 0, 1.0)",
piccadilly: "rgba(4, 80, 161, 1.0)",
victoria: "rgba(0, 159, 224, 1.0)",
["waterloo-city"]: "rgba(112, 195, 206, 1.0)",
dlr: "rgba(0, 187, 180, 1.0)",
["london-overground"]: "rgba(248, 108, 0, 1.0)",
["tfl-rail"]: "rgba(4, 80, 161, 1.0)"
},
backgroundColor: {
bakerloo: "rgba(174, 97, 24, 0.1)",
central: "rgba(228, 31, 31, 0.1)",
circle: "rgba(248, 212, 45, 0.1)",
district: "rgba(0, 165, 117, 0.1)",
["hammersmith-city"]: "rgba(232, 153, 168, 0.1)",
jubilee: "rgba(143, 152, 158, 0.1)",
metropolitan: "rgba(137, 50, 103, 0.1)",
northern: "rgba(0, 0, 0, 0.1)",
piccadilly: "rgba(4, 80, 161, 0.1)",
victoria: "rgba(0, 159, 224, 0.1)",
["waterloo-city"]: "rgba(112, 195, 206, 0.1)",
dlr: "rgba(0, 187, 180, 0.1)",
["london-overground"]: "rgba(248, 108, 0, 0.1)",
["tfl-rail"]: "rgba(4, 80, 161, 0.1)"
}
};