// latest.js

function init() {
  $.ajaxSetup( {cache: false } );
}

function update_t() {
  $.get("/api/summary.pl?var=t&event=" + event_name,
        function(html) {
          $("#by-typhoon").fadeOut(1000, function() {
                                 $(this).empty();
                                 $(this).append(html);
                                 $(this).fadeIn(1000);
                               }
            );
        }
    );
};

function update_s() {
  $.get("/api/summary.pl?var=s&event=" + event_name,
        function(html) {
          $("#by-station").fadeOut(1000, function() {
                                 $(this).empty();
                                 $(this).append(html);
                                 $(this).fadeIn(1000);
                               }
            );
        }
    );
};

$(document).ready(
  function() {
    init();
    update_t();
    update_s();
  });




