improve tag cloud font size scaling
* use logarithmic scales * remove bold style
This commit is contained in:
parent
60b83e7cf7
commit
1e3b2740e5
2 changed files with 2 additions and 2 deletions
|
@ -562,7 +562,6 @@ a.qrcode img {
|
|||
}
|
||||
|
||||
#cloudtag a {
|
||||
font-weight:bold;
|
||||
color: black;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
|
|
@ -1251,8 +1251,9 @@ function renderPage()
|
|||
ksort($tags);
|
||||
$tagList=array();
|
||||
foreach($tags as $key=>$value)
|
||||
// Tag font size scaling: default 15 and 30 logarithm bases affect scaling, 22 and 6 are arbitrary font sizes for max and min sizes.
|
||||
{
|
||||
$tagList[$key] = array('count'=>$value,'size'=>max(40*$value/$maxcount,8));
|
||||
$tagList[$key] = array('count'=>$value,'size'=>log($value, 15) / log($maxcount, 30) * (22-6) + 6);
|
||||
}
|
||||
$PAGE = new pageBuilder;
|
||||
$PAGE->assign('linkcount',count($LINKSDB));
|
||||
|
|
Loading…
Reference in a new issue