PageSourceSearch

https://www.bcl-company.jp/js/common.js?2026-07-11T08:34:36+00:00

js bcl-company.jp collected 2026-10-03 17:34:53 UTC 4,499 bytes, 131 lines download raw bytes

1$(function(){
2  if (window.matchMedia( '(min-width: 769px)' ).matches) { //切り替える画面サイズ
3    $('.lang').hover(function(){
4      $('.toggle').toggleClass('open');
5      $('.lang_pull').slideToggle();
6    })
7    var headerHight = 70; //ヘッダの高さ
8    //#pagelink
9    $(function(){
10      function pagelink(heightnum){
11        var headerHight = heightnum;
12        $('a[href^=#]' + 'a:not(.non-scroll)').click(function(){
13          var href= $(this).attr("href");
14          var target = $(href == "#" || href == "" ? 'html' : href);
15          var position = target.offset().top-headerHight; //ヘッダの高さ分位置をずらす
16          $("html, body").animate({scrollTop:position}, 550, "swing");
17          return false;
18        });
19        /* outpagelink */
20        var url = $(location).attr("href");
21        if (url.indexOf("?id=") == -1) {
22
23        }else{
24          var url_sp = url.split("?id=");
25          var hash     = "#" + url_sp[url_sp.length - 1];
26          var target2        = $(hash);
27          var position2        = target2.offset().top-headerHight;
28          $("html, body").animate({scrollTop:position2}, 500, "swing");
29        }
30      }
31      pagelink(70); //ヘッダの高さ
32    });
33  } else { //モバイル環境の場合
34    $(".lang .toggle").click(function(){
35      $(this).toggleClass('open');
36      $(this).next('ul').slideToggle();
37    })
38    //submenu
39    $('.ft_submenu_btn').on('click', function() {
40      $(this).next().slideToggle();
41      $(this).toggleClass("active");
42    });
43    var headerHight = 50; //ヘッダの高さ
44    $(function(){
45      function pagelink(heightnum){
46        var headerHight = heightnum;
47        $('a[href^=#]' + 'a:not(.non-scroll)').click(function(){
48          var href= $(this).attr("href");
49          var target = $(href == "#" || href == "" ? 'html' : href);
50          var position = target.offset().top-headerHight; //ヘッダの高さ分位置をずらす
51          $("html, body").animate({scrollTop:position}, 550, "swing");
52          return false;
53        });
54        /* outpagelink */
55        var url = $(location).attr("href");
56        if (url.indexOf("?id=") == -1) {
57
58        }else{
59          var url_sp = url.split("?id=");
60          var hash     = "#" + url_sp[url_sp.length - 1];
61          var target2        = $(hash);
62          var position2        = target2.offset().top-headerHight;
63          $("html, body").animate({scrollTop:position2}, 500, "swing");
64        }
65      }
66      pagelink(50); //ヘッダの高さ
67    });
68  };
69  //Header固定
70  $(window).on('scroll', function() {
71    //header固定 スクロール時のclass追加
72    if ($(this).scrollTop() > 90) {
73      $('body').addClass('fixheader');
74    } else {
75      $('body').removeClass('fixheader');
76    }
77    //sideのSNSボタン
78    if ($(this).scrollTop() > 250) {
79      //$('.sns_btn').fadeIn("fast");
80    } else {
81      //$('.sns_btn').fadeOut("fast");
82    }
83  });
84  $(".pageTop a").click(function(){
85    $('html,body').animate({ scrollTop: $($(this).attr("href")).offset().top }, 500,'swing');
86    return false;
87  });
88  var topBtn = $('.pageTop');
89  topBtn.hide();
90  $(window).scroll(function () {
91    if ($(this).scrollTop() > 100) {
92      topBtn.fadeIn();
93    } else {
94      topBtn.fadeOut();
95    }
96  });
97//SP MENU
98  var flg = "close";
99  $("#sp_menu_btn").click(function(){
100    if(flg == "close"){
101      $(this).addClass("active");
102      $('body').addClass('sp_menu_open');
103      $("#sp_navi").addClass("active");
104      flg = "open";
105    }else{
106      if(flg == "close"){
107        location.reload();
108      }
109      $(this).removeClass("active");
110      $('body').removeClass('sp_menu_open');
111      $("#sp_navi").removeClass("active");
112      flg = "close";
113    }
114  });
115  $('.sp_menu_list li a').click(function(){
116    $('#sp_menu_btn').toggleClass("active");
117    $('body').toggleClass('sp_menu_open');
118    $("#sp_menu").fadeOut(1000);
119  });
120});
121$(window).on('load', function(){
122  //telリンク
123  var ua = navigator.userAgent;
124  if(ua.indexOf('iPhone') > 0 && ua.indexOf('iPod') == -1 || ua.indexOf('Android') > 0 && ua.indexOf('Mobile') > 0 && ua.indexOf('SC-01C') == -1 && ua.indexOf('A1_07') == -1 ){
125    $('.tel-link').each(function(){
126      var str = $(this).text();
127      $(this).html($('<a>').attr('href', 'tel:' + str.replace(/-/g, '')).append(str + '</a>'));
128    });
129  }
130});
131

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.