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);
}
(async () => {
for (const room of ROOMS) {
await buildRoomMarkup(room);
}
})();
// Thanks to Andrea Gallidabino and his mastery checks for this
Promise.all(ROOMS.map(buildRoomMarkup)).catch(console.error);
setupTimeMachine();

View File

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

View File

@ -1,7 +1,7 @@
<!DOCTYPE html>
<!-- vim: set ts=2 sw=2 et tw=80: -->
<html>
<head>
<head>
<meta charset='utf-8'>
<title>USI • Rooms availability</title>
@ -10,8 +10,8 @@
<link rel="icon" href="assets/images/icon-64.png">
<link rel="manifest" href="manifest.json">
<link rel="stylesheet" href="assets/index.css">
</head>
<body>
</head>
<body>
<h1>USI INF room availability</h1>
<div class="timepicker">

View File

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