git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
browser: count score for new status "p p"
[sheet.git]
/
browser.plp
diff --git
a/browser.plp
b/browser.plp
index 7e44f18af1f2b984ec87b37a15ee41f5f0558966..741868ba148a12bc3b9eea1261953aec88011148 100644
(file)
--- a/
browser.plp
+++ b/
browser.plp
@@
-65,7
+65,7
@@
my %CSTATUS = (
cr => 'l4', # candidate
pr => 'l4', # proposed
rec => 'l5', # recommendation
cr => 'l4', # candidate
pr => 'l4', # proposed
rec => 'l5', # recommendation
- other => 'l
5
', # non-w3
+ other => 'l
2
', # non-w3
ietf => 'l5', # standard
);
my %versions;
ietf => 'l5', # standard
);
my %versions;
@@
-135,14
+135,14
@@
print "</thead>\n";
sub featurescore {
# relative amount of support for given feature
sub featurescore {
# relative amount of support for given feature
- state $statspts = { y=>10, 'y x'=>10, a=>5, 'a x'=>5, j=>2, 'p j'=>2, p=>1 };
+ state $statspts = { y=>10, 'y x'=>10, a=>5, 'a x'=>5, j=>2, 'p j'=>2,
'p p'=>2,
p=>1 };
my $rank = 0;
if (my $row = shift) {
if ($canihas) {
while (my ($browser, $versions) = each %$row) {
ref $versions eq 'HASH' or next;
while (my ($version, $_) = each %$versions) {
my $rank = 0;
if (my $row = shift) {
if ($canihas) {
while (my ($browser, $versions) = each %$row) {
ref $versions eq 'HASH' or next;
while (my ($version, $_) = each %$versions) {
- $rank +=
$canihas->{$browser}->{$version}
* $statspts->{$_};
+ $rank +=
($canihas->{$browser}->{$version} || .001)
* $statspts->{$_};
}
}
return $rank;
}
}
return $rank;
@@
-172,7
+172,7
@@
sub saytitlecol {
for ($row->{categories}) {
my $cell = $_ ? lc $_->[0] : '-';
for ($row->{categories}) {
my $cell = $_ ? lc $_->[0] : '-';
- print
'<th>'
, $cell;
+ print
f '<th title="%s">%s', join(' + ', @$_)
, $cell;
}
print '<td>', map {
}
print '<td>', map {
@@
-283,7
+283,7
@@
sub showversions {
<td class="X l2">external (js/plugin)
<td class="X l1">missing
<td class="X l0">unknown
<td class="X l2">external (js/plugin)
<td class="X l1">missing
<td class="X l0">unknown
- <td class="X
l0
ex">prefixed
+ <td class="X ex">prefixed
</table>
<p><: if ($usage) { :>
</table>
<p><: if ($usage) { :>