0.0.77 update style.css for menu
This commit is contained in:
@@ -20,12 +20,7 @@ function SendLoginForm(el){
|
||||
success: function(data){
|
||||
|
||||
location.href = '/profile'
|
||||
// let profile_btn = document.createElement("a");
|
||||
// profile_btn.classList.add("profile_button");
|
||||
// profile_btn.innerText = "Профиль";
|
||||
// let reg_btn = document.querySelector(".registration_button");
|
||||
// let replace_btn = reg_btn.parentNode;
|
||||
// replace_btn.replaceChild(profile_btn, reg_btn);
|
||||
|
||||
|
||||
},
|
||||
error: function (data, exception){
|
||||
|
||||
@@ -96,6 +96,23 @@ function myProfile(){
|
||||
});
|
||||
}
|
||||
|
||||
function selectMenuItem() {
|
||||
let list_div = document.querySelectorAll('.menu_profile div');
|
||||
|
||||
list_div.forEach(item =>{
|
||||
item.addEventListener('click', (e) =>{
|
||||
list_div.forEach(el=>{ el.classList.remove('selected'); });
|
||||
item.classList.add('selected')
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
function confirmRemove(el) {
|
||||
|
||||
// let new_button = document.querySelector('.cancel_remove')
|
||||
|
||||
Reference in New Issue
Block a user