lablanca.js 859 B

12345678910111213141516
  1. /**
  2. * Expands a day in the Festival Schedule page.
  3. * @param id Day identifier, as it is in the DOM.
  4. */
  5. function expandDay(id){
  6. if (document.getElementById('day_schedule_' + id).style.maxHeight != '' && document.getElementById('day_schedule_' + id).style.maxHeight != '0em'){
  7. document.getElementById('day_schedule_' + id).style.maxHeight = '0em';
  8. setTimeout(function(){document.getElementById('slid_day_' + id).src = '/img/misc/slid-right.png';}, 500);
  9. }
  10. else{
  11. document.getElementById('day_schedule_' + id).style.maxHeight = 'initial';
  12. setTimeout(function(){document.getElementById('slid_day_' + id).src = '/img/misc/slid-down.png';}, 500);
  13. }
  14. document.getElementById('slid_day_' + id).style.opacity = '0';
  15. setTimeout(function(){document.getElementById('slid_day_' + id).style.opacity = '1';}, 500);
  16. }