Compare commits
No commits in common. "6952bcaa1d1d797ad60b15dd490e90906cdbd818" and "c315237d649b1ab2bc22072d3aa528e44df5a611" have entirely different histories.
6952bcaa1d
...
c315237d64
@ -98,7 +98,7 @@
|
|||||||
<label for="ntfyAuth"></label><input placeholder="Auth" id="ntfyAuth" type="text">
|
<label for="ntfyAuth"></label><input placeholder="Auth" id="ntfyAuth" type="text">
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<input type="checkbox" id="mangaHoverCheckbox" name="css-style" value="style_mangahover.css" onclick="updateCSS()">
|
<input type="checkbox" id="mangaHoverCheckbox" name="css-style" value="style_mangahover.css">
|
||||||
<label for="css-style"> Show manga titles and sources on hover</label><br>
|
<label for="css-style"> Show manga titles and sources on hover</label><br>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
@ -101,18 +101,6 @@ function Setup(){
|
|||||||
}
|
}
|
||||||
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(){
|
function ResetContent(){
|
||||||
//Delete everything
|
//Delete everything
|
||||||
tasksContent.replaceChildren();
|
tasksContent.replaceChildren();
|
||||||
@ -424,6 +412,15 @@ function UpdateSettings(){
|
|||||||
setCookie("apiUri", apiUri);
|
setCookie("apiUri", apiUri);
|
||||||
Setup();
|
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 != "" &&
|
if(settingKomgaUrl.value != "" &&
|
||||||
settingKomgaUser.value != "" &&
|
settingKomgaUser.value != "" &&
|
||||||
|
Loading…
Reference in New Issue
Block a user