PageSourceSearch

https://yoshida-pc.co.jp/yoshida/wp-content/themes/_s-master/assets/js/smooth.js?ver=7.1.2

js yoshida-pc.co.jp collected 2026-10-05 18:04:12 UTC 939 bytes, 18 lines download raw bytes

1$(function(){
2    // #で始まるa要素をクリックした場合に処理
3    $('a[href^="#"]').click(function(){
4      // 移動先を0px調整する。0を30にすると30px下にずらすことができる。
5      var adjust = 0;
6      // スクロールの速度(ミリ秒)
7      var speed = 400;
8      // アンカーの値取得 リンク先(href)を取得して、hrefという変数に代入
9      var href= $(this).attr("href");
10      // 移動先を取得 リンク先(href)のidがある要素を探して、targetに代入
11      var target = $(href == "#" || href == "" ? 'html' : href);
12      // 移動先を調整 idの要素の位置をoffset()で取得して、positionに代入
13      var position = target.offset().top + adjust;
14      // スムーススクロール linear(等速) or swing(変速)
15      $('body,html').animate({scrollTop:position}, speed, 'swing');
16      return false;
17    });
18  });

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.