PageSourceSearch

https://www.mghotel.jp/assets/js/contact.js

js mghotel.jp collected 2026-10-08 01:53:27 UTC 1,154 bytes, 46 lines download raw bytes

1$(function () {
2    const go_confirm = $('#go_confirm');
3
4    function checked() {
5        go_confirm.addClass('checked');
6        go_confirm.removeClass('disable');
7    }
8    function unchecked() {
9        go_confirm.addClass('disable');
10        go_confirm.removeClass('checked');
11    }
12
13
14    //個人情報のチェック判定
15    $('#privacy_check').click(function () {
16        if ($('input[name=privacy]').prop("checked")) {
17            checked();
18        } else {
19            unchecked();
20        }
21    });
22
23    //前に戻るボタン押したときもチェックが保持される
24    if ($('input[name=privacy]').prop("checked")) {
25        checked();
26    } else {
27        unchecked();
28    }
29
30    //個人情報のチェック
31    $('#go_confirm').click(function (e) {
32
33        if ($(this).hasClass('disable')) {
34            alert("個人情報の取り扱いに同意してください");
35            e.preventDefault();
36        }
37    });
38
39
40    //二重送信防止
41    $('#btnSend').click(function () {
42        $(this).text('送信しました');
43        $(this).addClass('pressed');
44    });
45
46});

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.