summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-09-22 11:09:13 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2007-09-22 11:09:13 +0200
commit32726aafda19a6a9a6132da5707d96b67ce2d6dc (patch)
treeca545f4ceef0a8361d4f05227f5aa9a37018c5ed
parent9d458ef3f8998cdcf9a199f5e96e3bb30e9f5feb (diff)
fix html errors
-rwxr-xr-xexamples/gipfel2html9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/gipfel2html b/examples/gipfel2html
index 0551474..fb2ea45 100755
--- a/examples/gipfel2html
+++ b/examples/gipfel2html
@@ -10,9 +10,9 @@ else
DATAFILE="gipfelweb/gipfel/${FILE}.hills"
fi
+echo "<html><head><title>$TITLE</title>"
+
cat << EOF
-<html>
-<head>
<style type="text/css">
#gipfel { display: block; position: relative; margin: 0; padding: 0; }
#gipfel li { visibility: hidden; list-style-type: none; position: absolute; background: url(25w.png); border: 1px solid black; font-family: sans-serif; font-size: x-small; color: #000; padding: 0; line-height: 1.3em; overflow: hidden; }
@@ -81,6 +81,8 @@ else
echo "<img src=\"../slides/${FILE}.jpg\"/>"
fi
+
+echo "<ul>"
i=0
grep -v "^#" ${DATAFILE} | \
while read name height x y dist flags dummy; do
@@ -96,9 +98,9 @@ while read name height x y dist flags dummy; do
i=$((${i} + 1))
done
+echo "</ul>"
cat << EOF
-</ul>
</div>
</td></tr>
</table>
@@ -119,7 +121,6 @@ done
cat << EOF
-</ul>
<small>copyright &copy; 2007 <a href="http://www.ecademix.com/JohannesHofmann/impressum.html">Johannes Hofmann</a></small>
</body>
</html>