PageSourceSearch

https://www.sirogohan.com/common/js/common.js?date=20250605100751

js sirogohan.com collected 2026-09-24 19:14:18 UTC 4,692 bytes, 142 lines download raw bytes

1jQuery(function ($) {
2
3  //Webフォント
4  function detectFontLoading(fontName) {
5    var tester = document.createElement('span');
6    tester.style.fontFamily = '"' + fontName + '", "Adobe Blank"';
7    tester.style.position = 'absolute';
8    tester.style.top = '-100px';
9    tester.appendChild(document.createTextNode('a'));
10    document.body.appendChild(tester);
11
12    var timerId = setInterval(checkWidth, 500);
13
14    function checkWidth() {
15      if (tester.offsetWidth > 0) {
16        clearInterval(timerId);
17        $('.ngt span').addClass('active');
18        tester.parentNode.removeChild(tester);
19      }
20    }
21  }
22
23  detectFontLoading("ngt");
24
25  // スムーズスクロール
26  $('.smooth a').smoothLink();
27
28  // ロールオーバー
29  $('.rollover').rollOver();
30
31  // ロールオーバー (透明度変え版)
32  $('img.fadeover, .fadeover a img').fadeOver({
33    opacity: 0.65
34  });
35
36  // アコーディオン
37  $('.acc1').accordion();
38
39  // アコーディオン 2
40  var opt = {
41    buttons: '.accBtn',
42    bodies: '.submenu',
43    hideOthers: true
44  };
45  $('.acc2').accordion(opt);
46
47  // (アコーディオン 2 全開)
48  $('.acc2show').click(function () {
49    $('.acc2').accordionShow(opt);
50    return false;
51  });
52
53  // (アコーディオン 2 全閉)
54  $('.acc2hide').click(function () {
55    $('.acc2').accordionHide(opt);
56    return false;
57  });
58
59  // (アコーディオン閉じるボタン)
60  $('.acc2close').click(function () {
61    $(this).parents('.acc2 > li').find('.accBtn').click();
62    return false;
63  });
64
65  // 新規登録のモーダル
66  $('[data-remodal-id=modal]').remodal();
67
68
69  //ログイン判定
70  $.ajax({
71    type: 'GET',
72    url: '/ajax/is_login',
73    dataType: 'json'
74  })
75    .then(
76      function (json) {
77        if (json.login) {
78          $('body').removeClass('-logout');
79          $('body').addClass('-login');
80        } else {
81          $('body').removeClass('-login');
82          $('body').addClass('-logout');
83        }
84      }
85    );
86
87
88
89  if ($('.pickup-more-btn').length) {
90    var length = $('.pickup-more-btn').prev($('.pickup-list')).find('li').length;
91    var num = $('.pickup-more-btn').prev($('.pickup-list')).data('number');
92
93    if (length <= num) {
94      $('.pickup-list').addClass('-all');
95    } else {
96      $('.pickup-more-btn').on('click', function () {
97        $('.pickup-list').addClass('-all');
98      });
99    }
100  }
101
102    // ========================================
103  // 最新情報のスライドショー
104  // ========================================
105
106  if ($('.news_list_slider').length && $('.news_list_sliderItem').length > 2) {
107
108    $('.news_list_slider').addClass('-slider');
109
110    $('.news_list_slider').bxSlider({
111      auto: false,
112      pause: 6000,
113      adaptiveHeight: false,
114      slideSelector: ".news_list_sliderItem",
115      infiniteLoop: true,
116      hideControlOnEnd: false,
117      useCSS: false,
118      minSlides: 3,
119      maxSlides: 3,
120      moveSlides: 3,
121      slideWidth: 248,
122      slideMargin: 29,
123      autoHover: true,
124  
125      // 初期化後にクラスを追加
126      onSliderLoad: function() {
127        $('.news_list_slider').addClass('-loaded');
128      }
129    });
130  }
131
132});
133
134
135/*
136CSS Browser Selector v0.4.0 (Nov 02, 2010)
137Rafael Lima (http://rafael.adm.br)
138http://rafael.adm.br/css_browser_selector
139License: http://creativecommons.org/licenses/by/2.5/
140Contributors: http://rafael.adm.br/css_browser_selector#contributors
141*/
142function css_browser_selector(u) { var ua = u.toLowerCase(), is = function (t) { return ua.indexOf(t) > -1 }, g = 'gecko', w = 'webkit', s = 'safari', o = 'opera', m = 'mobile', h = document.documentElement, b = [(!(/opera|webtv/i.test(ua)) && /msie\s(\d)/.test(ua)) ? ('ie ie' + RegExp.$1) : is('firefox/2') ? g + ' ff2' : is('firefox/3.5') ? g + ' ff3 ff3_5' : is('firefox/3.6') ? g + ' ff3 ff3_6' : is('firefox/3') ? g + ' ff3' : is('gecko/') ? g : is('opera') ? o + (/version\/(\d+)/.test(ua) ? ' ' + o + RegExp.$1 : (/opera(\s|\/)(\d+)/.test(ua) ? ' ' + o + RegExp.$2 : '')) : is('konqueror') ? 'konqueror' : is('blackberry') ? m + ' blackberry' : is('android') ? m + ' android' : is('chrome') ? w + ' chrome' : is('iron') ? w + ' iron' : is('applewebkit/') ? w + ' ' + s + (/version\/(\d+)/.test(ua) ? ' ' + s + RegExp.$1 : '') : is('mozilla/') ? g : '', is('j2me') ? m + ' j2me' : is('iphone') ? m + ' iphone' : is('ipod') ? m + ' ipod' : is('ipad') ? m + ' ipad' : is('mac') ? 'mac' : is('darwin') ? 'mac' : is('webtv') ? 'webtv' : is('win') ? 'win' + (is('windows nt 6.0') ? ' vista' : '') : is('freebsd') ? 'freebsd' : (is('x11') || is('linux')) ? 'linux' : '', 'js']; c = b.join(' '); h.className += ' ' + c; return c; }; css_browser_selector(navigator.userAgent);

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.