diff --git a/door_closed.html b/door_closed.html index b74178ae870ad264ba434bcad47436aa9e6ed020..1ad1f17447a910d61d1e5035fa851892cffe9627 100644 --- a/door_closed.html +++ b/door_closed.html @@ -8,7 +8,7 @@ <h1>UCC Door Status</h1> <p>The door is currently closed.</p> <img - src="/door.jpg" + src="/static/door_ucc_closed.jpg" width="574" height="1020" alt="A plain image of the UCC door. Surely nothing sinister lies within..." diff --git a/door_open.html b/door_open.html index db5e592f3111161f927b634467c95c0d0b7e3480..33695ed914060b1591303e3b3405367860bff4b5 100644 --- a/door_open.html +++ b/door_open.html @@ -9,7 +9,7 @@ <p>The door is currently open!</p> <p>Opened by: <span id="opener"></span></p> <img - src="/gary.jpg" + src="/static/door_ucc_open.jpg" width="574" height="1020" alt="A wild Gary lurking in the open doorway to the UCC clubroom." diff --git a/main.js b/main.js index 0183b4e2b9e64d846e278148560355024c3bc471..c7234beb97088d858c0d0420c96dcf0d1dddbb18 100644 --- a/main.js +++ b/main.js @@ -108,12 +108,12 @@ const server = http.createServer((req, res) => { return send_json(res, 200, doorState ? doorOpener : null); } - if (req.url === '/gary.jpg') { - return send_file(res, 200, './gary.jpg', 'image/jpeg'); + if (req.url === '/static/door_ucc_open.jpg') { + return send_file(res, 200, './static/door_ucc_open.jpg', 'image/jpeg'); } - if (req.url === '/door.jpg') { - return send_file(res, 200, './door.jpg', 'image/jpeg'); + if (req.url === '/static/door_ucc_closed.jpg') { + return send_file(res, 200, './static/door_ucc_closed.jpg', 'image/jpeg'); } return send_error(res, 404); diff --git a/door.jpg b/static/door_ucc_closed.jpg similarity index 100% rename from door.jpg rename to static/door_ucc_closed.jpg diff --git a/gary.jpg b/static/door_ucc_open.jpg similarity index 100% rename from gary.jpg rename to static/door_ucc_open.jpg