PageSourceSearch

https://united-tokyo.com/js/U/usr/shoplist.js

js united-tokyo.com collected 2026-10-01 02:00:38 UTC 2,076 bytes, 69 lines download raw bytes

1var speed = 200;
2var scrollTop;
3
4function ShopListSetUp() {
5  jQuery("#pane-shoplist-modal").fadeIn(speed, function () {
6    // 現在のスクロール位置を取得
7    scrollTop = jQuery(window).scrollTop();
8    // bodyを固定し、スクロール位置を保持
9    jQuery('body').css({
10      width: '100%',
11      overflow: 'hidden',
12      position: 'fixed',
13      top: -scrollTop + 'px'
14    });
15  });
16
17  jQuery("#pane-shoplist-modal, .shoplist__closeBtn").on("click", function () {
18    jQuery("#pane-shoplist-modal").fadeOut(speed, function () {
19
20      // bodyの固定を解除し、元のスクロール位置に戻す
21      jQuery('body').css({
22        width: '',
23        overflow: '',
24        position: '',
25        top: ''
26      });
27      jQuery(window).scrollTop(scrollTop);
28    });
29  });
30
31  jQuery("#pane-shoplist-modal #pane-shoplist").on("click", function (e) {
32    e.stopPropagation();
33  });
34}
35
36// 商品詳細ページ
37jQuery(function() {
38  if (eclib.sys.isModeSmartPhone()) {
39    // 閉じるボタンの位置を変更
40    jQuery("#pane-shoplist-modal").prepend(jQuery("#pane-shoplist-modal .shoplist__closeBtn"));
41  }
42
43  // 店舗情報のリンクを店舗名に適用
44  jQuery('.shoplist_item_shopdetail_wrapper_ .shoplist_item_shopdetail_').each(function() {
45    var $detail = jQuery(this);
46    // 「.shoplist_item_shopdetail_」内のaタグを取得
47    var $link = $detail.find('a').first();
48    if ($link.length) {
49      // aタグのhrefとtarget属性を取得
50      var href = $link.attr('href');
51      var target = $link.attr('target');
52
53      // 「.shoplist_item_shopdetail_」直下のpタグを取得
54      var $pTag = $detail.find('> p').first();
55      if ($pTag.length) {
56        // pタグの中のテキストをaタグで囲む
57        var text = $pTag.text();
58        var $newLink = jQuery('<a></a>').attr('href', href).text(text);
59        if (target) {
60          $newLink.attr('target', target);
61        }
62        $pTag.empty().append($newLink);
63
64        // 元のaタグを削除
65        $link.remove();
66      }
67    }
68  });
69});

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.