Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

auto show current day in agenda

  • Loading branch information...
commit b1b653c5d9944cf6160248175a1be509a7139b01 1 parent a2c1e99
@digitaltom digitaltom authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 js/hackweek.js
View
10 js/hackweek.js
@@ -67,6 +67,16 @@ $(function () {
slidein_agenda_day($('#friday-content'))
})
+ /* auto open current agenda day */
+ var today = new Date();
+ if( today.getMonth()+1 == 4 && today.getYear() == 113) {
+ if (today.getDate() == 8) slidein_agenda_day($('#monday-content'))
+ if (today.getDate() == 9) slidein_agenda_day($('#tuesday-content'))
+ if (today.getDate() == 10) slidein_agenda_day($('#wednesday-content'))
+ if (today.getDate() == 11) slidein_agenda_day($('#thursday-content'))
+ if (today.getDate() == 12) slidein_agenda_day($('#friday-content'))
+ }
+
function slidein_agenda_day(element) {
if (element.css('width') != "400px") {
Please sign in to comment.
Something went wrong with that request. Please try again.