PageSourceSearch

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

js tokyodome-hotels.co.jp collected 2026-09-24 10:46:35 UTC 659 bytes, 27 lines download raw bytes

1import { HeaderPC } from './header-pc.js';
2import { HeaderSP } from './header-sp.js';
3/**
4 * 実行
5 */
6document.addEventListener('DOMContentLoaded', () => {
7    const mql = window.matchMedia('(1280px <= width)');
8    const pcRoot = document.querySelector('.js-header-pc');
9    const spRoot = document.querySelector('.js-header-sp');
10    if (!pcRoot || !spRoot) {
11        return;
12    }
13    if (mql.matches) {
14        new HeaderPC(pcRoot);
15    }
16    else {
17        new HeaderSP(spRoot);
18    }
19    mql.onchange = (e) => {
20        if (e.matches) {
21            new HeaderPC(pcRoot);
22        }
23        else {
24            new HeaderSP(spRoot);
25        }
26    };
27});

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.