lablanca.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. function expand(year){
  2. console.log('Expanding ' + year);
  3. }
  4. function expandDay(id){
  5. if (document.getElementById('day_schedule_' + id).style.maxHeight != '' && document.getElementById('day_schedule_' + id).style.maxHeight != '0em'){
  6. document.getElementById('day_schedule_' + id).style.maxHeight = '0em';
  7. setTimeout(function(){document.getElementById('slid_day_' + id).src = '/img/misc/slid-right.png';}, 500);
  8. }
  9. else{
  10. document.getElementById('day_schedule_' + id).style.maxHeight = 'initial';
  11. setTimeout(function(){document.getElementById('slid_day_' + id).src = '/img/misc/slid-down.png';}, 500);
  12. }
  13. document.getElementById('slid_day_' + id).style.opacity = '0';
  14. setTimeout(function(){document.getElementById('slid_day_' + id).style.opacity = '1';}, 500);
  15. }
  16. function hideMap(){
  17. document.getElementById('map_container').style.opacity = 0;
  18. document.getElementById('map_container').style.display = 'none';
  19. }
  20. function showMap(){
  21. document.getElementById('map_container').style.display = 'block';
  22. document.getElementById('map_container').style.opacity = 1;
  23. return document.getElementById('map');
  24. }
  25. function showMapRoute(route){
  26. map = showMap();
  27. //TODO: OSM
  28. }
  29. function showMapPoint(lat, lon){
  30. map = showMap();
  31. //TODO: OSM
  32. }