PageSourceSearch

https://pro-kaguya.com/assets/js/news.js

js pro-kaguya.com collected 2026-10-06 13:16:38 UTC 1,235 bytes, 30 lines download raw bytes

1      $(document).ready(function () {
2        $('.open-popup').magnificPopup({
3          type: 'inline',
4          midClick: true,
5          mainClass: 'mfp-fade',
6          removalDelay: 500,
7          callbacks: {
8            open: function () {
9              // ポップアップ内のリンクにクリックイベントを設定
10              $('.mfp-content a[href^="#"]').on('click', function (e) {
11                e.preventDefault(); // デフォルト動作を防ぐ
12
13                var target = $(this).attr('href'); // アンカーリンクのターゲット取得
14                var targetOffset = $(target).offset().top; // ターゲットの位置を取得
15
16                // ポップアップを閉じる
17                $.magnificPopup.close();
18
19                // ポップアップが閉じた後にスクロール位置を設定
20                setTimeout(function () {
21                  $('html, body').animate({ scrollTop: targetOffset }, 500);
22                }, 500); // removalDelay と同じ時間を設定
23              });
24            },
25            close: function () {
26              $('.mfp-content a[href^="#"]').off('click'); // イベントを解除
27            }
28          }
29        });
30      });

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.