diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-06-24 22:57:03 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-06-24 22:59:18 (GMT) |
commit | 08faf157b1d86e565d34bfb9507e8fc3d662d1f6 (patch) | |
tree | 1dbc7cac0a285bf5f585f75739021a5eb55eccdf | |
parent | 3aaa6e8696569eabf1bd8e4e8397c7a68bb0f747 (diff) |
fixed marking of current day
-rw-r--r-- | www/js/calendar.js | 5 | ||||
-rw-r--r-- | www/styles/weeks.css | 13 |
2 files changed, 11 insertions, 7 deletions
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; |