Changeset 436694
- Timestamp:
- 09/12/2011 08:07:45 AM (15 years ago)
- Location:
- scripture-cloud
- Files:
-
- 2 edited
-
tags/1.0.0/scripturecloud_show.php (modified) (2 diffs)
-
trunk/scripturecloud_show.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
scripture-cloud/tags/1.0.0/scripturecloud_show.php
r436688 r436694 90 90 $min = min(array_values($refs)); // usually 1, the way it goes... 91 91 92 if (!$max || !($max - $min)) return ""; // div by zero stuff..93 94 92 $s .= "<div class='wrap'>\n"; 95 93 foreach($refs as $a=>$b) … … 98 96 if ($imax!=0 && $b>$imax) continue; 99 97 100 $z = ($b - $min) / ($max - $min) * ($largest - $smallest) + $smallest; 98 if ($max == $min) 99 $z = $largest; 100 else 101 $z = ($b - $min) / ($max - $min) * ($largest - $smallest) + $smallest; 101 102 102 103 $s .= "<span style='font:normal {$z}px/10px Tahoma' title='$b topics'> "; -
scripture-cloud/trunk/scripturecloud_show.php
r436688 r436694 90 90 $min = min(array_values($refs)); // usually 1, the way it goes... 91 91 92 if (!$max || !($max - $min)) return ""; // div by zero stuff..93 94 92 $s .= "<div class='wrap'>\n"; 95 93 foreach($refs as $a=>$b) … … 98 96 if ($imax!=0 && $b>$imax) continue; 99 97 100 $z = ($b - $min) / ($max - $min) * ($largest - $smallest) + $smallest; 98 if ($max == $min) 99 $z = $largest; 100 else 101 $z = ($b - $min) / ($max - $min) * ($largest - $smallest) + $smallest; 101 102 102 103 $s .= "<span style='font:normal {$z}px/10px Tahoma' title='$b topics'> ";
Note: See TracChangeset
for help on using the changeset viewer.