PageSourceSearch

https://reebok.jp/resources/js/search/jquery.mysize-purchase-histo…c71173cab67247859ab0f77fa_1789535458_497318

js reebok.jp collected 2026-09-25 14:54:03 UTC 2,462 bytes, 66 lines download raw bytes

1;
2$(function() {
3  if ('true' !== $("#loggedIn").val()) {
4    return;
5  }
6  var mysizeCategoryApi = '/mysize/ordered-mysize-shoes/json';
7  if ('true' !== $("#shoesCategorySelected").val()) {
8    mysizeCategoryApi = '/mysize/ordered-mysize-apparel/json';
9  }
10  var kv = location.search.match(/selectedSkuCode=(.*?)(&|$)/);
11  var selectedSkuCode = (kv && kv.length > 0) ? decodeURIComponent(kv[1]) : '';
12  var categoryCodes = encodeURIComponent($('[name=searchCategory]').val());
13  var _params = {
14    url : mysizeCategoryApi,
15    method : 'get',
16    dataType : 'json',
17    timeout : 15000,
18    data : {
19      selectedSkuCode : selectedSkuCode,
20      categoryCodes : categoryCodes,
21      limit : 12
22    }
23  };
24  $.ajax(_params).then(function(skus) {
25    if (!skus || skus.length < 1) {
26      return;
27    }
28    skus.forEach(function(sku) {
29      sku.commodityCodePrefix = sku.commodityCode.substring(0, 2);
30      var search = location.search.substring(1).split('&').map(function(e) {
31        return (e.startsWith("searchShoesSize") || e.startsWith("selectedSkuCode") || e.startsWith("searchApparelSize") || e.startsWith("searchBraSize")) ? null : e;
32      }).filter(function(e) {
33        return e != null;
34      }).join('&');
35      sku.searchUrl = location.pathname + '?' + search;
36    });
37    var source = $('#purchase_history_template').html();
38    var template = Handlebars.compile(source);
39    var html = template({
40      skus : skus
41    });
42    $("#PurchaseHistorySearch_content").html(html);
43    $("#PurchaseHistorySearch").removeClass('displayNone');
44    if (selectedSkuCode) {
45      $("#PurchaseHistorySearch").removeClass('displayNone');
46    }
47    // もっと表示
48    $('.catalog_purchase_history-list:gt(3)').addClass('displayNone');
49    $('.catalog_purchase_history-more a').on('click', function() {
50      $('.catalog_purchase_history-more').hide();
51      $('.catalog_purchase_history-hide').show();
52      $(".catalog_purchase_history-list").removeClass('displayNone');
53    });
54    // 表示を隠す
55    $('.catalog_purchase_history-hide a').on('click', function() {
56      $('.catalog_purchase_history-more').show();
57      $('.catalog_purchase_history-hide').hide();
58      $(".catalog_purchase_history-list:gt(3)").addClass('displayNone');
59    });
60  }).then(function() {
61    var skulistlength = $('.catalog_purchase_history-list').length;
62    if (skulistlength < 5) {
63      $(".catalog_purchase_history-more").css('display', 'none');
64    }
65  });
66});

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.