-
Notifications
You must be signed in to change notification settings - Fork 0
/
london-tube-status.json
133 lines (133 loc) · 4.86 KB
/
london-tube-status.json
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
{
"schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
"hideSelection": true,
"hideColumnHeader": true,
"rowFormatter": {
"elmType": "div",
"style": {
"font-size": "16px",
"line-height": "16px",
"display": "flex",
"flex-direction": "row",
"align-items": "stretch",
"position": "relative",
"min-height": "44px",
"width": "340px"
},
"children": [
{
"elmType": "div",
"attributes": {
"class": "=if([$LineID] == 'circle' || [$LineID] == 'hammersmith-city' || [$LineID] == 'victoria' || [$LineID] == 'waterloo-city' || [$LineID] == 'dlr' || [$LineID] == 'london-overground', 'ms-fontColor-black','ms-fontColor-white')"
},
"style": {
"display": "flex",
"align-items": "center",
"text-shadow": "=if([$LineID] == 'circle' || [$LineID] == 'hammersmith-city' || [$LineID] == 'victoria' || [$LineID] == 'waterloo-city' || [$LineID] == 'dlr' || [$LineID] == 'london-overground', '0 1px 0 rgba(255,255,255,0.6)','none')",
"background-color": "=if([$LineID]=='bakerloo', '#894E24', if([$LineID]=='central', '#DC241F', if([$LineID]=='circle', '#FCCE00', if([$LineID]=='district', '#007229', if([$LineID]=='hammersmith-city', '#D799AF', if([$LineID]=='jubilee', '#6A7278', if([$LineID]=='metropolitan', '#751056', if([$LineID]=='northern', '#000000', if([$LineID]=='piccadilly', '#0019A8', if([$LineID]=='victoria', '#00A0E2', if([$LineID]=='waterloo-city', '#76D0BD', if([$LineID]=='london-overground', '#E86A1C', if([$LineID]=='dlr', '#00AFAD', if([$LineID]=='tfl-rail', '#0019A8', if([$LineID]=='tram', '#66CC00', '#D29200')))))))))))))))",
"width": "150px",
"padding": "0 10px",
"border-bottom": "1px solid #CCC",
"border-top": "=if(@rowIndex==0, '1px solid #CCC', 'none')"
},
"children": [
{
"elmType": "span",
"txtContent": "[$Title]"
}
]
},
{
"elmType": "div",
"style": {
"display": "=if([$LineStatus] == 'Good Service', 'flex','none')",
"align-items": "center",
"width": "150px",
"border-bottom": "1px solid #CCC",
"border-top": "=if(@rowIndex==0, '1px solid #CCC', 'none')",
"padding": "10px"
},
"attributes": {
"class": "ms-fontColor-black ms-bgColor-white"
},
"children": [
{
"elmType": "span",
"txtContent": "[$LineStatus]"
}
]
},
{
"elmType": "div",
"style": {
"display": "=if([$LineStatus] != 'Good Service', 'flex','none')",
"background-color": "#FAF5E1",
"width": "150px",
"padding": "10px",
"border-bottom": "1px solid #CCC",
"border-top": "=if(@rowIndex==0, '1px solid #CCC', 'none')",
"align-items": "center",
"min-height": "100%"
},
"children": [
{
"elmType": "div",
"txtContent": "[$LineStatus]",
"style": {
"flex-grow": "1",
"color": "#2070b0"
}
},
{
"elmType": "div",
"style": {
"color": "#1A5A92",
"font-weight": "900",
"font-size": "14px"
},
"attributes": {
"iconName": "Add"
}
}
]
},
{
"elmType": "div",
"style": {
"display": "=if([$LineStatus] != 'Good Service', 'inherit','none')",
"position": "absolute",
"top": "0",
"left": "0",
"right": "0",
"bottom": "0",
"outline": "none",
"cursor": "pointer"
},
"customCardProps": {
"openOnEvent": "click",
"directionalHint": "bottomCenter",
"isBeakVisible": true,
"formatter": {
"elmType": "div",
"style": {
"padding": "15px",
"font-size": "18px",
"font-weight": "550"
},
"children": [
{
"elmType": "span",
"style": {
"overflow-x": "auto",
"max-width": "400px",
"max-height": "200px"
},
"txtContent": "=replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace(replace([$Reason],'\n','||'),'\n','||'),'\n','||'),'\n','||'),'\n','||'),'\n','||'),'\n','||'),'\n','||'),'\n','||'),'\n','||'),'||','\n\n'),'||','\n\n'),'||','\n\n'),'||','\n\n'),'||','\n\n'),'||','\n\n'),'||','\n\n'),'||','\n\n'),'||','\n\n'),'||','\n\n')"
}
]
}
}
}
]
}
}