PageSourceSearch

https://grulla-morioka.jp/wp/wp-content/themes/grulla_202001/renewal202001/js/common.js

js grulla-morioka.jp collected 2026-10-02 14:31:15 UTC 2,375 bytes, 77 lines download raw bytes

1(function($){
2
3    // スクロールアニメーション
4    $(function(){
5        $('a[href^="#"]').click(function() {
6            var speed = 500;
7            var href= $(this).attr("href");
8            var target = $(href == "#" || href == "" ? 'html' : href);
9            var position = target.offset().top-150;
10            $('body,html').animate({scrollTop:position}, speed, 'swing');
11            return false;
12        });
13    });
14
15    // 別ウィンドウ表示
16    $(function(){
17        if (!document.getElementsByTagName) return;  
18        var anchors = document.getElementsByTagName("a");  
19        for (var i=0; i<anchors.length; i++) {  
20            var anchor = anchors[i];  
21            if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external"){
22                anchor.target = "_blank";
23            }
24        }
25    });
26
27    // ページTOPへスクロール
28    $(function() {
29        var topBtn = $('#topBtn');    
30        topBtn.hide();
31        $(window).scroll(function () {
32            if ($(this).scrollTop() > 100) {
33                topBtn.fadeIn();
34            } else {
35                topBtn.fadeOut();
36            }
37        });
38    });
39
40    // ヘッダーナビゲーション マウスホバー時
41    $(function(){
42        $('#mainNavi li,#subNavi li').on({
43            'mouseenter':function(){
44                $(".naviBox",this).fadeIn(100);
45                //$("#contents").addClass("overLay");
46            },
47            'mouseleave':function(){
48                $(".naviBox",this).fadeOut(250);
49                //$("#contents").removeClass("overLay");
50            }
51        });
52        $('#footerNavi .naviItem').on({
53            'mouseenter':function(){
54                $(this).addClass('active');
55                //$("#contents").addClass("overLay");
56            },
57            'mouseleave':function(){
58                $(this).removeClass('active');
59                //$("#contents").removeClass("overLay");
60            }
61        });
62    });
63
64    // Facebook
65    $(function(d, s, id) {
66        var js, fjs = d.getElementsByTagName(s)[0];
67        if (d.getElementById(id)) return;
68        js = d.createElement(s); js.id = id;
69        js.src = "//connect.facebook.net/ja_JP/sdk.js#xfbml=1&version=v2.8";
70        fjs.parentNode.insertBefore(js, fjs);
71    }
72      (document, 'script', 'facebook-jssdk')
73     );
74
75
76
77})(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.