PageSourceSearch

https://www.naru-taki.com/wp/wp-content/themes/tp-basic-1/js/jscript.js?ver=1791222904

js naru-taki.com collected 2026-10-05 17:55:14 UTC 4,188 bytes, 140 lines download raw bytes

1jQuery(document).ready(function ($) {
2
3    let headerHeight = $('#header').outerHeight();
4    let adminBarHeight = $('#wpadminbar').outerHeight();
5    if (adminBarHeight) {
6        headerHeight += adminBarHeight;
7    }
8    $('body').css('padding-top', headerHeight + 'px');
9
10    $('.menu-item-has-children a').append('<span></span>');//spanを追加
11
12    $('#js-menu-button').on('click', function () {
13        $(this).toggleClass('is-active');
14        $('body').addClass('menu-open');
15        $('.mobile #nav__global .menu').slideToggle(500);
16
17        if (!$(this).hasClass('is-active')) {
18            $('.menu-item-has-children span').removeClass('is-active');
19            $('body').removeClass('menu-open');
20            $('.sub-menu').css('display', '');
21        }
22
23        return false;
24    });
25
26    $('#nav__global .menu-item-has-children > a span').on('click', function () {
27        $(this).toggleClass('is-active');
28        $(this).closest('.menu-item-has-children').toggleClass('is-active').find('> .sub-menu').slideToggle(500);
29        return false;
30    });
31
32    $("a").bind("focus", function () {
33        if (this.blur) this.blur();
34    });
35    $("a.target_blank").attr("target", "_blank");
36
37    //return top button
38    $('#return_top a').click(function () {
39        var myHref = $(this).attr("href");
40        var myPos = $(myHref).offset().top;
41        $("html,body").animate({scrollTop: myPos}, 1000, 'easeOutExpo');
42        return false;
43    });
44    var topBtn = $('#return_top');
45    topBtn.removeClass('active');
46    $(window).scroll(function () {
47        if ($(this).scrollTop() > 100) {
48            topBtn.addClass('active');
49        } else {
50            topBtn.removeClass('active');
51        }
52    });
53
54    //fixed footer content
55    var fixedFooter = $('#fixed_footer_content');
56    fixedFooter.removeClass('active');
57    $(window).scroll(function () {
58        if ($(this).scrollTop() > 330) {
59            fixedFooter.addClass('active');
60        } else {
61            fixedFooter.removeClass('active');
62        }
63    });
64    $('#fixed_footer_content .close').click(function () {
65        $("#fixed_footer_content").hide();
66        return false;
67    });
68
69
70    var mobileMenu = false;
71
72    function mediaQueryClass(width) {
73
74        if (width > 991) { //PC
75
76            $("html").removeClass("mobile");
77            $("html").addClass("pc");
78
79            /**
80             * HeightLine
81             */
82            $(".article02__title").heightLine();
83            $(".article02__desc").heightLine();
84
85            /**
86             * sp navi
87             */
88            $("#js-menu-button").removeClass("is-active");
89            $('body').removeClass('menu-open');
90            $(".menu").css("display", '');
91            $(".menu-item-has-children span").removeClass("is-active");
92            $('.sub-menu').css('display', '');
93
94        } else { //smart phone
95
96            $("html").removeClass("pc");
97            $("html").addClass("mobile");
98
99            /**
100             * グローバルナビゲーション モバイル
101             */
102            //$('.menu-item-has-children a').append('<span></span>');//spanを追加
103
104
105        }
106        ;
107    };
108
109    function viewport() {
110        var e = window, a = 'inner';
111        if (!('innerWidth' in window)) {
112            a = 'client';
113            e = document.documentElement || document.body;
114        }
115        return {width: e[a + 'Width'], height: e[a + 'Height']};
116    }
117
118    var ww = viewport().width;
119
120//header slider height
121    $('#header_slider .item').css('height', ww * 9 / 16);
122    $('#header_slider').css('padding', '0');
123
124    mediaQueryClass(ww);
125
126    $(window).bind("resize orientationchange", function () {
127        var ww = viewport().width;
128        mediaQueryClass(ww);
129    })
130
131});
132
133jQuery(window).resize(function ($) {
134    let headerHeight = jQuery('#header').outerHeight();
135    let adminBarHeight = jQuery('#wpadminbar').outerHeight();
136    if (adminBarHeight) {
137        headerHeight += adminBarHeight;
138    }
139    jQuery('body').css('padding-top', headerHeight + 'px');
140});

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.