From a7093f3c5034b8376446f9a51c2af71b016a0d9a Mon Sep 17 00:00:00 2001
From: "Frenken, S.H. (Sander)" <>
Date: Fri, 3 Jan 2025 11:18:42 +0100
Subject: [PATCH] Decom in favor of new repo
---
index.html | 1 +
sources/redirect.js | 12 ++++++++++++
sources/source_index.html | 1 +
3 files changed, 14 insertions(+)
create mode 100644 sources/redirect.js
diff --git a/index.html b/index.html
index ee45daf0aa..36458afc5e 100644
--- a/index.html
+++ b/index.html
@@ -6,6 +6,7 @@
Universal LPC Sprite Sheet Character Generator
+
diff --git a/sources/redirect.js b/sources/redirect.js
new file mode 100644
index 0000000000..3b25760a04
--- /dev/null
+++ b/sources/redirect.js
@@ -0,0 +1,12 @@
+// Check Current Origin
+const from = 'sanderfrenken.github.io'
+const to = 'liberatedpixelcup.github.io'
+const repo = 'Universal-LPC-Spritesheet-Character-Generator'
+if (window.location.host === from) {
+ const protocol = window.location.protocol
+ const path = (window.location.pathname === '/' || window.location.pathname === '') ? '/' + repo + '/' : window.location.pathname
+ const search = window.location.search
+ const hash = window.location.hash
+ const redirectTo = protocol + '//' + to + path + search + hash
+ location.href = redirectTo
+}
\ No newline at end of file
diff --git a/sources/source_index.html b/sources/source_index.html
index bc7ff5d1c5..28148093c2 100755
--- a/sources/source_index.html
+++ b/sources/source_index.html
@@ -5,6 +5,7 @@
Universal LPC Sprite Sheet Character Generator
+