+ 4
How to wish (live/Dynamic) based on live Time.
Wishings like Good Morning/ Good Afternoon, ...
2 Respuestas
+ 1
JS, for instance, provides access to the Date class.
let timeNow = new Date();
console.log(timeNow.getHours() + ":" + timeNow.getMinutes())
From here, you deduce your greetings accordingly using conditional statements.
+ 1
Shashank Reddy Voorelli
You can also use the "Triggers" for any live event listener. Jquery has an api for triggers which can easily be used
https://stackoverflow.com/questions/2490825/how-to-trigger-event-in-javascript
https://api.jquery.com/trigger/