browser: hover description and notes
[sheet.git] / browser.plp
index 4a18cb419ad3e36bbd7c953ccbc52bbcd849d70c..fc04389c7df2c95d6e7b598258b0d0dd7de847f6 100644 (file)
@@ -20,6 +20,7 @@ Html({
 with <a href="http://stats.wikimedia.org/archive/squid_reports/">Wikimedia</a>
 browser usage statistics.</p>
 
+<div id="browser">
 <:
 my $caniuse = do 'browser-support.inc.pl' or die $! || $@;
 
@@ -144,7 +145,14 @@ for my $id (sort {
                my $cell = $_ ? lc $_->[0] : '-';
                print '<th>', $cell;
        }
-       printf '<td title="%s">%s', $row->{description}, $row->{title};
+       print '<td>', $row->{title};
+       print '<div class=aside>';
+       s/\.?$/./, print "<p>$_</p>" for map { ref $_ ? @$_ : $_ || () }
+               $row->{description}, $row->{notes};
+       printf 'Resources: %s.', join(', ',
+               map { qq(<a href="$_->{url}">$_->{title}</a>) } @$_
+       ) for $row->{links} // ();
+       print '</div>';
        for ($row->{status}) {
                my $cell = $_ // '-';
                $cell = sprintf '<a href="%s">%s</a>', $_, $cell for $row->{spec} // ();
@@ -199,7 +207,8 @@ sub showversions {
        return join('‒', @span);
 }
 
-:>
+:></div>
+
 <hr>
 
 <div class="legend">