5
This commit is contained in:
@@ -11,9 +11,14 @@ window.onload = function (){
|
|||||||
middleWareJS()
|
middleWareJS()
|
||||||
openOrCloseCurtainSupportChat()
|
openOrCloseCurtainSupportChat()
|
||||||
openOverlayOrClose()
|
openOverlayOrClose()
|
||||||
let height = window.innerHeight
|
let body = document.querySelector("body")
|
||||||
document.querySelector('body').style.maxHeight = height + 'px'
|
const viewPortH = body.getBoundingClientRect().height;
|
||||||
document.querySelector('body').style.height = height + 'px'
|
const windowH = window.innerHeight;
|
||||||
|
const browserUiBarsH = viewPortH - windowH;
|
||||||
|
body.style.height = `calc(100vh - ${browserUiBarsH}px)`;
|
||||||
|
// let height = window.innerHeight
|
||||||
|
// document.querySelector('body').style.maxHeight = height + 'px'
|
||||||
|
// document.querySelector('body').style.height = height + 'px'
|
||||||
if (window.location.href.includes('profile') && !window.location.href.includes('login') && !window.location.href.includes('registration')){
|
if (window.location.href.includes('profile') && !window.location.href.includes('login') && !window.location.href.includes('registration')){
|
||||||
let user_type = getInfoAboutUser()
|
let user_type = getInfoAboutUser()
|
||||||
if (user_type === 'mobile') {
|
if (user_type === 'mobile') {
|
||||||
@@ -39,11 +44,6 @@ window.onload = function (){
|
|||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
|
||||||
$(window).on('resize',function (){
|
|
||||||
let height = window.innerHeight
|
|
||||||
$('body')[0].style.maxHeight = height + 'px'
|
|
||||||
$('body')[0].style.height = height + 'px'
|
|
||||||
})
|
|
||||||
|
|
||||||
function middleWareJS(){
|
function middleWareJS(){
|
||||||
let footer = document.querySelector("footer")
|
let footer = document.querySelector("footer")
|
||||||
|
|||||||
Reference in New Issue
Block a user