Skip to content

Commit

Permalink
Decom in favor of new repo
Browse files Browse the repository at this point in the history
  • Loading branch information
Frenken, S.H. (Sander) committed Jan 3, 2025
1 parent 6838f4a commit a7093f3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<title>Universal LPC Sprite Sheet Character Generator</title>
<link rel="stylesheet" type="text/css" href="sources/chargen.css">
<script type="text/javascript" src="sources/redirect.js"></script>
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.7/underscore-min.js" integrity="sha512-dvWGkLATSdw5qWb2qozZBRKJ80Omy2YN/aF3wTUVC5+D1eqbA+TjWpPpoj8vorK5xGLMa2ZqIeWCpDZP/+pQGQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.string/2.4.0/underscore.string.min.js" integrity="sha512-EtNEjJOVcNyZFlf+g4ZhbYhyqBNBybgfUquvo5+gGSTTZBmm0+yJQXozIz/8qbzcdu0bWwdYQLBb5ROJqVB+Tw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
Expand Down
12 changes: 12 additions & 0 deletions sources/redirect.js
Original file line number Diff line number Diff line change
@@ -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
}
1 change: 1 addition & 0 deletions sources/source_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<title>Universal LPC Sprite Sheet Character Generator</title>
<link rel="stylesheet" type="text/css" href="sources/chargen.css">
<script type="text/javascript" src="sources/redirect.js"></script>
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.7/underscore-min.js" integrity="sha512-dvWGkLATSdw5qWb2qozZBRKJ80Omy2YN/aF3wTUVC5+D1eqbA+TjWpPpoj8vorK5xGLMa2ZqIeWCpDZP/+pQGQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.string/2.4.0/underscore.string.min.js" integrity="sha512-EtNEjJOVcNyZFlf+g4ZhbYhyqBNBybgfUquvo5+gGSTTZBmm0+yJQXozIz/8qbzcdu0bWwdYQLBb5ROJqVB+Tw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
Expand Down

0 comments on commit a7093f3

Please sign in to comment.