Schedule for <%= @conference.title %>

<% @dates.each do |date| %>
<% end %>
<%= javascript_tag do %> $(function() { // add a hash to the URL when the user clicks on a tab $('a[data-toggle="tab"]').on('click', function(e) { $('.li-dropdown-schedule').removeClass('active'); $('.schedule-dropdown').find('button').text($(this).text()); history.pushState(null, null, $(this).attr('href')); }); // navigate to a tab when the history changes window.addEventListener("popstate", function(e) { var activeTab = $('[href=' + location.hash + ']'); if (activeTab.length) { activeTab.tab('show'); } else { $('.nav-tabs a[href=#<%= j @today %>]').tab('show'); } }); }); $(function() { var hash = window.location.hash; hash && $('ul.nav a[href="' + hash + '"]').tab('show'); }); $('.carousel').on('slid.bs.carousel', '', function(){ $(this).children('.left.carousel-control').show(); $(this).children('.right.carousel-control').show(); if($(this).find('.first').hasClass('active')) { $(this).children('.left.carousel-control').hide(); } else if($(this).find('.last').hasClass('active')) { $(this).children('.right.carousel-control').hide(); } }); $(document).ready(function(){ $('.carousel').children('.left.carousel-control').hide(); }); <% end %>