Skip to content

Instantly share code, notes, and snippets.

@agragregra
Created April 19, 2015 16:51
Show Gist options
  • Save agragregra/40448f755a13f3a135ee to your computer and use it in GitHub Desktop.
Save agragregra/40448f755a13f3a135ee to your computer and use it in GitHub Desktop.
javaScript Counter from Time
function renderCleanCounter()
{
var curDate = new Date();
var counterBlock = $('#counter');
var counterResulte = Math.round((curDate.getTime() - 1429460070577) / 3000) + 23124;
counterBlock.html(counterResulte);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment