-
Notifications
You must be signed in to change notification settings - Fork 0
/
sampleoutput.html
234 lines (182 loc) · 6.18 KB
/
sampleoutput.html
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
<!DOCTYPE html>
<html lang='en-US'>
<head>
<meta charset='UTF-8'>
<title>Sample Output</title>
<style>
:root {
/* using the semi-magic value "42" for colors intended to be pure white/gray/black */
--color-font-primary: hsl(42, 0%, 95%);
--color-background-primary: hsl(42, 0%, 10%);
--color-font-secondary: var(--color-font-primary);
--color-background-secondary: hsl(42, 0%, 20%);
--color-font-tertiary: hsl(42, 0%, 90%);
--color-background-tertiary: var(--color-background-secondary);
--color-link: hsl(180, 50%, 75%);
--color-visited: hsl(270, 50%, 75%);
/* calls */
--color-font-called-it: hsl(120, 50%, 90%);
--color-background-called-it: hsl(120, 50%, 33%);
--color-font-missed-it: hsl(0, 50%, 90%);
--color-background-missed-it: hsl(0, 50%, 33%);
--color-font-ongoing: inherit;
--color-background-ongoing: inherit;
--color-font-excluded: black;
--color-background-excluded: white;
}
html {
font-family: system-ui, sans-serif;
--radius: 0rem;
--border-style-internal: thin dotted gray;
color: var(--color-font-primary);
background: var(--color-background-primary);
}
section {
padding: 0 .5rem;
}
a:link {
color: var(--color-link);
}
a:visited {
color: var(--color-visited);
}
/* note that “document” here refers to a PredictionDocument (i.e. one prediction) */
.document {
display: grid;
/* percent, claim, result, tags, notes, excluded */
grid-template:
'p c'
'r t'
'r n'
'e e'
/ 15ch 1fr;
border: thin solid gray;
border-radius: var(--radius);
padding: 0;
}
.document > * {
color: var(--color-font-secondary);
background: var(--color-background-secondary);
padding: .25rem;
}
.percent {
grid-area: p;
font-size: 300%;
font-weight: 900;
text-align: center;
border-top-left-radius: var(--radius);
border-bottom: var(--border-style-internal);
border-right: var(--border-style-internal);
}
.percent > div {
padding-bottom: .5rem;
}
.claim {
grid-area: c;
font-size: 200%;
border-top-right-radius: var(--radius);
border-bottom: var(--border-style-internal);
}
.result {
grid-area: r;
border-bottom-left-radius: var(--radius);
border-right: var(--border-style-internal);
}
.result.true {
background: var(--color-background-called-it);
color: var(--color-text-called-it);
}
.result.false {
background: var(--color-background-missed-it);
color: var(--color-text-missed-it);
}
.result.ongoing {
background: var(--color-background-secondary);
color: var(--color-text-secondary);
}
.result.excluded {
color: white;
background: black;
}
.tags {
grid-area: t;
color: var(--color-font-tertiary);
border-bottom: var(--border-style-internal);
}
.notes {
grid-area: n;
border-bottom-right-radius: var(--radius);
}
.notes :first-child {
margin-top: 0;
}
.notes :last-child {
margin-bottom: 0;
}
.cause-for-exclusion {
grid-area: e;
}
/* Analysis */
.analysis {
font-feature-settings: "tnum";
}
.analysis th,
.analysis td {
text-align: right;
}
.analysis td:first-of-type {
text-align: right;
}
.analysis .outdented {
padding-right: 1em;
}
.brier-explanation {
color: var(--color-text-tertiary);
text-align: justify;
-webkit-hyphens: auto;
hyphens: auto;
}
/* utility classes */
.center-child {
display: flex;
align-items: center;
justify-content: center;
}
.center-child-vertically {
display: flex;
align-items: center;
justify-content: start;
}
</style>
</head>
<body>
<h1>Predictions for in 2019</h1>
<section>
<h1>spatial awareness</h1>
<div class='document'>
<div class='percent center-child'><div>80%</div></div>
<div class='result true center-child'><div>called it</div></div>
<div class='claim center-child'><div>I will park straight in the space when I get to work on 2019-02-11</div></div>
<div class='tags'>Other tags: driving, perfectionism, early-morning sapience</div>
<div class='notes'>I managed to be off by only 1.3° and had a mean offset of 2⅝″.</div>
</div>
</section>
<h1>Analyses</h1>
<section>
<h1>Everything</h1>
<table class='analysis'>
<tr><th scope='row'>Total: <td>43<td>…<td>…<td>…<td>…
<tr><th scope='row'>of total, Called:<td><td>3<td>(6.98%)
<tr><th scope='row'>of total, Missed:<td><td>10<td>(25.35%)
<tr><th scope='row'>of total, Scored:<td><td>13<td>(30.23%)
<tr><th scope='row'>of scored, Called:<td><td><td><td>3<td>(23.07%)
<tr><th scope='row'>of scored, Missed:<td><td><td><td>10<td>(76.92%)
<tr><th scope='row'>of total, Unscored:<td><td>30<td>(69.76%)
<tr><th scope='row'>of unscored, Ongoing:<td><td><td><td>27<td>(90.00%)
<tr><th scope='row'>of unscored, Excluded:<td><td><td><td>3<td>(10.00%)
<tr><th scope='row'>Brier score:<td>.09
</table>
<p class='brier-explanation'>Brier scores range from 0 to 1, inclusive. A Brier score of 0 means you’re 100% confident every time and everything you predict happens. A Brier score of 1 means you’re 100% confident every time and you’re wrong every single time. If you estimate that everything has a 50/50 chance of happening, your Brier score will be .25 regardless of whatever happens.</p>
</section>
</body>
</html>