PageSourceSearch

https://hsgk.jp/js/theme_hello/init.js?20200824

js hsgk.jp collected 2026-09-25 07:01:05 UTC 2,930 bytes, 94 lines download raw bytes

1'use strict';
2
3/**
4 * Hello
5 * init.js
6 * ver.202009170000
7 */
8
9$(function() {
10    // Android4.4未満判別
11    if(navigator.userAgent.indexOf('Android') > 0 && typeof window.orientation != 'undefined' && typeof(EventSource) == 'undefined') {
12        $('body').addClass('ua-android-u440');
13    }
14
15    // ディスプレイサイズ判定
16    function isDisplaySize(width) {
17        return $(window).width() <= width;
18    }
19
20    // 電話番号リンクPCでのみ無効化
21    $('.js-shop_tel').on('click', function() {
22        if (!isDisplaySize(480)) {
23            return false;
24        }
25    });
26
27    // スマホ用メニュー制御(required mobilemenu.js)
28    $('#container').mobile_menu({
29        menu: ['#sm_navi ul'],
30        menu_width: 280,
31        prepend_button_to: '.sm_header'
32    });
33
34    // colorbox制御(求人ページ・メルマガ除外)
35    $('.thickbox').not('.navi_recruit, .navi_melmaga, .js-colorbox-html').each(function() {
36        $(this).colorbox({
37            rel: $(this).attr('rel'),
38            width: '90%',
39            height: '90%',
40            transition: 'fade',
41            previous: '<i class="fa fa-angle-left"></i>',
42            next: '<i class="fa fa-angle-right"></i>',
43            close: '<i class="fa fa-close"></i>',
44            fixed: true
45        });
46    });
47
48    // selectマーク追加(1カラム時(スマホ)のみ)
49    if ( $('#main_column').css('float') != 'right' ) {
50        $('select').wrap('<div class="wrap_select" />').before('<div class="select_arrow fa fa-caret-down"></div>');
51    }
52
53    // フッタ表示制御
54    var footerElement = $('#footer').clone().attr('id', 'content_footer');
55    $('#main_column').append(footerElement);
56
57    // フッタのナビパーツを削除
58    $('#footer #navi_parts').remove();
59
60    // pager(next・prev)をfont-awesomeに置換
61    $('.pager .prev').text('').attr('class', 'prev fa fa-chevron-left');
62    $('.pager .next').text('').attr('class', 'next fa fa-chevron-right');
63
64    // navi_parts(バナー/ウィジェット)を抽出して移動
65    var naviparts = $('#navi_parts');
66    if (naviparts.children().length !== 0) {
67        $('.gadgets').append(naviparts);
68    } else {
69        $('.gadgets').remove();
70    }
71
72    // Socialボタンが全て非表示なら領域削除
73    if ($('.social').children().length === 0) {
74        $('.social').remove();
75    }
76
77    // facebookページウィジェットの手前に改行付加
78    $('.social_widget_facebook_likebox').before('<br />');
79
80    // トップに戻るボタン制御
81    var $pagetop = $('.sm_totop_button');
82    $(window).on('scroll', function() {
83        if ($(this).scrollTop() > 100) {
84            $pagetop.css('visibility', 'visible');
85        } else {
86            $pagetop.css('visibility', 'hidden');
87        }
88    });
89
90    $pagetop.on('click', function() {
91        $('body, html').animate({ scrollTop: 0 }, 500);
92        return false;
93    });
94});

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.