PageSourceSearch

https://www.darksouls.jp/static/js/goods/common.js

js darksouls.jp collected 2026-10-02 15:42:56 UTC 2,316 bytes, 74 lines download raw bytes

1$(function(){
2  // リリース年タブ
3  $('#category_tab').children('li').on("click",function(){
4    $('#category_tab').children('li').removeClass('curr');
5    $(this).addClass('curr');
6    $('#category_select').val($(this).index());
7    // func
8    category_func($(this).index());
9  });
10  // リリース年セレクト
11  $('#category_select').on("change",function(){
12    $('#category_tab').children('li').removeClass('curr');
13    $('#category_tab').children('li').eq($(this).prop('selectedIndex')).addClass('curr');
14    // func
15    category_func($(this).prop('selectedIndex'));
16  });
17});
18
19function category_func(num) {
20  switch (num) {
21    case 0:
22      $('#sec_figure').removeClass('hide');
23      $('#sec_apparel').removeClass('hide');
24      $('#sec_book').removeClass('hide');
25      $('#sec_app').removeClass('hide');
26      break;
27    case 1:
28      $('#sec_figure').removeClass('hide');
29      $('#sec_apparel').addClass('hide');
30      $('#sec_book').addClass('hide');
31      $('#sec_app').addClass('hide');
32      break;
33    case 2:
34      $('#sec_figure').addClass('hide');
35      $('#sec_apparel').removeClass('hide');
36      $('#sec_book').addClass('hide');
37      $('#sec_app').addClass('hide');
38      break;
39    case 3:
40      $('#sec_figure').addClass('hide');
41      $('#sec_apparel').addClass('hide');
42      $('#sec_book').removeClass('hide');
43      $('#sec_app').addClass('hide');
44      break;
45    case 4:
46      $('#sec_figure').addClass('hide');
47      $('#sec_apparel').addClass('hide');
48      $('#sec_book').addClass('hide');
49      $('#sec_app').removeClass('hide');
50      break;
51  }
52}
53
54$(window).on('load resize',function(){
55  // wide only
56  if( $(this).width() >= 768 ) {
57    var prv_ht = 0;
58    $('p.title').each(function(){
59      var prt_li = $(this).parent('li'),
60          prt_ul = $(this).closest('ul.goods_list'),
61          crr_ix = $(prt_ul).children('li').index(prt_li),
62          crr_ht = Math.round($(this).height());
63      if(crr_ix % 2 == 0) {
64        prv_ht = crr_ht;
65      }else{
66        if(prv_ht != crr_ht) {
67          var tmp_ht = (prv_ht > crr_ht) ? prv_ht : crr_ht;
68          $(prt_li).prev('li').children('p.title').css('height',tmp_ht);
69          $(this).css('height',tmp_ht);
70        }
71      }
72    });
73  }
74});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.