mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
update page footer on transition
This commit is contained in:
parent
29860d7237
commit
530287feed
2 changed files with 5 additions and 1 deletions
|
@ -62,6 +62,7 @@ window.router = new class {
|
||||||
const page_body = u(parsed_content.querySelector('.page_body'))
|
const page_body = u(parsed_content.querySelector('.page_body'))
|
||||||
const sidebar = u(parsed_content.querySelector('.sidebar'))
|
const sidebar = u(parsed_content.querySelector('.sidebar'))
|
||||||
const page_header = u(parsed_content.querySelector('.page_header'))
|
const page_header = u(parsed_content.querySelector('.page_header'))
|
||||||
|
const page_footer = u(parsed_content.querySelector('.page_footer'))
|
||||||
const backdrop = u(parsed_content.querySelector('#backdrop'))
|
const backdrop = u(parsed_content.querySelector('#backdrop'))
|
||||||
if(page_body.length < 1) {
|
if(page_body.length < 1) {
|
||||||
throw new Error('Invalid page has been loaded')
|
throw new Error('Invalid page has been loaded')
|
||||||
|
@ -78,6 +79,7 @@ window.router = new class {
|
||||||
})
|
})
|
||||||
u('.page_body').html(page_body.html())
|
u('.page_body').html(page_body.html())
|
||||||
u('.sidebar').html(sidebar.html())
|
u('.sidebar').html(sidebar.html())
|
||||||
|
u('.page_footer').html(page_footer.html())
|
||||||
if(backdrop.length > 0) {
|
if(backdrop.length > 0) {
|
||||||
if(u('#backdrop').length == 0) {
|
if(u('#backdrop').length == 0) {
|
||||||
u('body').append(`<div id="backdrop"></div>`)
|
u('body').append(`<div id="backdrop"></div>`)
|
||||||
|
@ -112,6 +114,8 @@ window.router = new class {
|
||||||
}
|
}
|
||||||
|
|
||||||
async __integratePage(scrolling = null) {
|
async __integratePage(scrolling = null) {
|
||||||
|
window.temp_y_scroll = null
|
||||||
|
u('.toTop').removeClass('has_down')
|
||||||
window.scrollTo(0, scrolling ?? 0)
|
window.scrollTo(0, scrolling ?? 0)
|
||||||
bsdnHydrate()
|
bsdnHydrate()
|
||||||
|
|
||||||
|
|
|
@ -548,7 +548,7 @@ input[type="radio"] {
|
||||||
border-bottom-color: #151418 !important;
|
border-bottom-color: #151418 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ajax_audio_player {
|
#ajax_audio_player, #ajloader {
|
||||||
box-shadow: rgb(58 53 73) 0px 0px 2px 3px;
|
box-shadow: rgb(58 53 73) 0px 0px 2px 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue