4 title => 'words cheat sheet',
6 description => "Visual words",
10 data => ['wordlist.inc.pl'],
31 figure:hover ~ ul figure,
32 figure:hover ~ ul figcaption {
36 figure:hover ~ ul figcaption {
37 background: rgba(255, 255, 255, .5);
41 transition: all .5s ease-in;
43 li.parent:hover > figure > figcaption,
44 figure:hover > figcaption {
48 transform: translate(50%, 50%);
49 margin-left: -60%; /* keep width */
60 Zie ook <a href="/dieren">dieren</a>.
64 my %table = do 'wordlist.inc.pl' or die $@ // $!;
68 my ($img) = $name =~ /^([\w-]+)/;
69 $name =~ s/\w{4} [^aoeuiyc\W] [rl]?+ \K (?= [^aoeuiy\W] [rl]? [aoeuiy] \w)/­/gx;
71 my $hidden = $name =~ s/\?$//;
73 $name = "<q>$name</q>" if $name =~ s/\?$//;
75 if ($img and -e ($img = "data/word/$img.jpg")) {
76 my $alt = -l $img && readlink($img) =~ s/\.jpg$//r;
83 $name = "<figcaption>$name</figcaption>";
84 $name .= sprintf '<img src="/%s" alt="%s" />', $img, $alt;
87 $name = "<figcaption>$name?</figcaption>";
89 return sprintf '<figure%s>%s</figure>', $hidden && !exists $get{v} && ' hidden', $name;
95 printf '<li%s>', defined $table{$row} && ' class="parent"';
97 printimgs(@{$_}) for $table{$row} // ();
103 printimgs($table{''});