OSDN Git Service

0b082452a83dea70f2c1a729c4e0f2345e4ec1da
[hengband/web.git] / score / popularity_ranking.js
1 function select_table(table_id)
2 {
3     $("table.statistics_table").hide();
4     $("table.statistics_table#" + table_id).show();
5
6     $("a.table_select").css('font-weight', 'normal').css('font-size', 'small');
7     $("a.table_select#" + table_id).css('font-weight', 'bold').css('font-size', 'large');
8 }
9
10 $(function(){
11     $(".tablesorter").tablesorter({
12         sortList: [[1, 1]],
13         headers: {
14             0: {sorter: false}
15         }
16     });
17     $(".table_select").on('click', function() {
18         select_table($(this).attr("id"));
19     });
20
21     select_table("race_id"); //初期は種族を表示
22 });