summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2024-08-15 21:03:12 -0400
committerpommicket <pommicket@gmail.com>2024-08-15 21:03:12 -0400
commit5a3a0bb35e55294ab84fd8b759c637a0f1aeea82 (patch)
tree6ea69f312201defec726cb4c11fb6e2e88496729
parentb0925d8b148b5ca2ed82e1b6aad7028fb451e8df (diff)
favicon
-rw-r--r--favicon.pngbin0 -> 19510 bytes
-rw-r--r--game.html2
-rw-r--r--index.html11
-rwxr-xr-xupload.sh2
4 files changed, 11 insertions, 4 deletions
diff --git a/favicon.png b/favicon.png
new file mode 100644
index 0000000..383af19
--- /dev/null
+++ b/favicon.png
Binary files differ
diff --git a/game.html b/game.html
index b94d6a8..2c0a5d2 100644
--- a/game.html
+++ b/game.html
@@ -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>
diff --git a/index.html b/index.html
index 04ad189..1a0af50 100644
--- a/index.html
+++ b/index.html
@@ -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>
diff --git a/upload.sh b/upload.sh
index 42d1483..0fdc6b4 100755
--- a/upload.sh
+++ b/upload.sh
@@ -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