mirror of
https://git.code.sf.net/p/quake/website
synced 2024-11-28 06:53:50 +00:00
Made progress meter as lynx-friendly as I could.
This commit is contained in:
parent
e5ba5c5d83
commit
270c1da97b
1 changed files with 8 additions and 7 deletions
|
@ -16,7 +16,7 @@
|
|||
function progressKey() // Display key for progress bar
|
||||
{
|
||||
echo '<TR><TD> </TD><TD> </TD><TD align="center">' .
|
||||
'<IMG src="/img/graph/ProgressBar.desc.png">' .
|
||||
'<IMG src="/img/graph/ProgressBar.desc.png" ALT="0-33% Hackers, 34-67% Developers, 68-100% Users">' .
|
||||
'</TD><TD> </TD><TD align="left" ></TD></TR>';
|
||||
}
|
||||
|
||||
|
@ -27,23 +27,24 @@
|
|||
$j = 100 - $newPct;
|
||||
$result = '';
|
||||
$result .= '<TR><TD align="right">' . $name . '</TD><TD> </TD><TD align="center">';
|
||||
$result .= '<IMG src="/img/blank.gif" height="1" width="1" alt="' . $pct . '% Complete">';
|
||||
for ( ; $i >= 20 ; $i -= 20 ) {
|
||||
$result .= '<IMG src="/img/graph/ProgressBar.20.white.gif">';
|
||||
$result .= '<IMG src="/img/graph/ProgressBar.20.white.gif" alt="">';
|
||||
}
|
||||
for ( ; $i >= 10 ; $i -= 10 ) {
|
||||
$result .= '<IMG src="/img/graph/ProgressBar.10.white.gif">';
|
||||
$result .= '<IMG src="/img/graph/ProgressBar.10.white.gif" alt="">';
|
||||
}
|
||||
for ( ; $i >= 2 ; $i -= 2 ) {
|
||||
$result .= '<IMG src="/img/graph/ProgressBar.2.white.gif">';
|
||||
$result .= '<IMG src="/img/graph/ProgressBar.2.white.gif" alt="">';
|
||||
}
|
||||
for ( ; $j >= 20 ; $j -= 20 ) {
|
||||
$result .= '<IMG src="/img/graph/ProgressBar.20.gray.gif">';
|
||||
$result .= '<IMG src="/img/graph/ProgressBar.20.gray.gif" alt="">';
|
||||
}
|
||||
for ( ; $j >= 10 ; $j -= 10 ) {
|
||||
$result .= '<IMG src="/img/graph/ProgressBar.10.gray.gif">';
|
||||
$result .= '<IMG src="/img/graph/ProgressBar.10.gray.gif" alt="">';
|
||||
}
|
||||
for ( ; $j >= 2 ; $j -= 2 ) {
|
||||
$result .= '<IMG src="/img/graph/ProgressBar.2.gray.gif">';
|
||||
$result .= '<IMG src="/img/graph/ProgressBar.2.gray.gif" alt="">';
|
||||
}
|
||||
$result .= '</TD><TD> </TD><TD align="left" >' . $comments . '</TD></TR>';
|
||||
echo $result;
|
||||
|
|
Loading…
Reference in a new issue