{"size": 859, "ext": "js", "max_stars_repo_path": "js/config.js", "max_stars_repo_name": "hilmyshabir/WEBPRO-YES-", "max_stars_repo_stars_event_min_datetime": "2020-04-24T06:08:47.000Z", "max_stars_repo_stars_event_max_datetime": "2020-04-24T06:08:47.000Z", "max_issues_repo_path": "js/config.js", "max_issues_repo_name": "hilmyshabir/WEBPRO-YES-", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/config.js", "max_forks_repo_name": "hilmyshabir/WEBPRO-YES-", "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": 34.36, "max_line_length": 74, "alphanum_fraction": 0.4447031432}
$(document).ready(function () {
    $("#btn-search").click(function () {
        $(this).html("mencari..").attr("disabled", "disabled");

        $.ajax({
            url: baseurl + 'posyandu_controller_user/search',
            type: 'POST',
            data: { keyword: $("#keyword").val() },
            dataType: "json",
            beforeSend: function (e) {
                if (e && e.overrideMimeType) {
                    e.overrideMimeType("application/json;charset=UTF-8");
                }
            },
            success: function (response) {
                $("btn-search").html("Cari").removeAttr("disabled");

                $("#view").html(response.hasil);
            },
            error: function (xhr, ajaxOptions, thrownError) {
                alert(xhr.responseText);
            }
        });
    });
});