0.0.286
This commit is contained in:
@@ -11,15 +11,15 @@ window.onload = function (){
|
||||
|
||||
function middleWareJS(){
|
||||
let footer = document.querySelector("footer")
|
||||
let body = document.body.style;
|
||||
let body = document.querySelector("body")
|
||||
|
||||
if (document.querySelector(".block-list-of-users")){
|
||||
footer.style.display = "none"
|
||||
|
||||
body.style.overflow = "hidden"
|
||||
|
||||
} else {
|
||||
footer.style.display = ""
|
||||
|
||||
body.style.overflow = ""
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -17,7 +17,8 @@ function writeMessage(el){
|
||||
let list_div = document.querySelectorAll('.menu_profile div');
|
||||
list_div.forEach(el=>{ el.classList.remove('selected'); });
|
||||
el.classList.add('selected')
|
||||
|
||||
let body = document.querySelector("body")
|
||||
body.style.overflow = "hidden"
|
||||
//updating the url without reloading
|
||||
window.history.pushState(null, null, '/ru/profile/page/chat/')
|
||||
middleWareJS()
|
||||
|
||||
Reference in New Issue
Block a user