PageSourceSearch

https://www.tokyodome-hotels.co.jp/assets/hotel/scripts/main.js

js tokyodome-hotels.co.jp collected 2026-09-24 10:46:16 UTC 2,537 bytes, 67 lines download raw bytes

1import '../../common/scripts/modules/carousel.js';
2import '../../common/scripts/modules/tab.js';
3import '../../common/scripts/modules/toggle.js';
4import '../../common/scripts/modules/filter.js';
5import '../../common/scripts/modules/linkIcon.js';
6import '../../common/scripts/modules/showMore.js';
7import '../../common/scripts/modules/mvAnimation.js';
8import '../../common/scripts/modules/handle-scroll-behavior.js';
9import '../../common/scripts/modules/dialog.js';
10import '../../common/scripts/modules/videoToggle.js';
11import '../scripts/modules/registrationStateIndicator.js';
12import '../scripts/modules/refine.js';
13import '../scripts/modules/topAnimaiton.js';
14import '../scripts/modules/reservationFormController.js';
15// header
16import '../scripts/header/header.js';
17import '../scripts/header/languageChange.js';
18// footer
19import '../scripts/footer/daytimeImageChange.js';
20// NOTE: Fastbooking用の初期化処理を即時実行
21(() => {
22    // NOTE: document.idFormを「現在の対象フォーム」に差し替えるための小さなポリフィル
23    let _currentForm = null;
24    const _nativeFallback = () => {
25        return document.querySelector('form[name="idForm"], form#idForm') || null;
26    };
27    try {
28        Object.defineProperty(document, 'idForm', {
29            configurable: true,
30            get: () => {
31                return _currentForm || _nativeFallback();
32            },
33        });
34    }
35    catch (error) {
36        console.log(error);
37    }
38    // NOTE: ベンダー関数がイベントからthisformを参照する前に正しくセットする
39    function bindFormContext(form) {
40        const setCtx = () => {
41            // @ts-expect-error
42            window.thisform = form;
43            _currentForm = form;
44        };
45        ['change', 'input', 'click', 'focusin', 'submit'].forEach((type) => {
46            form.addEventListener(type, setCtx, true);
47        });
48    }
49    // 複数フォームを既存start()で順番に初期化するヘルパ
50    // @ts-expect-error
51    window.startAllForms = (selector) => {
52        const target = selector || '.js-fb-booking';
53        const forms = document.querySelectorAll(target);
54        forms.forEach((form) => {
55            bindFormContext(form);
56            _currentForm = form;
57            // @ts-expect-error
58            window.thisform = form;
59            if (typeof window.start === 'function') {
60                window.start();
61            }
62        });
63    };
64    // 初期化実行
65    // @ts-expect-error
66    window.startAllForms();
67})();

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.