Housekeeping

- Moving to HTMX integration
- Improving links for local use
- File structure
- Hiding clutter
This commit is contained in:
MrTeferi
2022-11-21 16:17:13 -06:00
parent 70c8990024
commit 432bdc998b
34 changed files with 202 additions and 457 deletions

View File

@@ -8,12 +8,14 @@ if (debugging) {
//To save the server from being overloaded? Maybe?
function fixUri(input) {
/* --- DISABLED FOR LOCAL VERSION --
var prefix = 'https://card-conjurer.storage.googleapis.com';//'https://raw.githubusercontent.com/ImKyle4815/cardconjurer/remake';
if (input.includes(prefix) || input.includes('http') || input.includes('data:image') || window.location.href.includes('localhost')) {
return input;
} else {
return prefix + input; //input.replace('/img/frames', prefix + '/img/frames');
}
} */
return input
}
function setImageUrl(image, source) {
image.crossOrigin = 'anonymous';