diff options
author | pommicket <pommicket@gmail.com> | 2024-08-15 21:03:12 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2024-08-15 21:03:12 -0400 |
commit | 5a3a0bb35e55294ab84fd8b759c637a0f1aeea82 (patch) | |
tree | 6ea69f312201defec726cb4c11fb6e2e88496729 | |
parent | b0925d8b148b5ca2ed82e1b6aad7028fb451e8df (diff) |
favicon
-rw-r--r-- | favicon.png | bin | 0 -> 19510 bytes | |||
-rw-r--r-- | game.html | 2 | ||||
-rw-r--r-- | index.html | 11 | ||||
-rwxr-xr-x | upload.sh | 2 |
4 files changed, 11 insertions, 4 deletions
diff --git a/favicon.png b/favicon.png Binary files differnew file mode 100644 index 0000000..383af19 --- /dev/null +++ b/favicon.png @@ -5,7 +5,7 @@ <title>jigsaw</title> <meta charset="utf-8"> <meta content="width=device-width,initial-scale=1" name="viewport"> - <link rel="icon" href="favicon.ico"> + <link rel="icon" href="favicon.png"> <link rel="stylesheet" href="style.css"> <script src="game.js?v=2" async></script> </head> @@ -2,12 +2,19 @@ <html lang="en"> <head> + <script> + if(location.protocol.startsWith('http') && + !location.pathname.endsWith('/') && + !location.pathname.endsWith('.html')) { + location.pathname += '/index.html'; +} + </script> <title>jigsaw</title> <meta charset="utf-8"> <meta content="width=device-width,initial-scale=1" name="viewport"> - <link rel="icon" href="favicon.ico"> + <link rel="icon" href="favicon.png"> <link rel="stylesheet" href="style.css"> - <script src="index.js"></script> + <script src="index.js?v=3"></script> </head> <body class="margined"> <h3>jigsaw</h3> @@ -6,7 +6,7 @@ RCLONE_DEST=${RCLONE_DEST:-linode:/s.pommicket.com/jigsaw} # server user+hostname REMOTE=${REMOTE:-jigsaw@pommicket.com} -for file in *.html *.js *.css *.mp3; do +for file in *.html *.js *.css *.mp3 favicon.png; do echo "upload $file" rclone copy --s3-acl=public-read $file $RCLONE_DEST || exit 1 done |