PageSourceSearch

https://store.in-net.gr.jp/client_info/ROUND_ABOUT_IN/view/userweb/js/RAbrandSearch.js?timestamp=1790755260163

js in-net.gr.jp collected 2026-10-04 16:42:01 UTC 1,279 bytes, 44 lines download raw bytes

1(function($){
2
3$(function () {
4  searchWord = function(){
5    var searchText = $(this).val().toKatakanaCase(), // 検索ボックスに入力された値取得・変換
6        targetText;
7    searchText = convertStr(searchText);
8    $('.brand', $(this).closest('.brandSearchWrap')).each(function() {
9      targetText = $.trim($(this).text());
10      targetText = convertStr(targetText);
11
12      // 検索対象となるリストに入力された文字列が存在するかどうかを判断
13      if (targetText.toLowerCase().toKatakanaCase().indexOf(searchText.toLowerCase()) != -1) {
14        $(this).removeClass('hidden');
15      } else {
16        $(this).addClass('hidden');
17      }
18    });
19  };
20
21  // searchWordの実行
22  $('.brandSearchKeyword').on('input', searchWord);
23});
24
25//ひらがな⇒カタカナ変換
26String.prototype.toKatakanaCase = function() {
27  var i, c, a = [];
28  for(i=this.length-1;0<=i;i--) {
29    c = this.charCodeAt(i);
30    a[i] = (0x3041 <= c && c <= 0x3096) ? c + 0x0060 : c;
31  };
32  return String.fromCharCode.apply(null, a);
33};
34
35//全角⇒半角変換
36function convertStr(str) {
37  var halfStr = str.replace(/ /g," ").replace(/[0-9]/g, function(s) {
38    return String.fromCharCode(s.charCodeAt(0)-0xFEE0);
39  });
40  return halfStr;
41}
42
43
44})(jQuery);

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.