{"size": 800, "ext": "js", "max_stars_repo_path": "dynamicTimeAnalyzer/javascript.js", "max_stars_repo_name": "CaioHRombaldo/JavascriptClasses", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "dynamicTimeAnalyzer/javascript.js", "max_issues_repo_name": "CaioHRombaldo/JavascriptClasses", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "dynamicTimeAnalyzer/javascript.js", "max_forks_repo_name": "CaioHRombaldo/JavascriptClasses", "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": 34.7826086957, "max_line_length": 62, "alphanum_fraction": 0.645}
var now = new Date()
var hours = now.getHours()
console.log(hours)

var timePhrase = document.querySelector('p#timePhrase')
timePhrase.innerHTML = `It is now ${hours} o'clock`

var timeImg = document.querySelector('img#timeImg')
var body = document.querySelector('body')

if (hours >= 5 && hours <= 10) {
    body.style.backgroundColor = 'rgba(232, 228, 118, 0.959)';
    timeImg.src = './res/BreakingDawn.png'
} else if (hours >= 11 && hours <= 15) {
    body.style.backgroundColor = 'rgba(245, 180, 83, 0.959)';
    timeImg.src = './res/Evening.png'
} else if (hours >= 16 && hours <= 19) {
    body.style.backgroundColor = 'rgba(219, 122, 57, 0.959)';
    timeImg.src = './res/Twilight.png'
} else {
    body.style.backgroundColor = 'rgba(45, 75, 92, 0.959)';
    timeImg.src = './res/Night.png'
}