diff --git a/img/bells.png b/img/bells.png new file mode 100644 index 0000000..93eed3a Binary files /dev/null and b/img/bells.png differ diff --git a/img/jack.png b/img/jack.png new file mode 100644 index 0000000..c595e02 Binary files /dev/null and b/img/jack.png differ diff --git a/img/turkey.png b/img/turkey.png new file mode 100644 index 0000000..995142c Binary files /dev/null and b/img/turkey.png differ diff --git a/js/busfinder.js b/js/busfinder.js index d0eab07..148d2a5 100644 --- a/js/busfinder.js +++ b/js/busfinder.js @@ -544,6 +544,21 @@ $(function(){ initialize: function() { _.bindAll(this); LocateUser(this.getStopList); + + //Add Icons for holidays + var curtime = new Date(), + curday = curtime.getDate(), + curmonth = curtime.getMonth()+1; + curwkday = curtime.getDay(); + + if(curmonth == 10 && curday == 31) { //Halloween + $('#title').html("HRT Bus Finder  "); + } else if (curmonth == 12 && curday == 25) { //Christmas + $('#title').html("HRT Bus Finder "); + } else if (curmonth == 11 && curday > 21 && curday < 29) { //Thanksgiving + if (curwkday == 5) //5 is Thursday + $('#title').html("HRT Bus Finder "); + } }, forceRefresh: function() {