{"size": 573, "ext": "js", "max_stars_repo_path": "public/assets/js/script.js", "max_stars_repo_name": "mohammedabdurahoof/swalah", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/assets/js/script.js", "max_issues_repo_name": "mohammedabdurahoof/swalah", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/assets/js/script.js", "max_forks_repo_name": "mohammedabdurahoof/swalah", "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": 23.875, "max_line_length": 65, "alphanum_fraction": 0.5392670157}
// openAddForm

function openAddForm() {
    document.getElementById("openAddForm").hidden = false;
}

function closeForm() {
    document.getElementById("openAddForm").hidden = true;
}

function editCall(student) {
    $.ajax({
        url: `edit/${student.id}`,
        success: function (result) {
            openAddForm();
            $("#name").val(result.name);
            $("#adno").val(result.adno);
            $("#class").val(result.class);
            $('#addForm').attr('action', `/update/${result.id}`);
            console.log(result);
        },
    });
}
