mirror of
https://github.com/openvk/openvk
synced 2025-01-10 09:59:38 +03:00
Compare commits
No commits in common. "d365bb6b9509acfbb08b2871dd57a3eec7635f47" and "95a62f56e09fc1909738a50f8d5cf3cd55059c9b" have entirely different histories.
d365bb6b95
...
95a62f56e0
5 changed files with 1 additions and 53 deletions
|
@ -261,7 +261,3 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block bodyScripts}
|
|
||||||
{script "js/al_despacito_wall.js"}
|
|
||||||
{/block}
|
|
|
@ -711,7 +711,3 @@
|
||||||
{include "banned.xml"}
|
{include "banned.xml"}
|
||||||
{/if}
|
{/if}
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block bodyScripts}
|
|
||||||
{script "js/al_despacito_wall.js"}
|
|
||||||
{/block}
|
|
|
@ -1,6 +1,6 @@
|
||||||
<h4 n:if="$showTitle ?? true">{_comments} ({$count})</h4>
|
<h4 n:if="$showTitle ?? true">{_comments} ({$count})</h4>
|
||||||
|
|
||||||
<div n:ifset="$thisUser" id="standaloneCommentBox">
|
<div n:ifset="$thisUser">
|
||||||
{var $commentsURL = "/al_comments/create/$model/" . $parent->getId()}
|
{var $commentsURL = "/al_comments/create/$model/" . $parent->getId()}
|
||||||
{var $club = $parent instanceof \openvk\Web\Models\Entities\Post && $parent->getTargetWall() < 0 ? (new openvk\Web\Models\Repositories\Clubs)->get(abs($parent->getTargetWall())) : $club}
|
{var $club = $parent instanceof \openvk\Web\Models\Entities\Post && $parent->getTargetWall() < 0 ? (new openvk\Web\Models\Repositories\Clubs)->get(abs($parent->getTargetWall())) : $club}
|
||||||
{if !$readOnly}
|
{if !$readOnly}
|
||||||
|
|
|
@ -2300,20 +2300,3 @@ a.poll-retract-vote {
|
||||||
background-image: url(/assets/packages/static/openvk/img/videoico.png);
|
background-image: url(/assets/packages/static/openvk/img/videoico.png);
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#standaloneCommentBox {
|
|
||||||
position: sticky;
|
|
||||||
top: 0;
|
|
||||||
background-color: #fff;
|
|
||||||
border-bottom: 1px dotted #8b8b8b;
|
|
||||||
z-index: 10;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page_content.overscrolled div[class$="_small_block"] {
|
|
||||||
position: absolute;
|
|
||||||
visibility: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page_content.overscrolled div[class$="_big_block"] {
|
|
||||||
width: unset;
|
|
||||||
}
|
|
|
@ -1,27 +0,0 @@
|
||||||
const contentPage = document.querySelector(".page_content");
|
|
||||||
const rootElement = document.documentElement;
|
|
||||||
|
|
||||||
let smallBlockObserver = new IntersectionObserver(entries => {
|
|
||||||
entries.forEach(x => {
|
|
||||||
window.requestAnimationFrame(() => {
|
|
||||||
let pastHeight = contentPage.getBoundingClientRect().height;
|
|
||||||
if(x.isIntersecting)
|
|
||||||
contentPage.classList.remove("overscrolled");
|
|
||||||
else
|
|
||||||
contentPage.classList.add("overscrolled");
|
|
||||||
|
|
||||||
let currentHeight = contentPage.getBoundingClientRect().height;
|
|
||||||
let ratio = currentHeight / pastHeight;
|
|
||||||
|
|
||||||
rootElement.scrollTop *= ratio;
|
|
||||||
}, contentPage);
|
|
||||||
});
|
|
||||||
}, {
|
|
||||||
root: null, // screen
|
|
||||||
rootMargin: "0px",
|
|
||||||
threshold: 0
|
|
||||||
});
|
|
||||||
|
|
||||||
let smol = document.querySelector('div[class$="_small_block"]');
|
|
||||||
if(smol != null)
|
|
||||||
smallBlockObserver.observe(smol);
|
|
Loading…
Reference in a new issue