From 08faf157b1d86e565d34bfb9507e8fc3d662d1f6 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 25 Jun 2016 00:57:03 +0200 Subject: fixed marking of current day diff --git a/www/js/calendar.js b/www/js/calendar.js index 5df77ac..7f8696a 100644 --- a/www/js/calendar.js +++ b/www/js/calendar.js @@ -95,7 +95,10 @@ function calendar_init() { $('#btn-today').click(calendar_today); $('#btn-earlier').click(calendar_prev); $('#btn-later').click(calendar_next); - calendar_today() + current_week_offset = -4; + clock.addCallback(function() { + calendar_redraw(current_week_offset); + }); } function calendar_today() { diff --git a/www/styles/weeks.css b/www/styles/weeks.css index fbd0379..2d6a547 100644 --- a/www/styles/weeks.css +++ b/www/styles/weeks.css @@ -78,7 +78,8 @@ #calendar { margin-top: 2em; - border-collapse: collapse; + border-spacing: 0; + border: 0; } #calendar th { @@ -93,17 +94,17 @@ border-bottom: 1px solid #eee; } -#calendar td.today { - color: white; - border: 2px solid black; -} - #calendar td.currentweek { font-size: 1.2em; font-weight: bold; background-color: #eee; } +#calendar td.today { + color: white; + border: 3px solid black; +} + #calendar td.week { font-size: 1.2em; font-weight: bold; -- cgit v0.10.2