6.3: new error and save popups

- remade error and save popups. both are now properly located and sized on mobile screens. this is the first step in modernizing cobalt ui!
- fixed >> button getting stuck in error state.
This commit is contained in:
wukko
2023-07-19 01:50:51 +06:00
parent ccab047f19
commit bbf450a1fa
13 changed files with 1687 additions and 54 deletions

View File

@@ -245,11 +245,6 @@ function changeSwitcher(li, b) {
}
}
}
function internetError() {
eid("url-input-area").disabled = false
changeDownloadButton(2, '!!');
popup("error", 1, loc.noInternet);
}
function checkbox(action) {
sSet(action, !!eid(action).checked);
switch(action) {
@@ -283,8 +278,9 @@ function changeButton(type, text) {
case 0: //error
eid("url-input-area").disabled = false
eid("url-clear").style.display = "block";
changeDownloadButton(2, '!!')
changeDownloadButton(2, '!!');
popup("error", 1, text);
setTimeout(() => { changeButton(1); }, 2500);
break;
case 1: //enable back
changeDownloadButton(1, '>>');
@@ -299,6 +295,12 @@ function changeButton(type, text) {
break;
}
}
function internetError() {
eid("url-input-area").disabled = false
changeDownloadButton(2, '!!');
setTimeout(() => { changeButton(1); }, 2500);
popup("error", 1, loc.noInternet);
}
function resetSettings() {
localStorage.clear();
window.location.reload();