6
This commit is contained in:
@@ -11,6 +11,7 @@ window.onload = function (){
|
||||
middleWareJS()
|
||||
openOrCloseCurtainSupportChat()
|
||||
openOverlayOrClose()
|
||||
goToChatIfChat()
|
||||
// let body = document.querySelector("body")
|
||||
// const viewPortH = body.getBoundingClientRect().height;
|
||||
// const windowH = window.innerHeight;
|
||||
@@ -43,7 +44,13 @@ window.onload = function (){
|
||||
}
|
||||
}
|
||||
//
|
||||
|
||||
function goToChatIfChat () {
|
||||
if (document.querySelector('.block-chat')){
|
||||
let chat = document.querySelector('.block-chat')
|
||||
let top = chat.offsetTop
|
||||
window.scrollTo({top:top})
|
||||
}
|
||||
}
|
||||
|
||||
function middleWareJS(){
|
||||
let footer = document.querySelector("footer")
|
||||
|
||||
Reference in New Issue
Block a user