This commit is contained in:
SBD
2023-12-02 15:31:50 +03:00
parent fcfbeece87
commit 8e7bcd8fd8

View File

@@ -55,12 +55,13 @@ function select_tab_profile (el,url,owner_type=null) {
} }
document.querySelector("#ru_lang").href = confirm_url_f_lang_ru document.querySelector("#ru_lang").href = confirm_url_f_lang_ru
document.querySelector("#en_lang").href = confirm_url_f_lang_en document.querySelector("#en_lang").href = confirm_url_f_lang_en
let header = document.querySelector("header") // let header = document.querySelector("header")
header.scrollIntoView({ // header.scrollIntoView({
behavior: "smooth", // behavior: "smooth",
block: "end", // block: "end",
inline:'center' // inline:'nearest'
}) // })
document.querySelector("body").scrollTop = 0
middleWareJS() middleWareJS()
let user_type = getInfoAboutUser() let user_type = getInfoAboutUser()
if (user_type === 'mobile') { if (user_type === 'mobile') {
@@ -83,8 +84,7 @@ function select_tab_profile (el,url,owner_type=null) {
}); });
} }
function clickONTHEAPROfileBTN (el) { function clickONTHEAPROfileBTN (el) {
let parent = el.parentNode let el_f_click = el.querySelector(".text_btn_profile")
let el_f_click = parent.querySelector(".text_btn_profile")
el_f_click.click() el_f_click.click()
} }