From: short <> Date: Thu, 27 Nov 2003 06:06:33 +0000 (+0000) Subject: Omit custom color settings as suggested by two independent readers. X-Git-Tag: bp_apache2~6 X-Git-Url: http://git.jankratochvil.net/?p=MyWeb.git;a=commitdiff_plain;h=f17b70752bed854cdeb75cdd10c7229ca068b798 Omit custom color settings as suggested by two independent readers. - Every user should override its settings on his/her own anyway. &a_href: +"basename" argument --- diff --git a/Web.pm b/Web.pm index 1292afc..5c7348e 100644 --- a/Web.pm +++ b/Web.pm @@ -384,7 +384,11 @@ sub a_href ($;$%) my($url,$contents,%args)=@_; do { $$_=1 if !defined $$_; } for (\$args{"size"}); - $contents=CGI::escapeHTML($url) if !defined $contents; + if (!defined $contents) { + $contents=$url; + $contents=File::Basename::basename($contents) if $args{"basename"}; + $contents=CGI::escapeHTML($contents); + } $contents=~s#]*>##gi; $contents=~s###gi; @@ -626,6 +630,8 @@ my($class)=@_; .nowrap { white-space: nowrap; } .centered { text-align: center; } .tab-bold { font-weight: bold; } +.tab-head { font-weight: bold; } +/* .tab-head { font-weight: bold; color: yellow; background-color: transparent; } body { background-color: black; @@ -634,6 +640,7 @@ body { :link { color: aqua; background-color: transparent; } :visited { color: teal; background-color: transparent; } h1,h2 { color: yellow; background-color: transparent; } +*/ td { padding: 2px; } caption { caption-side: bottom; } .footer img { vertical-align: middle; } @@ -648,8 +655,8 @@ HERE do { print ''."\n" if $_; } for ($W->{"rel_$type"}); } print "{"browser"}->netscape() && (!$W->{"browser"}->major() || $W->{"browser"}->major()<=4); +# print ' bgcolor="black" text="white" link="aqua" vlink="teal"' +# if $W->{"browser"}->netscape() && (!$W->{"browser"}->major() || $W->{"browser"}->major()<=4); print ">\n"; if ($W->{"heading"}) {