X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/5bbd8d60621416409a4b5a312e79574b2e6edace..86a6750572ee3fa30d006a4edce6d5c188726a17:/word.plp?ds=sidebyside diff --git a/word.plp b/word.plp index 7d62562..508fd06 100644 --- a/word.plp +++ b/word.plp @@ -1,6 +1,8 @@ <(common.inc.plp)><: -my $wordlist = 'wordlist.eng.inc.pl'; +my $wordlist = 'wordlist.en.inc.pl'; +my $limit = $get{v} // (exists $get{v} ? 4 : 3); + Html({ title => 'words cheat sheet', version => '1.0', @@ -27,6 +29,17 @@ figcaption > small { display: inline-block; } +li.large > figure { + grid-row: span 2; + grid-column: span 2; +} +@media (min-width: 600px) and (min-height: 400px) { + p + ul > li:first-child > figure { + grid-row: span 3; + grid-column: span 3; + } +} + figure:hover ~ ul figure, figure:hover ~ ul figcaption { background: #CCC; @@ -51,6 +64,11 @@ figure:hover > figcaption { EOT }); +if (exists $get{debug}) { + say ''; +} :>

Words

@@ -72,7 +90,7 @@ sub showimg { $name = "$name" if $name =~ s/\?$//; $name = "
$name
"; - if ($imgname and -e ($img = "data/word/eng/$imgname.jpg")) { + if ($imgname and -e ($img = "data/word/en/$imgname.jpg")) { $name .= sprintf '%s', $img, $imgname; } return sprintf '%s', $hidden && !exists $get{v} && ' hidden', $name; @@ -81,8 +99,13 @@ sub showimg { sub printimgs { say '