diff --git a/stats-web/index.html b/stats-web/index.html index 334e04d..bfd737d 100644 --- a/stats-web/index.html +++ b/stats-web/index.html @@ -100,9 +100,9 @@ function toArray(o){var a=[];for(k in o){a.push([k,o[k]]);}return a} function sortMessages(a,b){return b[1]-a[1]} function mkRow(c){var a="createElement",r=document[a]("tr");c.map(function(C){var A=document[a]("td");A.innerHTML=C;r.appendChild(A)});return r;} - function values(x){var ar=[];for(i in x){ar.push(x[i])}return ar} months=["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"]; function dayfmt(d){var p=d.split("-");return[p[2],months[parseInt(p[1])-1],p[0]].join(" ")} + function reorder(d){var k=[],K=[],t={},v=[],i=0,p;for(x in d){p=x.split("-");p=parseInt(p[0])*1e4+parseInt(p[1])*1e2+parseInt(p[2]);t[p]=x;k.push(p);}k.sort();for (;i