PageSourceSearch

https://www.highwaybus.com/gp/202103/js/common.js

js highwaybus.com collected 2026-09-24 09:05:32 UTC 2,580 bytes, 71 lines download raw bytes

1var scrollPosition = 0;
2$(document).ready(function () {
3
4    $('.modal00-open').on('click', function () {
5        var target = $(this).data('target');
6        var modal = document.getElementById(target);
7        scrollPosition = $(window).scrollTop();
8
9        $('body').addClass('mdlFixed').css({
10            'top': -scrollPosition
11        });
12        $(modal).fadeIn();
13        return false;
14    });
15    $('.modal00-close').on('click', function () {
16        $('body').removeClass('mdlFixed');
17        window.scrollTo(0, scrollPosition);
18        $('.modal00-js').fadeOut();
19        return false;
20    });
21    $('.modal11-open').on('click', function () {
22        var target = $(this).data('target');
23        var modal = document.getElementById(target);
24        scrollPosition = $(window).scrollTop();
25
26        $('body').addClass('mdlFixed').css({
27            'top': -scrollPosition
28        });
29        $(modal).slideToggle();
30        return false;
31    });
32    $('.modal11-close').on('click', function () {
33        $('body').removeClass('mdlFixed');
34        window.scrollTo(0, scrollPosition);
35        $('.modal11-js').slideToggle();
36        return false;
37    });
38    //
39    let $pagetop = $('.pageTop');
40    $(window).on('scroll', function () {
41        //
42        const button = $(".busSvcSelected_openBtn");
43        //スクロール位置を取得
44        if ($(this).scrollTop() < 500) {
45            $pagetop.removeClass('isActive');
46            button.removeClass('up')
47        } else {
48            $pagetop.addClass('isActive');
49            button.addClass('up')
50        }
51    });
52})
53
54
55function popupWindow(url) {
56    if (window.confirm('この先はハイウェイバスドットコムから外部サイトへリンクいたします。\n予約(お客様情報の登録)ならびに決済・解約・変更などの手続きについては、\nリンク先サイトでの扱いとなります。詳細は、リンク先サイトでご確認下さい。\nよろしければ「OK」を押してください。')) {
57        window.open(url);
58        return true;
59    } else {
60        return false;
61    }
62}
63
64function popupBusloc(url) {
65    if (window.confirm('この先はハイウェイバスドットコムから外部サイトへリンクいたします。\n\nリンク先:【新宿⇔山梨・長野間】高速バスロケーションシステム\n\nよろしければ「OK」を押してください。')) {
66        window.open(url);
67        return true;
68    } else {
69        return false;
70    }
71}

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.