Make content appear/disappear by the clock

How can I make the whole page or most of its content disappear for a given hour of the day?

I have a simple ordering form. And I can only take orders from 8:00 to 10:00. I am not using any of the app forms, they are way to complicated for what I am doing. How can I stop the the form/site working after 10:00 (every week day)?

Thanks.
Hlynur

Hi Hlynur,

Welcome to the Wix Code forums.

You can put all of the content to be hidden in a $w.Box , and then based on the time, hide() or show() .

The other way, is to use a router which would handle everything in the “background”, and would take of access, redirect, reject, etc. Routers are a little more complicated, but provide a higher level of security and provide a more seamless experience. Read About Routers for more information.

Good luck,

Yisrael