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:
parent
724015cf62
commit
86f43a4b43
4 changed files with 326 additions and 326 deletions
7
app.js
7
app.js
|
@ -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();
|
||||||
|
|
|
@ -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';
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<!-- vim: set ts=2 sw=2 et tw=80: -->
|
<!-- vim: set ts=2 sw=2 et tw=80: -->
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset='utf-8'>
|
<meta charset='utf-8'>
|
||||||
<title>USI • Rooms availability</title>
|
<title>USI • Rooms availability</title>
|
||||||
|
|
||||||
|
@ -10,8 +10,8 @@
|
||||||
<link rel="icon" href="assets/images/icon-64.png">
|
<link rel="icon" href="assets/images/icon-64.png">
|
||||||
<link rel="manifest" href="manifest.json">
|
<link rel="manifest" href="manifest.json">
|
||||||
<link rel="stylesheet" href="assets/index.css">
|
<link rel="stylesheet" href="assets/index.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>USI INF room availability</h1>
|
<h1>USI INF room availability</h1>
|
||||||
|
|
||||||
<div class="timepicker">
|
<div class="timepicker">
|
||||||
|
|
|
@ -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": [
|
||||||
|
|
Loading…
Reference in a new issue