Optimized fetching from aule.usi.ch

And btw Joey follow the modeline for indentation or I'll start using 3
spaces instead of 2
This commit is contained in:
Claudio Maggioni 2019-11-04 12:15:04 +01:00
parent 724015cf62
commit 86f43a4b43
4 changed files with 326 additions and 326 deletions

7
app.js
View file

@ -149,10 +149,7 @@ function setupTimeMachine() {
setTimePreview(date); setTimePreview(date);
} }
(async () => { // Thanks to Andrea Gallidabino and his mastery checks for this
for (const room of ROOMS) { Promise.all(ROOMS.map(buildRoomMarkup)).catch(console.error);
await buildRoomMarkup(room);
}
})();
setupTimeMachine(); setupTimeMachine();

View file

@ -1,4 +1,5 @@
/* Inter font */ /* Inter font */
/* vim: set ts=2 sw=2 et tw=80: */
@font-face { @font-face {
font-family: 'Inter'; font-family: 'Inter';

View file

@ -1,4 +1,6 @@
{ {
"_modeline": " vim: set ts=2 sw=2 et tw=80:",
"short_name": "USI Rooms", "short_name": "USI Rooms",
"name": "USI INF Rooms", "name": "USI INF Rooms",
"icons": [ "icons": [