PageSourceSearch

https://strawberryk-museum.com/asset/js/popup.js

js strawberryk-museum.com collected 2026-10-08 00:26:52 UTC 1,025 bytes, 34 lines download raw bytes

1var lastScrollTop = 0;
2
3$(window).scroll(function () {
4    var st = $(this).scrollTop(); // 現在のスクロール位置
5    var windowH = $(window).height(); // ウィンドウの高さ
6    var docH = $(document).height(); // ページ全体の高さ
7
8
9    if (st > 1150) {
10        if (st > lastScrollTop) {
11            $('#popupArea01').addClass('down');
12            $('.floatTicket').addClass('down');
13        }
14    }
15
16if (window.matchMedia('screen and (max-width:750px)').matches) {
17    // ▼ 追加機能:最下部に到達したら delete を付与
18    if (st + windowH >= docH) {
19        $('.floatTicket').addClass('delete');
20    }
21
22    // ▼ 最下部から200px以上 上に戻ったら delete を外す
23    if (st + windowH < docH - 200) {
24        $('.floatTicket').removeClass('delete');
25    }
26}
27
28    lastScrollTop = st; // 現在のスクロール位置を更新
29});
30
31$('#popupArea01 .ppcloseBtn').on('click', function () {
32    $('#popupArea01').addClass('down');
33    $('.floatTicket').addClass('down');
34});

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.