Contact usmode_edit
Home  /  Ahead  /   Counter

var START_DATE = new Date("February 10, 2023 18:20:00"); // put in the starting date here
var INTERVAL = 1; // in seconds
var INCREMENT = 17; // increase per tick
var START_VALUE = 24159722; // initial value when it's the start date
var count = 0;

/*
$.fn.digits = function(){
return this.each(function(){
$(this).text( $(this).text().replace(/(\d)(?=(\d\d\d)+(?!\d))/g, "$1,") );
})
}
*/

window.onload = function()
{
var msInterval = INTERVAL * 3000;
var now = new Date();
count = parseInt((now - START_DATE)/msInterval) * INCREMENT + START_VALUE;
document.getElementById('counter_new').innerHTML = count;
setInterval("count += INCREMENT; document.getElementById('counter_new').innerHTML = count;", msInterval);

//$('#counter_new').digits();
}