{"size": 520, "ext": "js", "max_stars_repo_path": "legacy/script.js", "max_stars_repo_name": "annawang7/annawang7.github.io", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "legacy/script.js", "max_issues_repo_name": "annawang7/annawang7.github.io", "max_issues_repo_issues_event_min_datetime": "2020-02-25T16:00:03.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T04:40:23.000Z", "max_forks_repo_path": "legacy/script.js", "max_forks_repo_name": "annawang7/annawang7.github.io", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 4, "max_forks_count": null, "avg_line_length": 30.5882352941, "max_line_length": 69, "alphanum_fraction": 0.6115384615}
var led_matrix = document.getElementById("led_matrix");

function init() {
    var matrixPixelWidth = window.getComputedStyle(led_matrix).width;
    var numCols = matrixPixelWidth / 20;
    console.log(numCols);
    for(var rows = 0; rows < 8; rows++) {
        for (var col = 0; col < numCols; col++) {
            var led = document.createElement("div");
            led.className = "led";
            led_matrix.appendChild(led)
        }
        led_matrix.appendChild(document.createElement("br"));
    }
}

init();