X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/8e8998a5c2e51159db372eed7e4e293df83ccc91..0e07efe0549f928d061f52c16ed9a4ee8260b49a:/charset.plp diff --git a/charset.plp b/charset.plp index 1b672e9..d2c92c5 100644 --- a/charset.plp +++ b/charset.plp @@ -1,5 +1,8 @@ <(common.inc.plp)><: +my $mode = exists $get{compare}; +my @tablist = split m{/+}, $Request || 'default'; + Html({ title => 'charset cheat sheet', version => '1.0', @@ -18,8 +21,6 @@ Html({ )], }); -my @tablist = split m{/+}, $Request || 'default'; - use List::Util qw( first pairmap pairfirst pairs ); :> @@ -404,7 +405,7 @@ for my $row (@request) { my ($cell, $name, $class) = $glyph eq $NOCHAR ? () : $glyphs->glyph_html($glyph); - if (exists $get{compare}) { + if ($mode) { state $visible = {}; $class = ( $cp == ord $glyph ? 'l4' : @@ -431,7 +432,7 @@ for my $row (@request) {
- <: if (exists $get{compare}) { :> +
<: if ($mode) { :>
unicode inherited existing