PageSourceSearch

https://www.gom-in.com/_pkg/js/local.js?2026030511

js gom-in.com collected 2026-10-08 10:23:52 UTC 2,497 bytes, 69 lines download raw bytes

1// ********** 旧字表の文字検索 **********
2
3$(function () {
4    searchWord = function(){
5      var searchText = $(this).val(), // 検索ボックスに入力された文字列
6          targetText;
7  
8          $('.kyuji_list li').children('div').each(function() {
9          targetText = $(this).text();
10  
11  
12        // 旧字リスト(よみ)に入力された文字列が存在するかどうかを判断
13        if (targetText.indexOf(searchText) != -1) {
14          $(this).parent().removeClass('hidden');
15          $(this).parent().addClass('show');
16          
17        } else {
18          $(this).parent().removeClass('show');
19          $(this).parent().addClass('hidden');
20        }		
21      });
22      
23      
24      //li.showが存在するかどうか
25      if ($('.kyuji_list').children('li.show').length) {
26          
27          //li.showが存在するとき
28          
29              // Vistaコード V-またはX-で始まる3桁の数字 
30              var regex = new RegExp(/^[VX]-[0-9]{3}/);
31          
32              $('.kyuji_list').children('li.show').children('span').each(function() {
33              var resultText = $(this).text();
34                          
35                          // li.showのspan内の旧字コードにvistaコードが含まれるかどうかを判断
36                          if (resultText.match(regex)){
37                                  //マッチするときvistaコードの段落タイトルを表示
38                                  $('span.vista_code').removeClass('hidden');
39                                  }else{
40                                  //マッチしないときvistaコードの段落タイトルを非表示
41                                  $('span.vista_code').addClass('hidden');
42                                  }
43                              });	
44                  
45        } else {
46          //li.showが存在しないとき
47            $('span.vista_code').addClass('hidden');
48            $('span.no_much_txt').css('display','block');
49        }
50        
51      };
52  
53  
54    // searchWordの実行
55      $(function(){
56          $('.search-text').on('input', searchWord); // searchWordの実行
57      });
58  
59      // Windows旧字表示
60      $(function(){
61        $("#js-windows-kyuji-btn").click(function(){
62          $('.win-kyuji').each(function() {
63            $(this).removeClass('hidden');
64            $(this).addClass('show');
65          });
66          $(this).hide();
67        });
68    });
69  });

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.