PageSourceSearch

https://www.taiyo-electric.co.jp/english/wp-content/themes/taiyodenki-eng/js/common.js?ver=7.1.3

js taiyo-electric.co.jp collected 2026-10-08 23:23:13 UTC 1,732 bytes, 58 lines download raw bytes

1$(function() {
2    // #で始まるアンカーをクリックした場合に処理
3    $('a[href^="#"]').click(function() {
4        // スクロールの速度
5        var speed = 600; // ミリ秒
6        // アンカーの値取得
7        var href = $(this).attr("href");
8        // 移動先を取得
9        var target = $(href == "#" || href == "" ? 'html' : href);
10        // 移動先を数値で取得
11        var position = target.offset().top;
12        // スムーススクロール
13        $('body,html').animate({ scrollTop: position }, speed, 'swing');
14        return false;
15    });
16
17});
18
19$(function() {
20    $('#btnGnavi').click(function() {
21        $('#gNavi ul').stop().slideToggle('fast');
22    });
23});
24
25
26$(function() {
27    var menuBtn = $('#header a.menu-trigger');
28    menuBtn.on('click', function() {
29        if ($(this).hasClass('active')) {
30            $(this).removeClass('active');
31            $('#gNavi').fadeOut('fast', function() {
32                $('#gNavi ul').hide().css({ right: '-100vw' });
33            });
34        } else {
35            $(this).addClass('active');
36            $('#gNavi').fadeIn('fast', function() {
37                $('#gNavi ul').stop().show().animate({ right: 0 }, 'slow');
38            });
39        }
40        return false;
41    });
42
43});
44
45
46$(function() {
47    // Send event to Google Analytics
48    $('a[href^="tel:"]').click(function() {
49        var txt = $(this).attr('href');
50        var pathName = $(location).attr('pathname');
51
52        // For Global Site Tag 
53        gtag('event', 'tel', { 'event_category': 'sp', 'event_label': txt + ', pageURL:' + pathName });
54
55        // For Universal Analytics
56        //ga('send', 'event', 'sp', 'tel', txt+', pageURL:'+pathName);
57    });
58});

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.