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', () => {
|
xhr.addEventListener('load', () => {
|
||||||
const parser = new DOMParser();
|
const parser = new DOMParser();
|
||||||
const doc = parser.parseFromString(xhr.responseText, 'text/html');
|
const doc = parser.parseFromString(xhr.responseText, 'text/html');
|
||||||
const lessons =
|
const lessons = doc.querySelectorAll(
|
||||||
doc.querySelectorAll('table.rsContentTable div.rsAptSimple');
|
'table.rsContentTable div.rsAptSimple');
|
||||||
const parsed = [];
|
const parsed = [];
|
||||||
|
|
||||||
for (let lesson of lessons) {
|
for (let lesson of lessons) {
|
||||||
|
@ -152,10 +152,10 @@ function setupTimeMachine() {
|
||||||
setTimePreview(new Date(NOW.getTime() + 600000));
|
setTimePreview(new Date(NOW.getTime() + 600000));
|
||||||
}
|
}
|
||||||
|
|
||||||
(async function() {
|
(async () => {
|
||||||
for (const room of ROOMS) {
|
for (const room of ROOMS) {
|
||||||
await buildRoomMarkup(room);
|
await buildRoomMarkup(room);
|
||||||
}
|
}
|
||||||
})()
|
})();
|
||||||
|
|
||||||
setupTimeMachine();
|
setupTimeMachine();
|
||||||
|
|
Loading…
Reference in a new issue