updated uh... something
This commit is contained in:
+14
-2
@@ -135,11 +135,23 @@ window.addEventListener("resize", () => {
|
||||
calcPixelDensity()
|
||||
|
||||
switch (CURRENT_PAGE) {
|
||||
case (PAGES.SYNTHWAVE): onResizeSynthWave()
|
||||
case (PAGES.SYNTHWAVE): onResizeSynthwave()
|
||||
}
|
||||
|
||||
if (gridVisible) {
|
||||
toggleGrid()
|
||||
toggleGrid()
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
let prevAnimationState = isAnimating
|
||||
|
||||
document.addEventListener("visibilitychange", function (event) {
|
||||
if (document.hidden) {
|
||||
prevAnimationState = isAnimating
|
||||
isAnimating = false
|
||||
}
|
||||
else {
|
||||
isAnimating = prevAnimationState
|
||||
}
|
||||
});
|
||||
@@ -49,6 +49,7 @@ function removeLoadingScreen() {
|
||||
|
||||
setTimeout(function() {
|
||||
loadingScreenEl.style.left = "100vw"
|
||||
loadingScreenEl.style.pointerEvents = "none"
|
||||
document.getElementById("loadingCornerText").remove()
|
||||
newTip()
|
||||
}, fadeOutDur * 1000)
|
||||
|
||||
@@ -8,6 +8,7 @@ function slideTransition(url) {
|
||||
let mainDiv = document.getElementById("mainDiv")
|
||||
|
||||
loadingScreen.style.animation = slideLeft
|
||||
loadingScreen.style.pointerEvents = "auto"
|
||||
mainDiv.style.animation = slideLeft
|
||||
|
||||
setLoadingProgress(`Loading URL "${url}"`)
|
||||
|
||||
Reference in New Issue
Block a user