diff options
author | Yorhel <git@yorhel.nl> | 2011-03-30 14:25:34 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2011-03-30 14:25:34 +0200 |
commit | 7c8306f215050243029cfc2dc22152a02476a285 (patch) | |
tree | 7792d9c3d05ff05573e7ee9fe70a08f674e03b03 /lib/VNDB/Func.pm | |
parent | a2a389e70da0ec880d9e028f5041060416e7b7d8 (diff) |
chardb: Rushed in some crappy spoiler hiding stuff
Diffstat (limited to 'lib/VNDB/Func.pm')
-rw-r--r-- | lib/VNDB/Func.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/VNDB/Func.pm b/lib/VNDB/Func.pm index edb6e3aa..64b56625 100644 --- a/lib/VNDB/Func.pm +++ b/lib/VNDB/Func.pm @@ -7,7 +7,7 @@ use TUWF ':html'; use Exporter 'import'; use POSIX 'strftime', 'ceil', 'floor'; use VNDBUtil; -our @EXPORT = (@VNDBUtil::EXPORT, qw| clearfloat cssicon tagscore mt minage fil_parse fil_serialize parenttags childtags |); +our @EXPORT = (@VNDBUtil::EXPORT, qw| clearfloat cssicon tagscore mt minage fil_parse fil_serialize parenttags childtags charspoil |); # three ways to represent the same information @@ -174,5 +174,11 @@ sub childtags { } +# generates the class elements for character spoiler hiding +sub charspoil { + return "charspoil charspoil_$_[0]".($_[0] ? ' hidden' : ''); +} + + 1; |