/****** Font Awesome ******/ /****** Collapsing Nested Menu Items | Code by Elegant Themes ******/ var d = new Date(); var n = d.getDay(); var titles = ['title 1', 'title 2', 'title 3', 'title 4', 'title 5', 'title 6', 'title 7']; document.getElementById("show-hours").innerHTML = titles[n-1];