PageSourceSearch

https://www.natori-denshoukan.jp/wp-content/themes/original/js/common.js?ver=5.3.25

js natori-denshoukan.jp collected 2026-10-06 13:11:14 UTC 3,234 bytes, 118 lines download raw bytes

1
2
3/*----------------------------------------------------------------------*/
4/*headerの縦幅
5/*----------------------------------------------------------------------*/
6
7//$(document).ready(function () {
8//  hsize = $(window).height();
9//  $(".header").css("height", hsize + "px");
10//});
11//$(window).resize(function () {
12//  hsize = $(window).height();
13//  $(".header").css("height", hsize + "px");
14//});
15
16
17/*----------------------------------------------------------------------*/
18/*スクロールダウンボタン
19/*----------------------------------------------------------------------*/
20
21$(function() {
22  $('a[href*=#]').on('click', function(e) {
23    e.preventDefault();
24    $('html, body').animate({ scrollTop: $($(this).attr('href')).offset().top}, 500, 'linear');
25  });
26});
27
28/*----------------------------------------------------------------------*/
29/*メニュー
30/*----------------------------------------------------------------------*/
31$(function() {
32  var $win = $(window),
33      $cloneNav = $('nav').clone().addClass('clone-nav').appendTo('body'),
34      showClass = 'is-show';
35
36  $win.on('load scroll', function() {
37    var value = $(this).scrollTop();
38    if ( value > 400 ) {
39      $cloneNav.addClass(showClass);
40    } else {
41      $cloneNav.removeClass(showClass);
42    }
43  });
44});
45
46
47/*----------------------------------------------------------------------*/
48/*スマホメニュー
49/*----------------------------------------------------------------------*/
50$(document).ready(function() {
51    var base = $('.nav_sp');
52     
53    $('#hamburger').click(function(){
54        base.toggleClass('active');
55    });
56    base.click(function(){
57        base.removeClass('active');
58    });
59     
60     
61    $('.nav_sp li a').click(function(){
62        base.toggleClass('active');
63    });
64    base.click(function(){
65        base.removeClass('active');
66    });
67});
68 
69$(function () {
70    var $animation = $('.icon-animation');
71 
72    $animation.on('click',function(){
73      //console.log('');
74        if ($(this).hasClass('is-open')){
75            $(this).removeClass('is-open');
76        } else {
77            $(this).addClass('is-open');
78        }
79    });
80     
81     
82    $(".nav_sp").on('click',function(){
83        if ($(".icon-animation").addClass('is-open')){
84            $(".icon-animation").removeClass('is-open');
85        } else {
86            $(".icon-animation").hasClass('is-open');
87        }
88    });
89 
90     
91    $(".nav_sp li a").on('click',function(){
92        if ($(".icon-animation").addClass('is-open')){
93            $(".icon-animation").removeClass('is-open');
94        } else {
95            $(".icon-animation").hasClass('is-open');
96        }
97    });
98});
99
100/*----------------------------------------------------------------------*/
101/*サイズリロード
102/*----------------------------------------------------------------------*/
103
104//1300pxでリロード
105//$(window).on("resize", function() {
106//    var w = $(window).width();
107//    if(w < 1300) {
108//      window.location = window.location;
109//    }
110//  });
111
112/*----------------------------------------------------------------------*/
113/*フッダー
114/*----------------------------------------------------------------------*/
115
116$(function() {
117    $('.program').matchHeight();
118});

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.