Mercurial > hg > batmud > alchtool
changeset 41:ebd29544477c
More improvements in visual style, etc.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 22 Mar 2011 16:15:16 +0200 |
parents | bb335b891605 |
children | a0ed43ce9d34 |
files | alch.css index.php |
diffstat | 2 files changed, 21 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/alch.css Tue Mar 22 13:58:48 2011 +0200 +++ b/alch.css Tue Mar 22 16:15:16 2011 +0200 @@ -59,12 +59,12 @@ } #legend { - background: black; - position: absolute; + position: fixed; right: 1em; - bottom: 1em; + bottom: 0em; font-size: 8pt; padding: 2pt; margin: 5pt; + background: black; }
--- a/index.php Tue Mar 22 13:58:48 2011 +0200 +++ b/index.php Tue Mar 22 16:15:16 2011 +0200 @@ -267,6 +267,22 @@ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="alch.css" title="compact" rel="stylesheet" type="text/css"> </head> +<script type="text/javascript"> +<!-- +var savePos = 0; +function vis() +{ + var e = document.getElementById('legend'); + e.style.height = "3em"; + if (e.style.top != "0px") { + savePos = e.style.top; + e.style.top = "0px"; + } else { + e.style.top = savePos; + } +} +--> +</script> <body> <div id="info"> <? @@ -436,7 +452,7 @@ alch_matrix_print($mode, $active); ?> -<table id="legend" border="1" cellspacing="1"> +<table id="legend" border="1" cellspacing="1" onmouseover="vis();"> <tr><th colspan="2" class="noframe">Legend</th></tr> <tr><td width="10%" class="notres"> </td><th class="noframe">Not researched yet</th></tr> <tr><td class="nomatch">-</td><th class="noframe">No match</th></tr> @@ -445,6 +461,7 @@ <tr><td class="close">?</td><th class="noframe">2 materials match</th></tr> <tr><td class="accepted">!</td><th class="noframe">Accepted potion</th></tr> <tr><td class="pair"> </td><th class="noframe">Known to be possible potion by other attempts</th></tr> + <tr><td colspan="2">AlchTool 1.9b © 2006-2011 Jeskko & Ggr Pupunen</td></tr> </table> <? }