{"size": 932, "ext": "js", "max_stars_repo_path": "resources/js/select-script.js", "max_stars_repo_name": "giorgian96/gestionarea_cheltuielilor", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "resources/js/select-script.js", "max_issues_repo_name": "giorgian96/gestionarea_cheltuielilor", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "resources/js/select-script.js", "max_forks_repo_name": "giorgian96/gestionarea_cheltuielilor", "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": 49.0526315789, "max_line_length": 103, "alphanum_fraction": 0.6770386266}
window.showInput = function(category){
    if(category.value == 'Income'){
        // Disable expenses select
        document.getElementById('Expenses').getElementsByClassName('form-control')[0].disabled = true;
        document.getElementById('Income').getElementsByClassName('form-control')[0].disabled = false;

        // Show income div
        document.getElementById('Expenses').style.display = 'none';
        document.getElementById('Income').style.display = 'block';
    }else if(category.value == 'Expenses'){
        // Disable income select
        document.getElementById('Expenses').getElementsByClassName('form-control')[0].disabled = false;
        document.getElementById('Income').getElementsByClassName('form-control')[0].disabled = true;

        // Show expenses div
        document.getElementById('Expenses').style.display = 'block';
        document.getElementById('Income').style.display = 'none';
    }
}