Commit ·
5e0f175
1
Parent(s): 75510b3
3. Okt. 2024, 07:15
Browse files- _res/_custom.js +3 -3
_res/_custom.js
CHANGED
|
@@ -156,7 +156,7 @@ function gradioCustomJS() {
|
|
| 156 |
body.style.setProperty("--blur-value", "12px")
|
| 157 |
|
| 158 |
gradioApp.style.height = "calc(100vh - 120px)"
|
| 159 |
-
resolutionModalWrapper.setProperty("--opacity-value", "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 = ""
|
|
@@ -164,7 +164,7 @@ function gradioCustomJS() {
|
|
| 164 |
gradioContainer.classList.add("blur-container")
|
| 165 |
body.style.setProperty("--blur-value", "12px")
|
| 166 |
gradioApp.style.height = "calc(100vh - 120px)"
|
| 167 |
-
resolutionModalWrapper.setProperty("--opacity-value", "1")
|
| 168 |
alertModalElemSpan.textContent = "Bildschirm Auflösung oder Fensterbreite zu gering. Bitte besuche diese Seite von einem Desktop-Computer aus."
|
| 169 |
alertModalElemButton.textContent = "Ok"
|
| 170 |
resolutionModalWrapper.style.display = ""
|
|
@@ -172,7 +172,7 @@ function gradioCustomJS() {
|
|
| 172 |
gradioContainer.classList.remove("blur-container")
|
| 173 |
body.style.setProperty("--blur-value", "0px")
|
| 174 |
gradioApp.style.height = ""
|
| 175 |
-
resolutionModalWrapper.setProperty("--opacity-value", "0")
|
| 176 |
resize_eventListener("remove")
|
| 177 |
setTimeout(() => {
|
| 178 |
resolutionModalWrapper.style.display = "none"
|
|
|
|
| 156 |
body.style.setProperty("--blur-value", "12px")
|
| 157 |
|
| 158 |
gradioApp.style.height = "calc(100vh - 120px)"
|
| 159 |
+
resolutionModalWrapper.style.setProperty("--opacity-value", "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 = ""
|
|
|
|
| 164 |
gradioContainer.classList.add("blur-container")
|
| 165 |
body.style.setProperty("--blur-value", "12px")
|
| 166 |
gradioApp.style.height = "calc(100vh - 120px)"
|
| 167 |
+
resolutionModalWrapper.style.setProperty("--opacity-value", "1")
|
| 168 |
alertModalElemSpan.textContent = "Bildschirm Auflösung oder Fensterbreite zu gering. Bitte besuche diese Seite von einem Desktop-Computer aus."
|
| 169 |
alertModalElemButton.textContent = "Ok"
|
| 170 |
resolutionModalWrapper.style.display = ""
|
|
|
|
| 172 |
gradioContainer.classList.remove("blur-container")
|
| 173 |
body.style.setProperty("--blur-value", "0px")
|
| 174 |
gradioApp.style.height = ""
|
| 175 |
+
resolutionModalWrapper.style.setProperty("--opacity-value", "0")
|
| 176 |
resize_eventListener("remove")
|
| 177 |
setTimeout(() => {
|
| 178 |
resolutionModalWrapper.style.display = "none"
|