PageSourceSearch

https://kyoto-fujinami.jp/wp-content/themes/kyoto-fujinami/js/common.js?ver=5.3.26

js kyoto-fujinami.jp collected 2026-10-07 19:42:46 UTC 1,856 bytes, 71 lines download raw bytes

1
2$(function() {
3    $('#btnGnavi').click(function() {
4        $('#gNavi ul').stop().slideToggle('fast');
5    });
6});
7
8
9
10$(function() {
11    var menuBtn = $('#header a.menu-trigger');
12    menuBtn.on('click', function() {
13        if ($(this).hasClass('active')) {
14            $(this).removeClass('active');
15            $('#gNavi').fadeOut('fast', function() {
16                $('#gNavi ul').hide().css({ right: '-100vw' });
17            });
18            $('body,html').css({"overflow":"visible","height":"auto"});
19        } else {
20            $(this).addClass('active');
21            $('#gNavi').fadeIn('fast', function() {
22                $('#gNavi ul').stop().show().animate({ right: 0 }, 'slow');
23            });
24            $('body,html').css({"overflow":"hidden","height":"100%"});
25        }
26        return false;
27    });
28
29});
30
31
32$(function() {
33    // Send event to Google Analytics
34    $('a[href^="tel:"]').click(function() {
35        var txt = $(this).attr('href');
36        var pathName = $(location).attr('pathname');
37
38        // For Global Site Tag 
39        gtag('event', 'tel', { 'event_category': 'sp', 'event_label': txt + ', pageURL:' + pathName });
40
41        // For Universal Analytics
42        //ga('send', 'event', 'sp', 'tel', txt+', pageURL:'+pathName);
43    });
44});
45
46// lazy load
47$(function(){
48
49    window.onload = function(){
50        init();
51        $(window).scroll(lazyFade);
52    }
53
54    function init(){
55        lazyFade();
56    }
57
58    function lazyFade(){
59        var scrollTop = $(window).scrollTop();
60        var scrollBtm = scrollTop + $(window).height();
61        $('.lazy').each(function(){
62            var target = $(this);
63            var targetTop = target.offset().top;
64
65            if(scrollBtm > targetTop) {
66                target.removeClass('lazy');
67                target.addClass('lazy-show');
68            } 
69        });
70    }
71});

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.