Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Refresh less often

  • Loading branch information...
commit 5baa819cb7ad1cc69dfe6c931d7a26b6dcb8fe57 1 parent 6aa81db
@dustball dustball authored
Showing with 5 additions and 8 deletions.
  1. +5 −8 static/main.js
View
13 static/main.js
@@ -13,24 +13,21 @@ function jiggly() {
}
function refreshStaff() {
- $('#staff').attr('src', 'http://hackerdojo-signin.appspot.com/staff');
window.StaffCount++;
+ $('#staff').attr('src', 'http://hackerdojo-signin.appspot.com/staff');
$('#staffReloadCount').html(" "+window.StaffCount);
- window.oldStaffInt = setTimeout(refreshStaff, 2 * minutes);
- letsDance();
}
function refreshEvents() {
- $('#events').attr('src', 'http://events.hackerdojo.com/?base=mini');
window.EventsCount++;
+ $('#events').attr('src', 'http://events.hackerdojo.com/?base=mini');
$('#eventsReloadCount').html(" "+window.EventsCount);
- window.oldEventsInt = setTimeout(refreshEvents, 6 * 60 * minutes);
}
$(document).ready(function(){
window.EventsCount = 0;
window.StaffCount = 0;
- window.oldStaffInt = setTimeout(refreshStaff,0.25 * minutes);
- window.oldEventsInt = setTimeout(refreshEvents,6 * 60 * minutes);
- letsDance();
+ setInterval(refreshStaff, 10 * minutes);
+ setInterval(refreshEvents, 60 * minutes);
+ setInterval(letsDance, 30 * minutes);
});
Please sign in to comment.
Something went wrong with that request. Please try again.