Mercurial > hg > batmud > alchtool
changeset 77:3f02c6696d53
Some minor fixes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 13 Mar 2014 00:56:59 +0200 |
parents | 3f30d4d59278 |
children | d818defbb3a6 |
files | index.php |
diffstat | 1 files changed, 14 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/index.php Thu Mar 13 00:38:31 2014 +0200 +++ b/index.php Thu Mar 13 00:56:59 2014 +0200 @@ -315,13 +315,20 @@ } // Copyright information etc. -$progName = "AlchTool 1.6.0"; +$progName = "AlchTool 1.6.1"; $progCopyright ="© 2006-2014 Jeskko & Ggr Pupunen"; ?> <html> <head> - <title><?php echo $progName." - ".$dbModes[$mode][0]." view (".$dbNames[$dbModes[$mode][1]][$active].")"; ?></title> + <title><?php + $mdb = $dbModes[$mode]; + $mdn = $dbNames[$mdb[1]][$active]; + if (is_array($mdn)) + $mdn = implode(" / ", $mdn); + + echo $progName." - ".$mdb[0]." view (".$mdn.")"; + ?></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="alch.css" title="compact" rel="stylesheet" type="text/css"> </head> @@ -332,10 +339,13 @@ { var e = document.getElementById('legend'); e.style.height = "3em"; - if (e.style.top != "0px") { + if (e.style.top != "0px") + { savePos = e.style.top; e.style.top = "0px"; - } else { + } + else + { e.style.top = savePos; } }