mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-26 21:04:58 -05:00
Housekeeping
- Moving to HTMX integration - Improving links for local use - File structure - Hiding clutter
This commit is contained in:
@@ -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';
|
||||
|
1
js/htmx.min.js
vendored
Normal file
1
js/htmx.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -10,7 +10,7 @@ if (localStorage.getItem('theme')) {
|
||||
|
||||
function updateCSS() {
|
||||
if (!root.getPropertyValue('--site-background').includes(theme.background)) {
|
||||
root.setProperty('--site-background', 'url("' + (theme.background || '/img/lowpolyBackground.svg') + '")');
|
||||
root.setProperty('--site-background', 'url("' + (theme.background || '../img/lowpolyBackground.svg') + '")');
|
||||
}
|
||||
// root.setProperty("--color-primary", theme.SOMETHING);
|
||||
// root.setProperty("--color-selected", theme.SOMETHING);
|
||||
@@ -38,7 +38,7 @@ function rainbowMode() {
|
||||
}
|
||||
|
||||
function resetTheme() {
|
||||
theme = {huerotate:0, background:'/img/lowpolyBackground.svg', readablebrightness:0.3, rainbow:0};
|
||||
theme = {huerotate:0, background:'../img/lowpolyBackground.svg', readablebrightness:0.3, rainbow:0};
|
||||
localStorage.setItem('theme', JSON.stringify(theme));
|
||||
updateCSS();
|
||||
if (window.location.href.includes('/theme/')) {
|
||||
|
Reference in New Issue
Block a user