diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2024-10-18 20:18:26 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2024-10-18 20:18:26 -0700 |
| commit | b880a4fccad7eb15ba8a6665e0e3a9a0c2696dce (patch) | |
| tree | 7adef2f3b9d2932e573ae172290d4911e93960e9 | |
| parent | 2f21143d31759882d6700f3223f16b9840b91871 (diff) | |
| download | roseh.moe-b880a4fccad7eb15ba8a6665e0e3a9a0c2696dce.tar.zst | |
Move some pong files into a subdirectory.
| -rw-r--r-- | static/pong/icon.png (renamed from static/pong.png) | bin | 915 -> 915 bytes | |||
| -rw-r--r-- | static/pong/ping.mp3 (renamed from static/ping.mp3) | bin | 4016 -> 4016 bytes | |||
| -rw-r--r-- | static/pong/pong.js (renamed from static/pong.js) | 2 | ||||
| -rw-r--r-- | templates/pong.html.template | 4 |
4 files changed, 3 insertions, 3 deletions
diff --git a/static/pong.png b/static/pong/icon.png Binary files differindex 70670b9..70670b9 100644 --- a/static/pong.png +++ b/static/pong/icon.png diff --git a/static/ping.mp3 b/static/pong/ping.mp3 Binary files differindex 87145b8..87145b8 100644 --- a/static/ping.mp3 +++ b/static/pong/ping.mp3 diff --git a/static/pong.js b/static/pong/pong.js index c51bb7b..b91cb06 100644 --- a/static/pong.js +++ b/static/pong/pong.js @@ -161,7 +161,7 @@ function updateCanvasSize() { canvas.height = window.innerHeight; } -const pingAudio = new Audio('/static/ping.mp3'); +const pingAudio = new Audio('/static/pong/ping.mp3'); function ping() { pingAudio.pause(); diff --git a/templates/pong.html.template b/templates/pong.html.template index acf7ec0..141a685 100644 --- a/templates/pong.html.template +++ b/templates/pong.html.template @@ -2,8 +2,8 @@ <html lang="en" style="width:100%;height:100%;margin:0;padding:0"> <head> <title>Pong</title> - <link rel="icon" href="/static/pong.png"> - <script defer src="/static/pong.js"></script> + <link rel="icon" href="/static/pong/icon.png"> + <script defer src="/static/pong/pong.js"></script> </head> <body style="width:100%;height:100%;margin:0;padding:0"> <canvas id="pong" style="display:block;margin:0;padding:0"></canvas> |
