tadd highlighting of current day - canteen-info - scrape weekly menus from canteens surrounding Aarhus University
 (HTM) git clone git://src.adamsgaard.dk/canteen-info
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 03828869089738c2e2f68dbddf4fd0219ddf9e62
 (DIR) parent 09aae846a120cf387339ddd6845151d17a0d5fcc
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Thu, 19 Feb 2015 12:08:00 +0100
       
       add highlighting of current day
       
       Diffstat:
         M canteeninfo.sh                      |      16 ++++++++++++++++
       
       1 file changed, 16 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/canteeninfo.sh b/canteeninfo.sh
       t@@ -64,3 +64,19 @@ echo -n "<!DOCTYPE html>
          </body>
        </html>" > $out
        
       +weekday=$(date +%A)
       +highlight="1234567890asdfasdf"
       +if [[ "$weekday" == "Monday" ]]; then
       +    highlight="Mandag"
       +elif [[ "$weekday" == "Tuesday" ]]; then
       +    highlight "Tirsdag"
       +elif [[ "$weekday" == "Wednesday" ]]; then
       +    highlight="Onsdag"
       +elif [[ "$weekday" == "Thursday" ]]; then
       +    highlight="Torsdag"
       +elif [[ "$weekday" == "Friday" ]]; then
       +    highlight="Fredag"
       +fi
       +
       +# Highlight current weekday
       +cat $out | sed "s/${highlight}/<font color='red'>${highlight}<\/font>/g" > $out