PageSourceSearch

https://honeys.co.jp/cms/hny_js/init.js

js honeys.co.jp collected 2026-10-02 17:28:06 UTC 3,619 bytes, 81 lines download raw bytes

1$(window).load(function () {
2
3    var $header = $('.s-hny-header')
4    var headerHeight = $header.height()
5
6  $('.s-slidebtn').click(function () {
7    var href = $(this).attr('href');
8    var target = $(href == "#" || href == "" ? 'html' : href);
9    var position = target.offset().top - headerHeight;
10    $('body,html').animate({scrollTop:position}, 400, 'swing');
11    return false;
12  });
13
14  var url = jQuery(location).attr('href');
15  if (url.indexOf("?id=") != -1) {
16      // スムーズスクロールの処理
17      var url_sp = url.split("?id=");
18      var hash   = '#' + url_sp[url_sp.length - 1];
19      var tgt    = $(hash);
20      var pos    = tgt.offset().top - headerHeight;
21      $("html, body").animate({scrollTop:pos}, 400, "swing");
22  }
23
24  // topへ戻るボタン
25  $(window).on('scroll', function() {
26    if ($(this).scrollTop() > 250) {
27      $('.hny-footer__topbtn').fadeIn();
28    } else {
29      $('.hny-footer__topbtn').fadeOut();
30    }
31  });
32
33  // パンくず
34  var str = location.pathname;
35  if(str.match(/news_category/) || str.match(/press_category/) || str.match(/news\/date/)) {
36    var insert_html = ''
37      , news_html = '<span><!--パンくずリンク--><span><a href="/">トップページ</a></span> <!--パンくずリンク--><span>&gt;</span> <!--パンくずリンク--><span><a href="/news">ショップニュース</a></span> <!--パンくずリンク--><span>&gt;</span> <!--パンくずラベル-->'
38      , press_html = '<span><!--パンくずリンク--><span><a href="/">トップページ</a></span> <!--パンくずリンク--><span>&gt;</span> <!--パンくずリンク--><span><a href="/company">企業情報</a></span> <!--パンくずリンク--><span>&gt;</span> <!--パンくずリンク--><span><a href="/company/press">プレスリリース</a></span> <!--パンくずリンク--><span>&gt;</span> <!--パンくずラベル-->'
39    if(str.match(/news_category\/news/)) { insert_html = news_html + '<span>お知らせ</span></span>'; }
40    if(str.match(/news_category\/shop/)) { insert_html = news_html + '<span>ショップ</span></span>'; }
41    if(str.match(/news_category\/press/)) { insert_html = news_html + '<span>プレス</span></span>'; }
42    if(str.match(/news_category\/campaign/)) { insert_html = news_html + '<span>キャンペーン</span></span>'; }
43    if(str.match(/news_category\/media/)) { insert_html = news_html + '<span>メディア掲載</span></span>'; }
44    if(str.match(/news\/date/)) {
45      var url = str.split("/")
46        , year = url[3]
47        , month =  url[4]
48      insert_html = news_html + '<span>' + year + '年' + month + '月</span></span>';
49    }
50    if(str.match(/news\/date/)) {
51      var url = str.split("/")
52        , year = url[3]
53        , month =  url[4]
54      insert_html = news_html + '<span>' + year + '年' + month + '月</span></span>';
55    }
56    if(str.match(/press_category/)) {
57      var url = str.split("/")
58        , year = url[4]
59      insert_html = press_html + '<span>' + year + '年5月期</span></span>';
60    }
61    $(".hny-breadcrumb__inner").html(insert_html);
62  }
63});
64
65$(function() {
66  // ファイルサイズ計算
67  function bytesToSize(bytes) {
68    bytes = Number(bytes.split(',').join(''));
69    var sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
70    if (bytes == 0) return 'n/a';
71    var i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)));
72    if (i == 0) return bytes + ' ' + sizes[i];
73    return (bytes / Math.pow(1024, i)).toFixed(1) + ' ' + sizes[i];
74  };
75
76  $(".s-bytes").each(function(i) {
77      text = $(this).text();
78      text = bytesToSize(text);
79      $(this).text(text);
80  });
81});

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.