Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gonzaloserrano/ca18cc43d079b9ba9de839f0c985d081 to your computer and use it in GitHub Desktop.
Save gonzaloserrano/ca18cc43d079b9ba9de839f0c985d081 to your computer and use it in GitHub Desktop.
contador de mierda
// CODIGO PARA EL CONTADOR DE MIERDA
var n = 0;
var caja_de_texto = document.getElementById("number");
var today = new Date();
var today_abs = new Date();
today_abs.setHours(0);
today_abs.setMinutes(0);
today_abs.setSeconds(0);
var today_secs = (today.getTime() - today_abs.getTime()) / 1000*253;
setInterval(function(){
caja_de_texto.innerHTML = (today_secs + n++) +"kg";
},3.937001) ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment