git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remember given style option in cookie
[sheet.git]
/
charset.plp
diff --git
a/charset.plp
b/charset.plp
index e82c5cc45823fcea40ace71247ddf07ba62f66e1..29e7e23c5fb6030271b9f5dc57105aca7aed1003 100644
(file)
--- a/
charset.plp
+++ b/
charset.plp
@@
-1,12
+1,5
@@
-<:
-use utf8;
-use strict;
-use warnings;
-use open IO => ':utf8';
-
-our $VERSION = 'v1.0';
-
-$header{content_type} = 'text/html; charset=utf-8';
+<(common.inc.plp)><:
+ our $VERSION = 'v1.0';
:><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
:><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
@@
-15,10
+8,10
@@
$header{content_type} = 'text/html; charset=utf-8';
<head>
<meta http-equiv="content-type" content="<:= $header{content_type} :>">
<title>charset cheat sheet</title>
<head>
<meta http-equiv="content-type" content="<:= $header{content_type} :>">
<title>charset cheat sheet</title>
-<
link rel="stylesheet" type="text/css" media="all" href="/base.css"
>
+<
:= stylesheet(qw'light') :
>
</head>
</head>
-<body>
+<body
id="charset"
>
<h1>Character encoding</h1>
<:
<h1>Character encoding</h1>
<:
@@
-109,11
+102,9
@@
sub quote {
return $_;
}
return $_;
}
-print "<ul>\n";
-
my @nibble = (0..9, 'A'..'F');
for my $row (@request) {
my @nibble = (0..9, 'A'..'F');
for my $row (@request) {
- printf '<
li
><table class="glyphs%s">', !$row->{cell} && ' charmap';
+ printf '<
div class="section"
><table class="glyphs%s">', !$row->{cell} && ' charmap';
printf '<caption>%s</caption>', $row->{set};
print '<col>' x 17;
for my $section (qw{thead}) {
printf '<caption>%s</caption>', $row->{set};
print '<col>' x 17;
for my $section (qw{thead}) {
@@
-158,11
+149,9
@@
for my $row (@request) {
}
print "\n";
}
}
print "\n";
}
- print "</table>\n";
+ print "</table>
</div>
\n";
}
}
-print "</ul>\n";
-
:>
<hr>
:>
<hr>