PageSourceSearch

https://www.tukizuki-minic.com/js/config.js

js tukizuki-minic.com collected 2026-10-05 11:19:31 UTC 1,682 bytes, 64 lines download raw bytes

1$(function(){
2	var topBtn = $('#page-top');    
3    topBtn.hide();
4    //スクロールが100に達したらボタン表示
5    $(window).scroll(function () {
6        if ($(this).scrollTop() > 100) {
7            topBtn.fadeIn();
8        } else {
9            topBtn.fadeOut();
10        }
11    });
12    //スクロールしてトップ
13    topBtn.click(function () {
14        $('body,html').animate({
15            scrollTop: 0
16        }, 300);
17        return false;
18    });
19	
20	$('a[href^=#]').click(function(){
21		var speed = 500;
22		var href= $(this).attr("href");
23		var target = $(href == "#" || href == "" ? 'html' : href);
24		var position = target.offset().top;
25		$("html, body").animate({scrollTop:position}, speed, "swing");
26		return false;
27	});
28});
29
30
31
32//メニューのページ上部からの距離を取得
33$(function(){
34var menu_offset = $(".gnavi_wrap").offset().top;
35
36$(window).scroll(
37  function(){
38    //現在のスクロール量を取得
39    var my_offset = $(window).scrollTop();
40    if(menu_offset < my_offset){
41      //現在のスクロール量がメニューのページ上部からの距離を越えた場合にクラス「fixed」を付与
42      $(".gnavi_wrap").addClass("fixed");
43    } else {
44      //逆の場合にクラス「fixed」を解除
45      $(".gnavi_wrap").removeClass("fixed");      
46    }
47  }
48)
49});
50
51
52
53
54//電話番号 スマホ対策
55$(function(){
56    var ua = navigator.userAgent;
57    if(ua.indexOf('iPhone') > 0 || ua.indexOf('Android') > 0){
58        $('.tel-link').each(function(){
59            var str = $(this).text();
60            $(this).html($('<a>').attr('href', 'tel:' + str.replace(/-/g, '')).append(str + '</a>'));
61        });
62    }
63});
64

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.