{"size": 624, "ext": "js", "max_stars_repo_path": "public/admin-template/dashboard.js", "max_stars_repo_name": "patipan-patisampita/laravel9-day2", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/admin-template/dashboard.js", "max_issues_repo_name": "patipan-patisampita/laravel9-day2", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/admin-template/dashboard.js", "max_forks_repo_name": "patipan-patisampita/laravel9-day2", "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": 39.0, "max_line_length": 91, "alphanum_fraction": 0.7003205128}
let toggleMenu = (sidebarElement = "aside.sidebar") => {
    document.querySelector(sidebarElement).classList.toggle('hidden');
}
document.addEventListener("click", (event) => {
    const mobile_menu = document.querySelector('aside.sidebar');
    let targetElement = event.target; // Clicked element

    do {
        if (targetElement == document.querySelector('#mobileMenuBtn')) return toggleMenu();
        if (targetElement == mobile_menu) return;
        targetElement = targetElement.parentNode;
    } while (targetElement);

    if (!mobile_menu.classList.contains('hidden')) mobile_menu.classList.add('hidden');
});
