I would like to show/hide a div depending the date.
I tried with a js thats works perfect in an html but i cannot call the divs inside the adobe edge or put this code inside Edge
| window.setInterval(function(){ | ||
| var current = new Date(); | ||
| var pre = new Date("July 22, 2015 12:00:00") | ||
| if(current.getTime()<pre.getTime()){ | ||
| $('#pre').show(); | ||
| $('#post').hide(); } | ||
| else if(current.getTime()>pre.getTime()){ | ||
| $('#pre').hide(); | ||
| $('#post').show();}}); |
"pre" and "post" are the name of the divs
thanks a lot