summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-06-24 22:57:03 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-06-24 22:59:18 (GMT)
commit08faf157b1d86e565d34bfb9507e8fc3d662d1f6 (patch)
tree1dbc7cac0a285bf5f585f75739021a5eb55eccdf
parent3aaa6e8696569eabf1bd8e4e8397c7a68bb0f747 (diff)
fixed marking of current day
-rw-r--r--www/js/calendar.js5
-rw-r--r--www/styles/weeks.css13
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;