fix issue with theme
This commit is contained in:
parent
2f761f8740
commit
63dbc44d83
1 changed files with 11 additions and 6 deletions
|
@ -151,10 +151,12 @@ window.onload = function() {
|
||||||
css_url = theme;
|
css_url = theme;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (window.location.href.split("Y").length >1 ) {
|
||||||
let position = window.location.href.split("Y")[1].split("/").length - 1
|
let position = window.location.href.split("Y")[1].split("/").length - 1
|
||||||
for (let i = 1; i<=position; i++) {
|
for (let i = 1; i<=position; i++) {
|
||||||
css_url = "../" + css_url
|
css_url = "../" + css_url
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
changeCSS(css_url, 0)
|
changeCSS(css_url, 0)
|
||||||
}
|
}
|
||||||
|
@ -196,10 +198,13 @@ window.onload = function() {
|
||||||
toggler.style.outline = "none"
|
toggler.style.outline = "none"
|
||||||
toggler.addEventListener("change", function() {
|
toggler.addEventListener("change", function() {
|
||||||
css_url = toggler.value
|
css_url = toggler.value
|
||||||
|
if (window.location.href.split("Y").length > 1) {
|
||||||
let position = window.location.href.split("Y")[1].split("/").length - 1
|
let position = window.location.href.split("Y")[1].split("/").length - 1
|
||||||
for (let i = 1; i<=position; i++) {
|
for (let i = 1; i<=position; i++) {
|
||||||
css_url = "../" + css_url
|
css_url = "../" + css_url
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
changeCSS(css_url, 0)
|
changeCSS(css_url, 0)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue