diff --git a/classes/index.html b/classes/index.html index af36a6e..fe6fff4 100644 --- a/classes/index.html +++ b/classes/index.html @@ -13,7 +13,7 @@ - + @@ -375,7 +375,7 @@ - + \ No newline at end of file diff --git a/connect/index.html b/connect/index.html index a673bb3..ed9e630 100644 --- a/connect/index.html +++ b/connect/index.html @@ -13,7 +13,7 @@ - + @@ -193,7 +193,7 @@ - + \ No newline at end of file diff --git a/festivals/index.html b/festivals/index.html index cd84280..ec07acb 100644 --- a/festivals/index.html +++ b/festivals/index.html @@ -13,7 +13,7 @@ - + @@ -244,7 +244,7 @@ - + \ No newline at end of file diff --git a/index.html b/index.html index b569d11..7ae593f 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,7 @@ - + @@ -273,7 +273,7 @@ - + \ No newline at end of file diff --git a/js/main.js b/js/main.js index 87329a8..4d6ebdf 100644 --- a/js/main.js +++ b/js/main.js @@ -176,13 +176,15 @@ function lockPalmSizes() { const vh = window.innerHeight; const clamp = (val, min, max) => Math.min(Math.max(val, min), max); + const leftOffset = vw >= 1024 ? -0.08 : -0.15; + // Each entry: [size, { top|bottom, left|right } in px] const config = { - 'corner-tl': { size: clamp(vw * 0.40, 100, 620), pos: { top: vh * -0.08, left: vw * -0.15 } }, + 'corner-tl': { size: clamp(vw * 0.40, 100, 620), pos: { top: vh * -0.08, left: vw * leftOffset } }, 'corner-tr': { size: clamp(vw * 0.40, 100, 620), pos: { top: vh * -0.08, right: vw * -0.10 } }, - 'corner-bl': { size: clamp(vw * 0.40, 100, 620), pos: { bottom: vh * -0.08, left: vw * -0.15 } }, + 'corner-bl': { size: clamp(vw * 0.40, 100, 620), pos: { bottom: vh * -0.08, left: vw * leftOffset } }, 'corner-br': { size: clamp(vw * 0.40, 100, 620), pos: { bottom: vh * -0.08, right: vw * -0.10 } }, - 'corner-ml': { size: clamp(vw * 0.49, 120, 760), pos: { top: vh * 0.32, left: vw * -0.15 } }, + 'corner-ml': { size: clamp(vw * 0.49, 120, 760), pos: { top: vh * 0.32, left: vw * leftOffset } }, 'corner-ml2': { size: clamp(vw * 0.45, 110, 700), pos: { top: vh * 0.62, left: vw * -0.10 } }, 'corner-mr': { size: clamp(vw * 0.44, 110, 680), pos: { top: vh * 0.22, right: vw * -0.10 } }, 'corner-mr2': { size: clamp(vw * 0.48, 115, 740), pos: { top: vh * 0.70, right: vw * -0.10 } }, diff --git a/schedule/index.html b/schedule/index.html index 4a0a342..ad617e4 100644 --- a/schedule/index.html +++ b/schedule/index.html @@ -13,7 +13,7 @@ - + @@ -119,7 +119,7 @@ - + + \ No newline at end of file