diff --git a/schedule b/schedule
index 84d7995..4d189e5 100755
--- a/schedule
+++ b/schedule
@@ -152,6 +152,32 @@ info_output_lor() {
}
+info_output_html() {
+ echo "
"
+ echo "
"
+ echo " "
+ echo " ${tour_num} тур (${date_beg} - ${date_end})"
+ echo " "
+ echo " "
+
+ echo -en "$1" | while read white black result; do
+ # Highlight player's name
+ if [[ -n "$PLAYER" ]]; then
+ [[ "$white" =~ $PLAYER ]] && white="${white}"
+ [[ "$black" =~ $PLAYER ]] && black="${black}"
+ fi
+
+ echo " "
+ echo " ${white} - ${black} | ${result} | "
+ echo "
"
+ done
+
+ echo " "
+ echo "
"
+ echo "
"
+ echo
+}
+
# Note that we use '"$@"' to let each command-line parameter expand to a
# separate word. The quotes around '$@' are essential!
# We need 'opts' as the 'eval set --' would nuke the return value of getopt