Commit ·
f247dc6
1
Parent(s): c99bcca
3. Okt. 2024, 05:15
Browse files- _res/_custom.js +3 -7
_res/_custom.js
CHANGED
|
@@ -159,9 +159,7 @@ function gradioCustomJS() {
|
|
| 159 |
resolutionModalWrapper.style.opacity = "1"
|
| 160 |
alertModalElemSpan.textContent = "Diese Seite ist nicht für mobile Geräte optimiert. Bitte besuche diese Seite von einem Desktop-Computer aus."
|
| 161 |
alertModalElemButton.textContent = "Ok"
|
| 162 |
-
|
| 163 |
-
resolutionModalWrapper.style.display = ""
|
| 164 |
-
}, 400)
|
| 165 |
} else if (window.innerWidth < 1024) {
|
| 166 |
gradioContainer.classList.add("blur-container")
|
| 167 |
body.style.setProperty("--blur-value", "12px")
|
|
@@ -170,9 +168,7 @@ function gradioCustomJS() {
|
|
| 170 |
resolutionModalWrapper.style.opacity = "1"
|
| 171 |
alertModalElemSpan.textContent = "Bildschirm Auflösung oder Fensterbreite zu gering. Bitte besuche diese Seite von einem Desktop-Computer aus."
|
| 172 |
alertModalElemButton.textContent = "Ok"
|
| 173 |
-
|
| 174 |
-
resolutionModalWrapper.style.display = ""
|
| 175 |
-
}, 400)
|
| 176 |
} else {
|
| 177 |
gradioContainer.classList.remove("blur-container")
|
| 178 |
body.style.setProperty("--blur-value", "0px")
|
|
@@ -181,7 +177,7 @@ function gradioCustomJS() {
|
|
| 181 |
resolutionModalWrapper.style.opacity = "0"
|
| 182 |
setTimeout(() => {
|
| 183 |
resolutionModalWrapper.style.display = "none"
|
| 184 |
-
},
|
| 185 |
}
|
| 186 |
}
|
| 187 |
|
|
|
|
| 159 |
resolutionModalWrapper.style.opacity = "1"
|
| 160 |
alertModalElemSpan.textContent = "Diese Seite ist nicht für mobile Geräte optimiert. Bitte besuche diese Seite von einem Desktop-Computer aus."
|
| 161 |
alertModalElemButton.textContent = "Ok"
|
| 162 |
+
resolutionModalWrapper.style.display = ""
|
|
|
|
|
|
|
| 163 |
} else if (window.innerWidth < 1024) {
|
| 164 |
gradioContainer.classList.add("blur-container")
|
| 165 |
body.style.setProperty("--blur-value", "12px")
|
|
|
|
| 168 |
resolutionModalWrapper.style.opacity = "1"
|
| 169 |
alertModalElemSpan.textContent = "Bildschirm Auflösung oder Fensterbreite zu gering. Bitte besuche diese Seite von einem Desktop-Computer aus."
|
| 170 |
alertModalElemButton.textContent = "Ok"
|
| 171 |
+
resolutionModalWrapper.style.display = ""
|
|
|
|
|
|
|
| 172 |
} else {
|
| 173 |
gradioContainer.classList.remove("blur-container")
|
| 174 |
body.style.setProperty("--blur-value", "0px")
|
|
|
|
| 177 |
resolutionModalWrapper.style.opacity = "0"
|
| 178 |
setTimeout(() => {
|
| 179 |
resolutionModalWrapper.style.display = "none"
|
| 180 |
+
}, 800)
|
| 181 |
}
|
| 182 |
}
|
| 183 |
|