{"size": 438, "ext": "js", "max_stars_repo_path": "resources/js/lib/MenuDrawer.js", "max_stars_repo_name": "marktinsley/lueir", "max_stars_repo_stars_event_min_datetime": "2020-11-10T14:24:36.000Z", "max_stars_repo_stars_event_max_datetime": "2020-11-10T14:24:36.000Z", "max_issues_repo_path": "resources/js/lib/MenuDrawer.js", "max_issues_repo_name": "marktinsley/lueir", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "resources/js/lib/MenuDrawer.js", "max_forks_repo_name": "marktinsley/lueir", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.0434782609, "max_line_length": 54, "alphanum_fraction": 0.5159817352}
export class MenuDrawer {
    static show() {
        MenuDrawer.getElement().show();
    }

    static hide() {
        MenuDrawer.getElement().hide();
    }

    static toggle() {
        const element = MenuDrawer.getElement();
        if (element.open) {
            element.hide();
        } else {
            element.show();
        }
    }

    static getElement() {
        return document.getElementById('menu-drawer');
    }
}
