diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index c57b9ee..e2c14fa 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -53,8 +53,9 @@ function select_tab_profile (el,url,owner_type=null) { } document.querySelector("#ru_lang").href = confirm_url_f_lang_ru document.querySelector("#en_lang").href = confirm_url_f_lang_en - - + let header = document.querySelector("header") + header.scrollIntoView({ + behavior: "smooth", block: "end", inline: "nearest" }) middleWareJS() let user_type = getInfoAboutUser() if (user_type === 'mobile') { diff --git a/templates/pages/p_article.html b/templates/pages/p_article.html index aee4620..d88b3af 100644 --- a/templates/pages/p_article.html +++ b/templates/pages/p_article.html @@ -22,54 +22,45 @@