PageSourceSearch

https://sapporo-ekimae-naika.jp/wp-content/themes/saporo-syxskj/js/index.js

js sapporo-ekimae-naika.jp collected 2026-10-05 09:42:35 UTC 7,011 bytes, 236 lines download raw bytes

1(function ($) {
2    "use strict";
3
4    function hlin() {
5        var hlin01 = $(".wrapper-left .logo").innerHeight();
6
7//         var hlin03 = $(".wrapper-left nav ul#menu-top-menu>li:nth-child(4)").outerHeight();
8        var hlin04 = $(".wrapper-left nav ul#menu-top-menu>li:nth-child(4)").height();
9        var hlin05 = $(".wrapper-left .slider-brand .address").outerHeight();
10        var hlin06 = $(".wrapper-left .slider-brand .tel").outerHeight();
11
12
13        if ($(window).width() > 1240) {
14            $(".wrapper-right .item-titleb .item-newb h2").css({
15                "line-height": hlin04 - 2 + 'px'
16            });
17            $(".wrapper-right .item-titleb .item-informationb h2").css({
18                "line-height": hlin04 - 2 + 'px'
19            });
20
21            $(".pc .rtable .rtr:nth-child(1)").height(hlin05 * 0.2 - 1);
22            //$(".pc .rtable .rtr:not(:nth-child(1))").height(hlin05 * 0.35);
23            $(".pc .item-date .text").height(hlin06 - hlin05 * 0.75 - 1);
24			$(".pc .item-date.number .text").height(hlin06 - hlin05 * 0.75 - 1);
25
26            //$(".pc .item-new .new-info").height(hlin05 * 0.35 * 2 + hlin06 - 1 - hlin05 * 0.3);
27//             $(".wrapper-bottom .wrapper-left").css({
28//                 "padding-top": hlin05 * 0.35 * 2 + hlin06 - 1 - hlin05 * 0.3
29//             });
30        } else if ($(window).width() <= 1240) {
31
32            $(".wrapper-bottom .wrapper-left").css({
33                "padding-bottom": "0"
34            });
35
36
37        }
38//         if ($(window).width() > 1240) {
39//             $(".pagewrap").height(hlin01);
40//             $(".pc .wrapper-right .item1 .brand-item .brand-or").height(hlin03 * 3 - 1 + 158);
41//         } else if ($(window).width() > 962) {
42//             $(".pagewrap").height(hlin01);
43//             $(".sp .wrapper-right .item1 .brand-item .brand-or").height(hlin03 * 4 + 158);
44//         } else if ($(window).width() <= 962) {
45//             $(".pagewrap").css({
46//                 "height": "inherit"
47//             });
48//             $(".sp .wrapper-right .item1 .brand-item .brand-or").css({
49//                 "height": "inherit"
50//             });
51//         }
52        if ($(window).width() > 1382) {
53            $(".pc .information-info article").height(hlin05 * 0.5 * 2 + hlin06 - 1);
54        } else if ($(window).width() <= 1382) {
55            $(".pc .information-info article").height(hlin05 * 1.12 - 1);
56
57        }
58    }
59
60    function spr() {
61        if ($(window).width() > 1240) {
62            $("body").addClass("pc");
63            $("body").removeClass("sp");
64        } else if ($(window).width() <= 1240) {
65            $("body").addClass("sp");
66            $("body").removeClass("pc");
67        }
68
69    }
70
71    function news() {
72        $('.slider-old').slick({
73            slidesToShow: 1,
74            slidesToScroll: 1,
75            autoplay: true,
76            autoplaySpeed: 5000,
77            arrows: false,
78            infinite: true,
79            dots: true
80        });
81    }
82
83
84    function innav() {
85        $('li.menu-item-has-children').on('click', function () {
86
87            if ($(this).hasClass('bgchange')) {
88                $(this).removeClass('bgchange').find('.sub-menu').stop().fadeToggle();
89
90            } else {
91                $(this).addClass('bgchange').find('.sub-menu').stop().fadeToggle();
92                $(this).siblings().removeClass('bgchange').find('.sub-menu').stop().fadeToggle();
93            }
94        });
95    }
96
97    function bktclick() {
98        $(".bkt").click(function () {
99            $('body,html').stop().animate({
100                scrollTop: 0
101            }, 1600, 'easeOutQuint');
102            return false;
103        });
104    }
105
106    function bktb() {
107        var backtop = $(".bkt");
108        if ($(window).scrollTop() > 1000) {
109            backtop.stop().fadeIn(300);
110        } else {
111            backtop.stop().fadeOut(300);
112        }
113    }
114
115    function imgt() {
116        $("body").find(".img-tbg").css({
117            "background-image": function () {
118                var bgimg = $(this).find("img").attr("src"),
119                    src = "url(" + bgimg + ")";
120                return src;
121            }
122        });
123    }
124
125    function ser5() {
126        $(".serv-item5").find("li").on("click", function () {
127            $(this).addClass("selected").siblings().removeClass("selected");
128            $(this).parents(".serv-item5").next().children().eq($(this).index()).show().siblings().hide();
129        })
130    }
131
132    function pre2() {
133
134
135        if ($('body').hasClass("sp")) {
136            $(".foot").prepend("<div class='foot-brandsp'></div>");
137            var html = $(".slider-brand").html();
138            $(".foot-brandsp").html(html);
139        } else {
140            $(".foot-brandsp").remove();
141        }
142
143    }
144
145    function menbtns() {
146        var he = $(".sp .wrapper-left .logo a").height() / 2;
147        if ($(window).scrollTop() > 60) {
148            $(".sp .menu-trigger").css({
149                "top": "20px"
150            });
151
152        } else {
153            $(".sp .menu-trigger").css({
154                "top": he
155            });
156
157        }
158
159    }
160
161
162    function menu() {
163        var n = $(".sp-nav"),
164            p = $(".sp-mask"),
165            m = $(".sp-menu");
166        m.click(function () {
167
168            if (m.hasClass("togop")) {
169                $("nav ul").stop().animate({
170                    "opacity": "0"
171                }, 0);
172                $(".sp-menu").removeClass("togop");
173                $(".sp-menu span:nth-child(2)").stop().hide();
174                $(".sp-menu span:nth-child(1)").stop().show();
175                p.stop().fadeToggle();
176                n.stop().fadeToggle();
177            } else {
178                $("nav ul").stop().animate({
179                    "opacity": "1"
180                }, 1600);
181                $(".sp-menu").addClass("togop");
182                $(".sp-menu span:nth-child(2)").stop().show();
183                $(".sp-menu span:nth-child(1)").stop().hide();
184                p.stop().fadeToggle();
185                n.stop().fadeToggle();
186
187            }
188        });
189
190    }
191
192    function faqs() {
193        $(".tab-faq").find("li").on("click", function () {
194            $(this).addClass("selected").siblings().removeClass("selected");
195            $(this).parents(".tab-faq").next().children().eq($(this).index()).show().siblings().hide();
196        })
197    }
198    $(document).on("ready", function () {
199        spr();
200        news();
201        imgt();
202        innav();
203        menbtns();
204        pre2();
205        hlin();
206        menu();
207        ser5();
208        faqs();
209
210
211
212    });
213
214    $(window).on("load", function () {
215
216        imgt();
217
218    });
219
220    $(window).on("scroll", function () {
221        bktclick();
222        bktb();
223        menbtns();
224    });
225    $(window).on("resize", function () {
226        spr();
227        hlin();
228        menbtns();
229
230    });
231
232$(window).on('load',function(){
233    $('#ubie-dedicated-inquiry-banner div').children('img').attr('src', 'https://www.sapporo-ekimae-naika.jp/wp-content/themes/saporo-syxskj/images/bnr.png');
234});
235	
236})(jQuery);

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.