{"size": 1391, "ext": "js", "max_stars_repo_path": "public/js/examination/examination.js", "max_stars_repo_name": "SafwanELLipSE/coaching_management", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "public/js/examination/examination.js", "max_issues_repo_name": "SafwanELLipSE/coaching_management", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/js/examination/examination.js", "max_forks_repo_name": "SafwanELLipSE/coaching_management", "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": 32.3488372093, "max_line_length": 86, "alphanum_fraction": 0.5614665708}
$("#select_classroom").change(function() {
    var _token = $('meta[name="_token"]').attr('content');
    var x = document.getElementById("select_classroom").value;
    var ssl = $('meta[name="ssl"]').attr('content');

    $.ajax({
        url: ssl + window.location.hostname + "/exam/status-exam-count",
        type: 'POST',
        data: {
            id: x,
            _token
        },
        success: function (data) {
            $("#statusClassroom").show(500);
            document.getElementById("writtenQuestion").innerHTML = data.countWritten; 
            document.getElementById("mcqQuestion").innerHTML = data.countMcq;
            document.getElementById("totalMarks").innerHTML = data.totalMarks;
        },
    });
});



let el = document.getElementById("exam_marks");
el.addEventListener("input", function() {
    var _token = $('meta[name="_token"]').attr('content');
    var x = document.getElementById("select_classroom").value;
    var y = document.getElementById("exam_marks").value;
    var ssl = $('meta[name="ssl"]').attr('content');

    $.ajax({
        url: ssl + window.location.hostname + "/exam/mark-checker",
        type: 'POST',
        data: {
            id: x,
            numbers: y,
            _token
        },
        success: function (data) {
            document.getElementById("markDiffer").innerHTML = "("+data+")"; 
        },
    });
});