Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Show/Hide a div depending the date Adobe edge

$
0
0

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


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>