PageSourceSearch

https://www.kirinclimbing.com.tw/Content/web/js/contactCheck.js?0626

js kirinclimbing.com.tw collected 2026-09-30 23:09:50 UTC 2,857 bytes, 79 lines download raw bytes

1var contactCustomerCheckFlag = false;
2
3$(document).ready(function () {
4
5    var submitConfirmMsg = "您確定要送出嗎?"
6    if ($('#submitConfirmMsg').length > 0) {
7        submitConfirmMsg = $('#submitConfirmMsg').html()
8    }
9
10    var isSubmitting = false;
11
12    if ($('#isCustom').length > 0) {//有自訂欄位
13        $(document).on("click", '.contactForm .colCheckbox', function () {
14            var currCheckCount = $('.contactForm .' + $(this).attr("name") + ':checked').length;
15            var maxCheckCount = $(this).data("max");
16            if (currCheckCount > maxCheckCount) {
17                alert("該項目最多只能勾選 " + maxCheckCount + " 項");
18                return false;
19            }
20        });
21    }
22
23    $("#contactSubmit").click(function () {
24        if (isSubmitting) {
25            var submittingMsg = "表單正在送出,請稍候";
26            if ($('#submittingMsg').length > 0) {
27                submittingMsg = $('#submittingMsg').html();
28            }
29            alert(submittingMsg);
30            return false;
31        }
32
33        //客製判斷調整
34        if (contactCustomerCheckFlag) {
35            if (!contactCustomerCheck()) {
36                return false;
37            }
38        }
39        else {
40            if ($('#isCustom').length > 0) {//自訂欄位
41
42            } else {
43                if ($('.contactForm #content').val() == '') {
44                    var noKeyinContentMsg = "請輸入留言內容";
45                    if ($('#noKeyinContentMsg').length > 0) {
46                        noKeyinContentMsg = $('#noKeyinContentMsg').html();
47                    }
48                    alert(noKeyinContentMsg);
49                    return false;
50                }
51                if ($('.contactForm #email').val() != "") {
52                    if (IsEmail($('#email').val()) == false) {
53                        var mailFailMsg = "Email格式不正確";
54                        if ($('#mailFailMsg').length > 0) {
55                            mailFailMsg = $('#mailFailMsg').html();
56                        }
57                        alert(mailFailMsg);
58                        return false;
59                    }
60                }
61                if ($('.contactForm #phone').val() == '') {
62                    var noKeyinTelMsg = "請輸入電話";
63                    if ($('#noKeyinTelMsg').length > 0) {
64                        noKeyinTelMsg = $('#noKeyinTelMsg').html();
65                    }
66                    alert(noKeyinTelMsg);
67                    return false;
68                }
69            }
70        }
71
72
73        if (confirm(submitConfirmMsg) == true) {
74            $('.contactForm').submit();
75            $(this).html("正在送出中,請稍候...")
76            //isSubmitting = true;
77        }
78    });
79});

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.