You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

22 lines
834 B

  1. $(document).ready(function(){
  2. });
  3. $(".dis_station").click(function(){
  4. var start_area_id = $(this).attr("start_area_id");
  5. var start_area_type = $(this).attr("start_type");
  6. var end_area_id = $(this).attr("end_area_id");
  7. var end_area_type = $(this).attr("end_type");
  8. var run_date_today = getDateTime(0);
  9. var tomorrow = parseInt(getMonthAndDayByDate(run_date_today,'day'))+1;
  10. var run_date = getMonthAndDayByDate(run_date_today,'year') +'-'+ getMonthAndDayByDate(run_date_today,'month') +'-'+ tomorrow;
  11. var tt=getDateTime(4);
  12. var listURL = 'search_results.html?start_area_id='+start_area_id
  13. +"&start_area_type="+start_area_type
  14. +"&end_area_id="+end_area_id
  15. +"&end_area_type="+end_area_type
  16. +"&run_date="+run_date
  17. +"&tt="+tt;
  18. listURL=encodeURI(listURL);
  19. window.location.href=listURL;
  20. });