{"size": 934, "ext": "js", "max_stars_repo_path": "public/asset/client-portal/js/account-settings.js", "max_stars_repo_name": "Damilola-design/mj_design", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/asset/client-portal/js/account-settings.js", "max_issues_repo_name": "Damilola-design/mj_design", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/asset/client-portal/js/account-settings.js", "max_forks_repo_name": "Damilola-design/mj_design", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.6857142857, "max_line_length": 76, "alphanum_fraction": 0.6220556745}
let accountEditBtns = document.querySelectorAll('.s__account .button span');

accountEditBtns.forEach(btn=>{
    btn.addEventListener('click',()=>{
        let dataDiv = btn.closest('.data');

        dataDiv.nextElementSibling.classList.toggle('active');

        if(dataDiv.nextElementSibling.classList.contains('active')){
            dataDiv.style.display = 'none'
        }
        else{
            dataDiv.style.display = 'block'
        }

    })
})

let accountSaveBtns = document.querySelectorAll('.s__account .action a');

accountSaveBtns.forEach(btn=>{
    btn.addEventListener('click',()=>{
        let actionDiv = btn.closest('.action');

        actionDiv.classList.toggle('active');

        if(!actionDiv.classList.contains('active')){
            actionDiv.previousElementSibling.style.display = 'block'
        }
        else{
            actionDiv.previousElementSibling.style.display = 'none'
        }

    })
})