{"size": 539, "ext": "js", "max_stars_repo_path": "src/scripts/components/timetable.js", "max_stars_repo_name": "umbardrinks/site", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/scripts/components/timetable.js", "max_issues_repo_name": "umbardrinks/site", "max_issues_repo_issues_event_min_datetime": "2021-03-09T10:26:19.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-12T15:24:50.000Z", "max_forks_repo_path": "src/scripts/components/timetable.js", "max_forks_repo_name": "umbardrinks/site", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 31.7058823529, "max_line_length": 71, "alphanum_fraction": 0.5194805195}
export default function Timetable() {
    const day = (new Date()).getDay();
    const el = document.getElementsByClassName('timetable');

    for(var x=0; x<el.length; x++) {
        let timetable = el[x];
        let trs = timetable.getElementsByTagName('tr');
        for (var y = 0; y < trs.length; y++) { 
            let tr = trs[y];
            if(tr.dataset.day == day) {
                tr.className = "timetable__row-today";

                // tr.getElementsByTagName('td')[0].innerHTML = "Hoje";
            }
        }
    }
}