Commit
·
aa7b26c
1
Parent(s):
cb9be22
3. Okt. 2024, 06:24
Browse files- _res/_custom.js +4 -6
_res/_custom.js
CHANGED
@@ -154,9 +154,9 @@ function gradioCustomJS() {
|
|
154 |
if ("ontouchstart" in window || (navigator.maxTouchPoints && window.innerWidth < 768)) {
|
155 |
gradioContainer.classList.add("blur-container")
|
156 |
body.style.setProperty("--blur-value", "12px")
|
|
|
157 |
gradioApp.style.height = "calc(100vh - 120px)"
|
158 |
-
resolutionModalWrapper.
|
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 = ""
|
@@ -164,8 +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.
|
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 = ""
|
@@ -173,8 +172,7 @@ function gradioCustomJS() {
|
|
173 |
gradioContainer.classList.remove("blur-container")
|
174 |
body.style.setProperty("--blur-value", "0px")
|
175 |
gradioApp.style.height = ""
|
176 |
-
resolutionModalWrapper.
|
177 |
-
resolutionModalWrapper.style.opacity = "0"
|
178 |
resolutionModalWrapper.style.display = "none"
|
179 |
}
|
180 |
}
|
|
|
154 |
if ("ontouchstart" in window || (navigator.maxTouchPoints && window.innerWidth < 768)) {
|
155 |
gradioContainer.classList.add("blur-container")
|
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 |
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 |
gradioContainer.classList.remove("blur-container")
|
173 |
body.style.setProperty("--blur-value", "0px")
|
174 |
gradioApp.style.height = ""
|
175 |
+
resolutionModalWrapper.setProperty("--opacity-value", "0")
|
|
|
176 |
resolutionModalWrapper.style.display = "none"
|
177 |
}
|
178 |
}
|