mirror of
https://github.com/Clortox/tylerperkins.xyz.git
synced 2026-03-07 10:37:58 +00:00
Finish basic site
This commit is contained in:
@@ -10,7 +10,7 @@ window.onload = function() {
|
||||
let parallax = document.querySelector('.parallax')
|
||||
let scrollPosition = window.pageYOffset;
|
||||
|
||||
let newSize = (document.querySelector('#content').offsetHeight * 0.66);
|
||||
let newSize = (document.querySelector('#content').offsetHeight * 0.8);
|
||||
if(newSize < window.innerHeight)
|
||||
newSize = window.innerHeight;
|
||||
parallax.style.height = newSize + "px";
|
||||
|
||||
Reference in New Issue
Block a user