Skip to content

Instantly share code, notes, and snippets.

@rnaud
Created June 8, 2011 14:58
Show Gist options
  • Save rnaud/1014589 to your computer and use it in GitHub Desktop.
Save rnaud/1014589 to your computer and use it in GitHub Desktop.
date = $('meta[name=next_sale]').attr("content");
end_date = Date.parse(date);
remaining_time = end_date - now;
if (remaining_time > 0) {
$("#box5").html('<div id="box_timer">Ivan est un gros anuf</div>');
} else {
setInterval("updateTimer()", 1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment