PageSourceSearch

https://www.docodemo-art.com/sugobi/js/scroll.js

js docodemo-art.com collected 2026-10-05 09:45:19 UTC 674 bytes, 21 lines download raw bytes

1$(function() {
2  // スクロールのオフセット値
3  var offsetY = -10;
4  // スクロールにかかる時間
5  var time = 500;
6
7  // ページ内リンクのみを取得
8  $('a[href^=#]').click(function() {
9    // 移動先となる要素を取得
10    var target = $(this.hash);
11    if (!target.length) return ;
12    // 移動先となる値
13    var targetY = target.offset().top+offsetY;
14    // スクロールアニメーション
15    $('html,body').animate({scrollTop: targetY}, time, 'swing');
16    // ハッシュ書き換えとく
17    window.history.pushState(null, null, this.hash);
18    // デフォルトの処理はキャンセル
19    return false;
20  });
21});

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.