fix accessibility warnings

This commit is contained in:
Ben Harris 2021-03-17 16:46:49 -04:00
parent 56e2b2313a
commit 938a77d279
2 changed files with 5 additions and 4 deletions

View File

@ -147,8 +147,9 @@ if ($min_digits) {
// Print out Javascript code and exit
$len = strlen($count);
for ($i = 0; $i < $len; $i++) {
$url = $base_url . $style_dir . substr($count, $i, 1) . '.' . $ext;
echo 'document.write(\'<img src="'. $url .'" border="0" />\');';
$digit = substr($count, $i, 1);
$url = $base_url . $style_dir . $digit . '.' . $ext;
echo 'document.write(\'<img alt="'. $digit .'" src="'. $url .'" border="0" />\');';
}
exit();

View File

@ -53,7 +53,7 @@ $taglines = file("taglines.txt");
<div>
<hr>
<strong>
<h3>play with some ascii art</h3>
<h2>play with some ascii art</h2>
</strong>
<form>
<div>
@ -85,7 +85,7 @@ $taglines = file("taglines.txt");
<hr>
<h3>page hits as of jan 2020</h3>
<h2>page hits as of jan 2020</h2>
<script type="text/javascript" src="counter/gcount.php?page=index"></script>
<hr>