replacement for the old hours, now using LibCal.
make a bookmarklet w/ this as the location:
javascript:(function () { $('#hoursWidget, #hoursTable, #todaysHours').html('');function handleTodaysHours(e){var t=e.locations[0],a=t.times;return t&&a?$("#todaysHours").text(getTimestr(a)):void 0}function handleWeeksHours(e){var t=e.locations[0].weeks[0],a=$("#hoursTable"),r=$('<table class="table nolines"/>'),s=$("<tbody/>");a.prepend(r),r.append(s),buildTableWeek(s,t)}function handleHoursWidget(e){function t(e){return r(e,-1)}function a(e){return r(e,1)}function r(e,t){e&&e.preventDefault(),h+=t,o.css("visibility",0>=h?"hidden":"visible"),d.css("visibility",h>=l?"hidden":"visible"),buildTableWeek(n,u[h])}var s=$hoursWidget||$("#hoursWidget"),i=$('<table class="table table-bordered"/>'),n=$("<tbody/>"),o=$("<a/>"),d=$("<a/>"),u=e.locations[0].weeks,l=u.length,h=0;i.append(n),s.append(i),s.append(o),s.append(d),o.attr({id:"back",href:"#"}),o.addClass("pull-left"),o.css("visibility","hidden"),o.text("Previous Week"),o.on("click",t),d.attr({id:"back",href:"#"}),d.addClass("pull-right"),d.text("Next Week"),d.on("click",a),r(null,0)}function buildTableWeek(e,t){e.html("");for(var a in t){var r=buildTableRow(t[a]);e.append(r),t[a].times.currently_open&&r.addClass("highlight")}}function buildTableRow(e){var t=$("<tr/>"),a=e.times,r=getTimestr(a),s=e.date.split("-").map(function(e){return parseInt(e,10)}),i=new Date(s[0],s[1]-1,s[2]),n=getDaystr(i);return t.html("<td>"+n+"</td><td>"+r+"</td>"),t}function getDaystr(e){var t=["January","February","March","April","May","June","July","August","September","October","November","December"],a=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],r=e.getDay(),s=e.getMonth(),i=e.getDate();return a[r]+", "+t[s]+" "+i}function getTimestr(e){if("closed"===e.status)return"Closed";if("24hours"===e.status)return"Open 24 Hours";if("not-set"===e.status)return"TBD";var t=e.hours[0],a=formatTime(t.from),r=formatTime(t.to);return a&&r?a+" - "+r:r&&!a?"Close at "+r:!r&&a?"Open at "+a:"TBD"}function formatTime(e){return e.replace(/^(\d{1,2})([ap]m)/,"$1:00$2")}var proxyPath="http://libappdev.muhlenberg.edu/hours-proxy",todaysPath="/api_hours_today.php?iid=814&format=json",weeksPath="/api_hours_grid.php?iid=814&format=json&weeks=1",yearsPath="/api_hours_grid.php?iid=814&format=json&weeks=52",$hoursWidget=$("#hoursWidget");$.get(proxyPath+todaysPath,handleTodaysHours),$.get(proxyPath+weeksPath,handleWeeksHours),$hoursWidget.length>0&&$.get(proxyPath+yearsPath,handleHoursWidget);})()