made nav bar pixel positioned & improved synthwave generation
This commit is contained in:
+2
-1
@@ -8,8 +8,9 @@ function calcPixelDensity() {
|
||||
|
||||
document.documentElement.style.setProperty("--pxDensity", Math.max(densityWidth, densityHeight))
|
||||
document.documentElement.style.setProperty("--pxDensityPx", `${Math.max(densityWidth, densityHeight)}px`)
|
||||
|
||||
pxDensity = parseFloat(getComputedStyle(document.body).getPropertyValue("--pxDensity"))
|
||||
pxDensityDefined = true
|
||||
|
||||
console.log("pxDensity: " + getComputedStyle(document.body).getPropertyValue("--pxDensity"))
|
||||
pxDensityDefined = true
|
||||
}
|
||||
Reference in New Issue
Block a user