Consistent formatting
Signed-off-by: Joey <bevilacquajoey@gmail.com>
This commit is contained in:
parent
82f824ee0e
commit
ad768bb389
3 changed files with 66 additions and 66 deletions
12
app.js
12
app.js
|
@ -13,8 +13,8 @@ function roomStatus(room, callback) {
|
|||
xhr.addEventListener('load', () => {
|
||||
const parser = new DOMParser();
|
||||
const doc = parser.parseFromString(xhr.responseText, 'text/html');
|
||||
const lessons =
|
||||
doc.querySelectorAll('table.rsContentTable div.rsAptSimple');
|
||||
const lessons = doc.querySelectorAll(
|
||||
'table.rsContentTable div.rsAptSimple');
|
||||
const parsed = [];
|
||||
|
||||
for (let lesson of lessons) {
|
||||
|
@ -152,10 +152,10 @@ function setupTimeMachine() {
|
|||
setTimePreview(new Date(NOW.getTime() + 600000));
|
||||
}
|
||||
|
||||
(async function() {
|
||||
for (const room of ROOMS) {
|
||||
(async () => {
|
||||
for (const room of ROOMS) {
|
||||
await buildRoomMarkup(room);
|
||||
}
|
||||
})()
|
||||
}
|
||||
})();
|
||||
|
||||
setupTimeMachine();
|
||||
|
|
Loading…
Reference in a new issue