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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
|
{# This comment makes Vim detect the filetype. #}
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<style>
/* @font-face { font-family: Inter; font-weight: 400; src: url("https://albertttan.github.io/daily-bulletin/files/Inter-Regular.ttf") format("truetype"); }
@font-face { font-family: Inter; font-weight: 700; src: url("https://albertttan.github.io/daily-bulletin/files/Inter-Bold.ttf") format("truetype"); }
@font-face { font-family: "Noto Sans SC"; font-weight: 400; src: url("https://albertttan.github.io/daily-bulletin/files/NotoSansSC-Regular.otf") format("opentype"); }
@font-face { font-family: "Noto Sans SC"; font-weight: 700; src: url("https://albertttan.github.io/daily-bulletin/files/NotoSansSC-Bold.otf") format("opentype"); } */
html { font-family: "Arial", "Noto Sans SC", sans-serif; }
body { max-width: 60rem; margin: auto; padding: 1rem; }
header { margin-top: 1rem; text-align: center; margin-bottom: 1.5rem; }
h2 { padding-top: 1.2rem; }
h3, h4, h5, h6 { padding-top: 0.8rem; }
span.location { text-decoration: underline; }
time { text-decoration: underline; }
a:link, a:visited, a:hover, a:active { color: #791a9c; }
table { width: 100%; border-collapse: collapse; border: 2px solid rgb(180, 180, 180); font-size: 90%; }
caption { margin: 1ex 1em; font-weight: bold; font-size: 105%; }
/* tr.today { background-color: rgb(210, 221, 247); } */
tr.today { background-color: #e7d2ec; }
tr.not-today { color: rgb(150, 150, 150); }
td, th { border: 1px solid rgb(150, 150, 150); padding: 0.4rem; }
table#community_time td { text-align: center;}
td { min-width: 4.8rem; vertical-align: top; }
table#menu { min-width: 55em; } /* I think the mail clients will just resize the table */
table#menu ul { padding-left: 1.2em; }
th { color: black; background-color: rgb(240, 240, 240); }
th, .wtitle { font-weight: bold; }
blockquote { position: relative; margin-left: 40px; }
blockquote::before { content: ""; position: absolute; left: -14px; top: 0px; bottom: 0px; width: 2px; background-color: rgb(180, 180, 180); }
pre { background-color: rgb(240, 240, 240); padding: 10px; }
code, kbd, var { font-family: monospace; font-size: smaller; background-color: rgb(240, 240, 240); }
cite { font-size: 90%; font-style: italic; color: rgb(150, 150, 150); }
p.ps { font-size: 90%; color: rgb(150, 150, 150); }
.ps { color: rgb(150, 150, 150); }
.serif, math { font-family: serif; }
img { max-width: 100%; max-height: 60rem; }
img.embed { width: 40%; float: right; margin-left: 10px; margin-bottom: 10px; }
hr { border: 1px solid rgb(150, 150, 150); }
footer { padding-top: 1rem; text-align: center; }
.wtitle + ul { margin-top: 0rem; }
</style>
</head>
<body dir="auto">
<title>Daily Bulletin {{stddate}}</title>
<header>
<h1>Daily Bulletin 每日公告</h1>
<p><time datetime="{{stddate}}">{{stddate}}</time>, {{weekday_english}}, Day {{day_of_cycle}}</p>
<p style="font-weight: bold; color: #AA0000;">
Internal beta testing edition
</p>
</header>
<article>
<p>
The Daily Bulletin project has returned. Last year, it was maintained by <a href="https://albertttan.github.io">Albert Tan</a>, who departed the school. The bulletin is now maintained by <a href="https://runxiyu.org">Runxi Yu</a> with the <a href="https://git.runxiyu.org/ykps/sjdb-src.git/about">automated build system</a> (<a href="https://github.com/runxiyu/sjdb-src">GitHub</a>).
</p>
<p>
Note: This version of the Daily Bulletin is still in beta. Importantly, this version <em>has not been approved officially</em> by the school administration, and is unfit for wider distribution. Only a number of people who the maintainer is sufficiently familiar with are receiving the bulletins currently.
</p>
<p>
Happy {{weekday_english}}! Thank you for supporting the Daily Bulletin. Please note that this is supplementary to <a href="{{the_week_ahead_url}}">The Week Ahead</a> and is not an official source of information, and the Daily Bulletin staff accept no liability for the accuracy or validity. Please fill in the respective forms to <a href="https://sj.ykps.net/sjdb/submit">share inspirations</a> or <a href="https://sj.ykps.net/sjdb/unsub">unsubscribe</a>.
<br />
{{weekday_chinese}}快乐!感谢您支持每日公告。请注意,每日公告只是<a href="{{the_week_ahead_url}}">每周展望</a>的补充,并不代表官方信息。我们不对信息的准确性和有效性承担责任。请填写相应表格以<a href="https://sj.ykps.net/sjdb/submit">分享灵感</a>或<a href="https://sj.ykps.net/sjdb/unsub">退订</a>。
</p>
{% if community_time %}
<h2>Community Time 午休时间</h2>
<table id="community_time">
{% if community_time[0] | length == 4 %}
<colgroup><col style="width: 5%"><col style="width: 23.75%"><col style="width: 23.75%"><col style="width: 23.75%"><col style="width: 23.75%"></colgroup>
<thead>
<tr>
<th scope="col">Day</th>
<th scope="col">Y9</th>
<th scope="col">Y10</th>
<th scope="col">Y11</th>
<th scope="col">Y12</th>
</tr>
</thead>
<tbody>
<tr class="today">
<th scope="row">{{weekdays_abbrev[0]}}</th>
{% if (community_time[0][0] == community_time[0][1] == community_time[0][2] == community_time[0][3]) %}
<td colspan="4">{{ community_time[0][0] }}</td>
{% elif (community_time[0][0] == community_time[0][1]) and (community_time[0][2] == community_time[0][3]) %}
<td colspan="2">{{ community_time[0][0] }}</td>
<td colspan="2">{{ community_time[0][2] }}</td>
{% elif community_time[0][0] == community_time[0][1] %}
<td colspan="2">{{ community_time[0][0] }}</td>
<td colspan="1">{{ community_time[0][2] }}</td>
<td colspan="1">{{ community_time[0][3] }}</td>
{% elif community_time[0][2] == community_time[0][3] %}
<td colspan="1">{{ community_time[0][0] }}</td>
<td colspan="1">{{ community_time[0][1] }}</td>
<td colspan="2">{{ community_time[0][2] }}</td>
{% else %}
<td colspan="1">{{ community_time[0][0] }}</td>
<td colspan="1">{{ community_time[0][1] }}</td>
<td colspan="1">{{ community_time[0][2] }}</td>
<td colspan="1">{{ community_time[0][3] }}</td>
{% endif %}
</tr>
{% for i in range(days_after_this) %}
<tr class="not-today">
<th scope="row">{{weekdays_abbrev[i+1]}}</th>
{% if (community_time[i+1][0] == community_time[i+1][1] == community_time[i+1][2] == community_time[i+1][3]) %}
<td colspan="4">{{ community_time[i+1][0] }}</td>
{% elif (community_time[i+1][0] == community_time[i+1][1]) and (community_time[i+1][2] == community_time[i+1][3]) %}
<td colspan="2">{{ community_time[i+1][0] }}</td>
<td colspan="2">{{ community_time[i+1][2] }}</td>
{% elif community_time[i+1][0] == community_time[i+1][1] %}
<td colspan="2">{{ community_time[i+1][0] }}</td>
<td colspan="1">{{ community_time[i+1][2] }}</td>
<td colspan="1">{{ community_time[i+1][3] }}</td>
{% elif community_time[i+1][2] == community_time[i+1][3] %}
<td colspan="1">{{ community_time[i+1][0] }}</td>
<td colspan="1">{{ community_time[i+1][1] }}</td>
<td colspan="2">{{ community_time[i+1][2] }}</td>
{% else %}
<td colspan="1">{{ community_time[i+1][0] }}</td>
<td colspan="1">{{ community_time[i+1][1] }}</td>
<td colspan="1">{{ community_time[i+1][2] }}</td>
<td colspan="1">{{ community_time[i+1][3] }}</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
{% else %} {# Y12s have left the school #}
<colgroup><col style="width: 5%"><col style="width: 31.66666667%"><col style="width: 31.66666667%"><col style="width: 31.66666667%"></colgroup>
<thead>
<tr>
<th scope="col">Day</th>
<th scope="col">Y9</th>
<th scope="col">Y10</th>
<th scope="col">Y11</th>
</tr>
</thead>
<tbody>
<tr class="today">
<th scope="row">{{weekdays_abbrev[0]}}</th>
{% if (community_time[0][0] == community_time[0][1] == community_time[0][2]) %}
<td colspan="3">{{ community_time[0][0] }}</td>
{% elif community_time[0][0] == community_time[0][1] %}
<td colspan="2">{{ community_time[0][0] }}</td>
<td colspan="1">{{ community_time[0][2] }}</td>
{% else %}
<td colspan="1">{{ community_time[0][0] }}</td>
<td colspan="1">{{ community_time[0][1] }}</td>
<td colspan="1">{{ community_time[0][2] }}</td>
{% endif %}
</tr>
{% for i in range(days_after_this) %}
<tr class="not-today">
<th scope="row">{{weekdays_abbrev[i+1]}}</th>
{% if (community_time[i+1][0] == community_time[i+1][1] == community_time[i+1][2]) %}
<td colspan="3">{{ community_time[i+1][0] }}</td>
{% elif community_time[i+1][0] == community_time[i+1][1] %}
<td colspan="2">{{ community_time[i+1][0] }}</td>
<td colspan="1">{{ community_time[i+1][2] }}</td>
{% else %}
<td colspan="1">{{ community_time[i+1][0] }}</td>
<td colspan="1">{{ community_time[i+1][1] }}</td>
<td colspan="1">{{ community_time[i+1][2] }}</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
{% endif %}
</table>
{% endif %}
<h2>Delicious Dinings 今日佳肴</h2>
<table id="menu">
<colgroup>
<col style="width: 5%">
<col style="width: 23.75%;">
<col style="width: 23.75%;">
<col style="width: 23.75%;">
<col style="width: 23.75%;">
<col style="width: 23.75%;">
<col style="width: 23.75%; border-left: 2px solid rgb(180, 180, 180);">
</colgroup>
<thead>
<tr>
<th scope="col">Day</th>
<th scope="col">Taste of Asia</th>
<th scope="col">Eat Global</th>
<th scope="col">Revolution / Piccola Italia</th>
<th scope="col">Others</th>
</tr>
</thead>
<tbody>
<tr class="today">
<th scope="row">{{weekdays_abbrev[0]}}<br/>Brkfst</th>
{% for i in [0, 1] %}
<td>
{% if today_breakfast[i] %}
<ul>
{% for m in today_breakfast[i] %}
<li>
{{m["en"]}}<br />{{m["zh"]}}
</li>
{% endfor %}
</ul>
{% endif %}
</td>
{% endfor %}
<td>
{% if today_breakfast[2] %}
<span class="wtitle">Revolution</span>
<ul>
{% for m in today_breakfast[2] %}
<li>
{{m["en"]}}<br />{{m["zh"]}}
</li>
{% endfor %}
</ul>
{% endif %}
{% if today_breakfast[3] %}
<span class="wtitle">Piccola Italia</span>
<ul>
{% for m in today_breakfast[3] %}
<li>
{{m["en"]}}<br />{{m["zh"]}}
</li>
{% endfor %}
</ul>
{% endif %}
</td>
<td>
{% if snack_morning %}
<span class="wtitle">10:05 Snack</span>
<ul>
<li>
{{snack_morning["en"]}}
<br />
{{snack_morning["zh"]}}
</li>
</ul>
{% endif %}
</td>
</tr>
<tr class="today">
<th scope="row">{{weekdays_abbrev[0]}}<br/>Lunch</th>
{% for i in [0, 1] %}
<td>
{% if today_lunch[i] %}
<ul>
{% for m in today_lunch[i] %}
<li>
{{m["en"]}}<br />{{m["zh"]}}
</li>
{% endfor %}
</ul>
{% endif %}
</td>
{% endfor %}
<td>
{% if today_lunch[2] %}
<span class="wtitle">Revolution</span>
<ul>
{% for m in today_lunch[2] %}
<li>
{{m["en"]}}<br />{{m["zh"]}}
</li>
{% endfor %}
</ul>
{% endif %}
{% if today_lunch[3] %}
<span class="wtitle">Piccola Italia</span>
<ul>
{% for m in today_lunch[3] %}
<li>
{{m["en"]}}<br />{{m["zh"]}}
</li>
{% endfor %}
</ul>
{% endif %}
</td>
<td>
<span class="wtitle">Vegetarian</span>
<ul>
<li>
{{ today_lunch[4][0]["en"] }}<br />{{ today_lunch[4][0]["zh"] }}
{% for m in today_lunch[4][1:] %}
<br />{{m["en"]}}<br />{{m["zh"]}}
{% endfor %}
</li>
</ul>
<span class="wtitle">Soup</span>
<ul>
<li>
{{ today_lunch[5][0]["en"] }}<br />{{ today_lunch[5][0]["zh"] }}
{% for m in today_lunch[5][1:] %}
<br />{{m["en"]}}<br />{{m["zh"]}}
{% endfor %}
</li>
</ul>
{% if snack_afternoon %}
<span class="wtitle">15:45 Snack</span>
<ul>
<li>
{{snack_afternoon["en"]}}
<br />
{{snack_afternoon["zh"]}}
</li>
{% endif %}
</ul>
</td>
</tr>
{% if today_dinner and days_after_this >= 0 %}
<tr class="today">
<th scope="row">{{weekdays_abbrev[0]}}<br/>Dinner</th>
{% for i in [0, 1] %}
<td>
{% if today_dinner[i] %}
<ul>
{% for m in today_dinner[i] %}
<li>
{{m["en"]}}<br />{{m["zh"]}}
</li>
{% endfor %}
</ul>
{% endif %}
</td>
{% endfor %}
<td>
{% if today_dinner[2] %}
<span class="wtitle">Revolution</span>
<ul>
{% for m in today_dinner[2] %}
<li>
{{m["en"]}}<br />{{m["zh"]}}
</li>
{% endfor %}
</ul>
{% endif %}
{% if today_dinner[3] %}
<span class="wtitle">Piccola Italia</span>
<ul>
{% for m in today_dinner[3] %}
<li>
{{m["en"]}}<br />{{m["zh"]}}
</li>
{% endfor %}
</ul>
{% endif %}
</td>
<td>
{% if today_dinner[4] %}
<span class="wtitle">Vegetarian</span>
<ul>
<li>
{{ today_dinner[4][0]["en"] }}<br />{{ today_dinner[4][0]["zh"] }}
{% for m in today_dinner[4][1:] %}
<br />{{m["en"]}}<br />{{m["zh"]}}
{% endfor %}
</li>
</ul>
{% endif %}
{% if today_dinner[5] %}
<span class="wtitle">Soup</span>
<ul>
<li>
{{ today_dinner[5][0]["en"] }}<br />{{ today_dinner[5][0]["zh"] }}
{% for m in today_dinner[5][1:] %}
<br />{{m["en"]}}<br />{{m["zh"]}}
{% endfor %}
</li>
</ul>
{% endif %}
</td>
</tr>
{% endif %}
{% if next_breakfast and days_after_this >= 0 %}
<tr class="not-today">
<th scope="row">{{weekdays_abbrev[1]}}<br/>Brkfst</th>
{% for i in [0, 1] %}
<td>
{% if next_breakfast[i] %}
<ul>
{% for m in next_breakfast[i] %}
<li>
{{m["en"]}}<br />{{m["zh"]}}
</li>
{% endfor %}
</ul>
{% endif %}
</td>
{% endfor %}
<td>
{% if next_breakfast[2] %}
<span class="wtitle">Revolution</span>
<ul>
{% for m in next_breakfast[2] %}
<li>
{{m["en"]}}<br />{{m["zh"]}}
</li>
{% endfor %}
</ul>
{% endif %}
{% if next_breakfast[3] %}
<span class="wtitle">Piccola Italia</span>
<ul>
{% for m in next_breakfast[3] %}
<li>
{{m["en"]}}<br />{{m["zh"]}}
</li>
{% endfor %}
</ul>
{% endif %}
</td>
<td>
</td>
</tr>
{% endif %}
</tbody>
</table>
{% if days_after_this == -1 %}
<p class="ps">Note: The machine-readable menus emailed to the Daily Bulletin staff do not contain end-of-week dinner and weekend meals.</p>
{% endif %}
<p class="ps">I am aware that the menu currently looks a bit ugly; I am not experienced in webpage layout at all. HTML/CSS experts wanted!</p>
<h2>Daily Inspiration 每日灵感</h2>
{% if inspiration_type %}
{% if inspiration_type == "text" %}
<pre>{{ inspiration_text }}</pre>
{% elif inspiration_type == "media" %}
<img src="data:{{inspiration_image_mime}};base64,{{ inspiration_image_data }}" />
{% if inspiration_text %}
<pre>{{ inspiration_text }}</pre>
{% endif %}
{% elif inspiration_type == "canteen" %}
<pre>{{ inspiration_text }}</pre>
{% endif %}
{% if inspiration_shared_by %}
<p><cite>Shared by {{inspiration_shared_by}}.<br/>由{{inspiration_shared_by}}分享。</cite></p></p>
{% else %}
<p><cite>Shared anonymously.<br />匿名分享。</cite></p>
{% endif %}
{% else %}
<p>
Unfortunately, there is no inspiration today.
Please feel free to <a href="https://sj.ykps.net/sjdb/submit">submit one</a>.
</p>
{% endif %}
{% if on_this_day_html_en or on_this_day_html_zh %}
<h2>On This Day 以史为鉴</h2>
{% endif %}
{% if on_this_day_html_en %}
{{on_this_day_html_en | safe}}
{% endif %}
{% if on_this_day_html_zh %}
{{on_this_day_html_zh | safe}}
{% endif %}
{% if in_the_news_html_en or in_the_news_html_zh %}
<h2>In the News 时事要闻</h2>
{% endif %}
{% if in_the_news_html_en %}
{{in_the_news_html_en | safe}}
{% endif %}
{% if in_the_news_html_zh %}
{{in_the_news_html_zh | safe}}
{% endif %}
<h2>Regular Notices 常规通知</h2>
<ul>
<li>
<a href="https://forms.office.com/pages/responsepage.aspx?id=bNLT3ZexAE2jLR_9hMDClUPg4MiMFbZFh1B1P68pV6lUMUJHUjk2NEI1MU1ROTRFNjRQQ1NVSE5RSi4u">Student Council Suggestion Box</a>
</li>
<li>
Emergency phone: <a href="tel:+8618221990830">182 2199 0830</a>
</li>
<li>
AOD: {{aod}}
</li>
</ul>
<p class="ps" style="font-weight: bold;">Disclaimer: Please check The Week Ahead for official information.</p>
</article>
<footer>
<p>
<a href="https://ykps.runxiyu.org/sjdb/">Home Page</a>
{#
·
<a href="https://ykps.runxiyu.org/sjdb/arc">Archive</a>
#}
·
<a href="mailto:s22537@stu.ykpaoschool.cn">Contact</a>
</p>
</footer>
</body>
</html>
|