mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-06-20 10:37:54 +02:00
Feature
This commit is contained in:
@ -101,6 +101,18 @@ function Setup(){
|
||||
}
|
||||
Setup();
|
||||
|
||||
function updateCSS(){
|
||||
if (document.getElementById("mangaHoverCheckbox").checked == true){
|
||||
ChangeStyleSheet('hover')
|
||||
document.getElementById('pagestyle').setAttribute('href', 'styles/style_mangahover.css');
|
||||
//console.log('Changing theme to mangahover')
|
||||
} else {
|
||||
ChangeStyleSheet('default');
|
||||
document.getElementById('pagestyle').setAttribute('href', 'styles/style_default.css');
|
||||
//console.log('Changing theme to default')
|
||||
}
|
||||
}
|
||||
|
||||
function ResetContent(){
|
||||
//Delete everything
|
||||
tasksContent.replaceChildren();
|
||||
@ -412,15 +424,6 @@ function UpdateSettings(){
|
||||
setCookie("apiUri", apiUri);
|
||||
Setup();
|
||||
}
|
||||
|
||||
// If the checkbox is checked, set the style to style_mangahover.css and
|
||||
if (document.getElementById("mangaHoverCheckbox").checked == true){
|
||||
ChangeStyleSheet('hover')
|
||||
//console.log('Changing theme to mangahover')
|
||||
} else {
|
||||
ChangeStyleSheet('default');
|
||||
//console.log('Changing theme to default')
|
||||
}
|
||||
|
||||
if(settingKomgaUrl.value != "" &&
|
||||
settingKomgaUser.value != "" &&
|
||||
|
Reference in New Issue
Block a user