summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--favicon.pngbin17081 -> 0 bytes
-rw-r--r--favicons/favicon_henry_vi.png (renamed from favicon_henry_vi.png)bin11353 -> 11353 bytes
-rw-r--r--favicons/favicon_march.png (renamed from favicon_march.png)bin14779 -> 14779 bytes
-rw-r--r--favicons/favicon_margaret.png (renamed from favicon_margaret.png)bin11615 -> 11615 bytes
-rw-r--r--favicons/favicon_warwick.pngbin0 -> 14943 bytes
-rw-r--r--favicons/favicon_york.png (renamed from favicon_york.png)bin14112 -> 14112 bytes
-rw-r--r--play.html2
-rw-r--r--play.js13
8 files changed, 14 insertions, 1 deletions
diff --git a/favicon.png b/favicon.png
deleted file mode 100644
index fbe6ddb..0000000
--- a/favicon.png
+++ /dev/null
Binary files differ
diff --git a/favicon_henry_vi.png b/favicons/favicon_henry_vi.png
index 3d7b22c..3d7b22c 100644
--- a/favicon_henry_vi.png
+++ b/favicons/favicon_henry_vi.png
Binary files differ
diff --git a/favicon_march.png b/favicons/favicon_march.png
index c6225ad..c6225ad 100644
--- a/favicon_march.png
+++ b/favicons/favicon_march.png
Binary files differ
diff --git a/favicon_margaret.png b/favicons/favicon_margaret.png
index 3d9bc1c..3d9bc1c 100644
--- a/favicon_margaret.png
+++ b/favicons/favicon_margaret.png
Binary files differ
diff --git a/favicons/favicon_warwick.png b/favicons/favicon_warwick.png
new file mode 100644
index 0000000..1baf53c
--- /dev/null
+++ b/favicons/favicon_warwick.png
Binary files differ
diff --git a/favicon_york.png b/favicons/favicon_york.png
index 0ffb8be..0ffb8be 100644
--- a/favicon_york.png
+++ b/favicons/favicon_york.png
Binary files differ
diff --git a/play.html b/play.html
index c0ef2a1..0e01978 100644
--- a/play.html
+++ b/play.html
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1">
<meta charset="utf-8">
<title>PLANTAGENET</title>
-<link rel="icon" href="favicon_york.png">
+<link id="favicon" rel="icon" href="favicons/favicon_warwick.png">
<link rel="stylesheet" href="/fonts/fonts.css">
<link rel="stylesheet" href="/common/play.css">
<link rel="stylesheet" href="play.css">
diff --git a/play.js b/play.js
index aa4a352..58054a7 100644
--- a/play.js
+++ b/play.js
@@ -558,6 +558,7 @@ let expand_calendar = -1
let expand_track = -1
const ui = {
+ favicon: document.getElementById("favicon"),
locale: [],
locale_name: [],
locale_markers: [],
@@ -1460,6 +1461,18 @@ function update_vassals() {
function on_update() {
restart_cache()
+ switch (player) {
+ case "York":
+ ui.favicon.href = "favicons/favicon_york.png"
+ break
+ case "Lancaster":
+ ui.favicon.href = "favicons/favicon_henry_vi.png"
+ break
+ default:
+ ui.favicon.href = "favicons/favicon_warwick.png"
+ break
+ }
+
for (let i = 0; i <= 16; ++i) {
calendar_layout_cylinder[i] = []
calendar_layout_vassal[i] = []