updated uh... something
This commit is contained in:
+14
-2
@@ -135,11 +135,23 @@ window.addEventListener("resize", () => {
|
|||||||
calcPixelDensity()
|
calcPixelDensity()
|
||||||
|
|
||||||
switch (CURRENT_PAGE) {
|
switch (CURRENT_PAGE) {
|
||||||
case (PAGES.SYNTHWAVE): onResizeSynthWave()
|
case (PAGES.SYNTHWAVE): onResizeSynthwave()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gridVisible) {
|
if (gridVisible) {
|
||||||
toggleGrid()
|
toggleGrid()
|
||||||
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() {
|
setTimeout(function() {
|
||||||
loadingScreenEl.style.left = "100vw"
|
loadingScreenEl.style.left = "100vw"
|
||||||
|
loadingScreenEl.style.pointerEvents = "none"
|
||||||
document.getElementById("loadingCornerText").remove()
|
document.getElementById("loadingCornerText").remove()
|
||||||
newTip()
|
newTip()
|
||||||
}, fadeOutDur * 1000)
|
}, fadeOutDur * 1000)
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ function slideTransition(url) {
|
|||||||
let mainDiv = document.getElementById("mainDiv")
|
let mainDiv = document.getElementById("mainDiv")
|
||||||
|
|
||||||
loadingScreen.style.animation = slideLeft
|
loadingScreen.style.animation = slideLeft
|
||||||
|
loadingScreen.style.pointerEvents = "auto"
|
||||||
mainDiv.style.animation = slideLeft
|
mainDiv.style.animation = slideLeft
|
||||||
|
|
||||||
setLoadingProgress(`Loading URL "${url}"`)
|
setLoadingProgress(`Loading URL "${url}"`)
|
||||||
|
|||||||
@@ -3,6 +3,10 @@ CURRENT_PAGE = PAGES.SYNTHWAVE
|
|||||||
function loadingScreenSynthwave() {
|
function loadingScreenSynthwave() {
|
||||||
setLoadingProgress("Adding stars...")
|
setLoadingProgress("Adding stars...")
|
||||||
addStars()
|
addStars()
|
||||||
|
|
||||||
|
setLoadingProgress("Starting synthwave animation...")
|
||||||
|
preAnimateSynthwave(25)
|
||||||
|
animateSynthwave(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user