public
Last active

  • Download Gist
simpleCountdown.js
JavaScript
1 2
var difference = (new Date("dd/mm/yyyy") - new Date()) / 1000;
$("#countdown").html(Math.floor(( difference < 0 ? 0 : difference ) / (60 * 60 * 24)) + ' Dias');

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.