diff options
author | RaindropsSys <contact@minteck.org> | 2023-07-20 18:29:09 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-07-20 18:29:09 +0200 |
commit | 46251292b5c8b431de66aeff473594ccec60e04c (patch) | |
tree | c9f2c196e50f064a66625813660148379212d9d7 /includes/fragments/member.inc | |
parent | 93c96fd1d89782570de9478c26f17b406e9dd7a0 (diff) | |
download | pluralconnect-46251292b5c8b431de66aeff473594ccec60e04c.tar.gz pluralconnect-46251292b5c8b431de66aeff473594ccec60e04c.tar.bz2 pluralconnect-46251292b5c8b431de66aeff473594ccec60e04c.zip |
Updated 19 files and added 26 files (automated)
Diffstat (limited to 'includes/fragments/member.inc')
-rw-r--r-- | includes/fragments/member.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/fragments/member.inc b/includes/fragments/member.inc index 9ebb4c2..7672529 100644 --- a/includes/fragments/member.inc +++ b/includes/fragments/member.inc @@ -79,8 +79,8 @@ if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/assets/ponies/" . $memberID . ".pn </style> <script> - window.onscroll = () => { - document.getElementById("member-banner-container").style.height = (<?= !isset($memberData["banner"]) ? "33" : "65" ?> - ((window.scrollY / window.screen.availHeight) * 100)) + "vh"; + document.getElementById("app").onscroll = () => { + document.getElementById("member-banner-container").style.height = (<?= !isset($memberData["banner"]) ? "33" : "65" ?> - ((document.getElementById("app").scrollTop / (window.screen.availHeight - 62)) * 100)) + "vh"; } function showPrivate() { |