From 5f69ebe6345bf4ee37d0e29fc71f6aa7d81f9a46 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sat, 11 Aug 2007 17:55:55 +0200 Subject: adjus web style --- examples/gipfel2html | 55 ++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 49 insertions(+), 6 deletions(-) (limited to 'examples') diff --git a/examples/gipfel2html b/examples/gipfel2html index 5b0e6ea..9fe3a1c 100755 --- a/examples/gipfel2html +++ b/examples/gipfel2html @@ -1,10 +1,15 @@ #!/bin/sh +TITLE="" +if [ -e "$1.title" ]; then + TITLE=`cat $1.title` +fi + cat << EOF " -echo "" -echo "
" +cat << EOF + + + +
+
+EOF + +echo "

$TITLE

" + +cat << EOF + + +
+ + +
+
+EOF + +echo "" i=0 grep -v "^#" gipfelweb/gipfel/${1}.gipf | \ @@ -38,7 +71,12 @@ while read name height x y dist flags dummy; do continue fi - echo "
  • ${name} (${height}m)
  • " + THUMB_TITLE="${name%.jpg}" + if [ -e "${name%.jpg}.title" ]; then + THUMB_TITLE=`cat ${name%.jpg}.title` + fi + + echo "
  • ${THUMB_TITLE} (${height}m)
  • " i=$((${i} + 1)) done @@ -46,6 +84,11 @@ done cat << EOF
    +
    +
    +copyright © 2007 Johannes Hofmann - + EOF -- cgit v1.2.3 From 29a1ada097a0c197c0494eabaeb6430d0f9396a7 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Sat, 11 Aug 2007 18:07:39 +0200 Subject: add copyright; smaller image indicators --- examples/gipfel2html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/gipfel2html b/examples/gipfel2html index 9fe3a1c..e8912d9 100755 --- a/examples/gipfel2html +++ b/examples/gipfel2html @@ -26,7 +26,7 @@ while read name height x y dist flags dummy; do thumb_w=`identify -format %w gipfelweb/thumbs/${name}` thumb_h=`identify -format %h gipfelweb/thumbs/${name}` - echo "#id_${i} {left:$((${x} - 20 / 2))px; top: $((${y} - 20 / 2))px; width: 20px; height: 20px;}" + echo "#id_${i} {left:$((${x} - 10 / 2))px; top: $((${y} - 6 / 2))px; width: 10px; height: 6px;}" echo "#id_${i}:hover {width: ${thumb_w}px; height: ${thumb_h}px; background: url(thumbs/${name});}" i=$((${i} + 1)) @@ -55,9 +55,9 @@ EOF echo "

    $TITLE

    " cat << EOF - +
    - +
    EOF -- cgit v1.2.3