Answer the question
In order to leave comments, you need to log in
How to organize an action at night?
I need to do a night action in the online store.
I see it as a banner appearing on the promotion page or a pop-up window with a promo code at a certain time of the day.
How can it be implemented? Preferably without getting into php.
Online chats somehow cope with similar functionality, but for other purposes.
Maybe some external javascript service?
Answer the question
In order to leave comments, you need to log in
var time = new Date();
if (time.getHours() === 23) {
// do something
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question