PageSourceSearch

https://www.saftec.co.jp/dcms_media/js/search.js

js saftec.co.jp collected 2026-10-08 18:24:14 UTC 2,685 bytes, 66 lines download raw bytes

1$(function(){
2  $('html').attr('lang', 'ja');
3  //ぱんくず調整
4  $('.ible-part__widjet--breadcrumbs').addClass('container');
5  $('.ible-part__widjet--breadcrumbs .ible-part__core').wrapInner('<ol />');
6  $('.ible-part__widjet--breadcrumbs .ible-part__core ol').append('</li>');
7  $('.ible-part__widjet--breadcrumbs .ible-part__core ol').each(function() {
8      var txt = $(this).html();
9      $(this).html(txt
10          .replace(/ > /g, '</li><li>')
11          .replace('TOP', '商品情報')
12          .replace('<a href="/products-searchs/">', '<li><a href="/products.html">')
13      );
14  });
15  $('.ible-part__widjet--breadcrumbs .ible-part__core ol').prepend('<li><a href="/">TOP</a></li>');
16  $('#area7,#area8').removeClass('container');
17  // 要素 remove
18  $(".js-empDel:empty").remove();
19  $(".search-side_box #part2core > ul > li > ul").remove();
20  $('.js-form_side').wrapAll('<div class="search-side_box">');
21  $('.search-details_utility > li[data-link=""]').remove();
22  $('.search-details_utility:empty').remove();
23
24  // details page : ギャラリー
25  var thumb = $(".js-gallery_btn").length;
26  if(thumb <= 1) {
27  $('.js-gallery_btn').remove();
28  }
29  // page Load
30  $(window).on('load', function () {
31    $('html').addClass('is-loading');
32  });
33  //5秒以上は強制Load
34  function stopload(){
35    $("html").addClass('is-loading');
36  }
37  if ($('.ible-pager').length) {
38    $('html').addClass('is-search-list');
39  }
40  $('.ible-block--image-paragraph#block-img-p1 > .ible-part__basic:not(.main)').wrapAll('<div class="js-gallery_container search-data-gallery_container"></div>');
41  $('#image3 .js-gallery_thumb').addClass('is-current');
42  $('.js-gallery_thumb').on('click', function() {
43      var imgsrc = $(this).children('img').attr('src');
44      var altsrc = $(this).children('img').attr('alt');
45      $(this).closest('.js-gallery_container').find('.js-gallery_thumb').removeClass('is-current');
46      $(this).addClass('is-current').closest('.js-gallery_container').find('.js-gallery_image img').attr({"src": imgsrc, "alt": altsrc});
47  });
48
49  //カテゴリ 連動
50  var $children = $('.js-category-children');
51  var original = $children.html();
52  $('.js-category-parent').change(function() {
53    var val1 = $(this).val();
54    $children.html(original).find('option').each(function() {
55      var val2 = $(this).data('value');
56      if (val1 != val2) {
57        $(this).not(':first-child').remove();
58      }
59    });
60    if ($('.js-category-parent option:selected').data("select") == "") {
61      $children.attr('disabled', 'disabled');
62    } else {
63      $children.removeAttr('disabled');
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.