From a16c2db78da6707f15079612740f9bf9b07b5990 Mon Sep 17 00:00:00 2001 From: Gehad elrobey Date: Fri, 8 Aug 2014 17:18:09 +0300 Subject: HTML: Enhance Yearly statistics table. Signed-off-by: Gehad elrobey Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- theme/list_lib.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'theme/list_lib.js') diff --git a/theme/list_lib.js b/theme/list_lib.js index 2c915ad6f..089f8bfd0 100644 --- a/theme/list_lib.js +++ b/theme/list_lib.js @@ -690,11 +690,19 @@ function getDiveStats(){ function getStatsRows(){ var res = ""; for(var i = 0; i < divestat.length ; i++) { - res += ''+divestat[i].YEAR+''+divestat[i].DIVES+''+divestat[i].TOTAL_TIME+''+divestat[i].AVERAGE_TIME+''+divestat[i].SHORTEST_TIME+''+divestat[i].LONGEST_TIME+''+divestat[i].AVG_DEPTH+''+divestat[i].MIN_DEPTH+''+divestat[i].MAX_DEPTH+''+divestat[i].AVG_SAC+''+divestat[i].MIN_SAC+''+divestat[i].MAX_SAC+''+divestat[i].AVG_TEMP+''+divestat[i].MIN_TEMP+''+divestat[i].MAX_TEMP+''; + res += ''+divestat[i].YEAR+''+divestat[i].DIVES+''+divestat[i].TOTAL_TIME+''+divestat[i].AVERAGE_TIME+''+divestat[i].SHORTEST_TIME+''+divestat[i].LONGEST_TIME+''+divestat[i].AVG_DEPTH+''+divestat[i].MIN_DEPTH+''+divestat[i].MAX_DEPTH+''+divestat[i].AVG_SAC+''+divestat[i].MIN_SAC+''+divestat[i].MAX_SAC+''+divestat[i].AVG_TEMP+''+divestat[i].MIN_TEMP+''+divestat[i].MAX_TEMP+''; } return res; } +function stats_row_highlight(row){ + row.style.backgroundColor = "rgba(125,125,125,0.7)"; +} + +function stats_row_unhighlight(row){ + row.style.backgroundColor = "rgba(125,125,125,0.3)"; +} + //trips var tripsShown; -- cgit v1.2.3-70-g09d2