X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=photo-tags.git;a=blobdiff_plain;f=index.php;h=45bf53fcda08b1f576c1edbddfa0eea99b2ba037;hp=34382f9bd334991c20287262542a71f28aa65978;hb=fb410dcb5dd4c7f626a8672b0153d195c510946e;hpb=39e972d629841a6d6086837433a1060fa6be2851 diff --git a/index.php b/index.php index 34382f9..45bf53f 100644 --- a/index.php +++ b/index.php @@ -193,8 +193,8 @@ function cloud() { /* update pics */ d3.json(url, function(json) { svgelement.selectAll("text").data(json).enter().append("text") - .style("font-size", function(d){return Math.log(d.count+1)+"em"}) - .text(function(d) { return d.name; }) + .style("font-size", function(d){return (Math.log(d.count+1)/2.0)+"em"}) + .text(function(d) { return d.name+" "; }) .on("mouseover", function(d){ d3.select(this).style("color","red")} ) .on("mouseout", function(d){ d3.select(this).style("color","white")} ) .on("click", function(d) { document.location.href='/tag/'+d.name })