Tweak display, refresh every five minutes
This commit is contained in:
parent
70bde86dd6
commit
48d4c3d000
1 changed files with 4 additions and 9 deletions
|
|
@ -20,7 +20,7 @@
|
||||||
%h2
|
%h2
|
||||||
#{pluralize(@events_schedules.count, 'Event')} Occurring Within The Next 30 minutes.
|
#{pluralize(@events_schedules.count, 'Event')} Occurring Within The Next 30 minutes.
|
||||||
%h3
|
%h3
|
||||||
This page was loaded at #{Time.now.strftime('%Y-%m-%d at %H:%M %P')}
|
This page was loaded at #{Time.now.strftime('%a %b %d at %I:%M %P (%z)')}
|
||||||
%p
|
%p
|
||||||
P.S. This page is in beta, and if it doesn't make sense, we're sorry.
|
P.S. This page is in beta, and if it doesn't make sense, we're sorry.
|
||||||
%small
|
%small
|
||||||
|
|
@ -33,14 +33,9 @@
|
||||||
= render partial: 'event', locals: { event: event_schedule.event, event_schedule: event_schedule }
|
= render partial: 'event', locals: { event: event_schedule.event, event_schedule: event_schedule }
|
||||||
|
|
||||||
:javascript
|
:javascript
|
||||||
$('.program-selector').on('click', function(e) {
|
|
||||||
$('.li-dropdown-program').removeClass('active');
|
|
||||||
});
|
|
||||||
|
|
||||||
// Go to current date and time
|
// Go to current date and time
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
tag = "#{ @tag }";
|
setTimeout(function() {
|
||||||
if(tag !== ""){
|
window.location = window.location;
|
||||||
document.getElementById(tag).scrollIntoView();
|
}, 5 * 60 * 1000);
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue