Welcome to this new post which we will put this code that welcomes your website visitors according to time.
What’s the point of it?
Honestly, I liked the category of these codes because they beautify the site so much, that’s why I designed this model to put it on top of the blog.
Code
Please copy the code correctly and place it in position without modification.
 Â
var welcome;Â Â
var date = new Date();Â Â
var hour = date.getHours();Â Â
var minute = date.getMinutes();Â Â
var second = date.getSeconds();Â Â
if (minute < 10) {Â Â
minute = "0" + minute;Â Â
}Â Â
if (second < 10) {Â Â
second = "0" + second;Â Â
}Â Â
if (hour < 12) {Â Â
welcome = "good morning";Â Â
18. } else if (hour < 17) {Â Â
welcome = "good afternoon";Â Â
} else {Â Â
welcome = "good evening";Â Â
}Â Â
document.write("
Categories