PageSourceSearch

https://www.smk8center.com/wp-content/plugins/staff-team/js/common.js?ver=5.1.1

js smk8center.com collected 2026-10-09 05:20:57 UTC 2,960 bytes, 89 lines download raw bytes

1function check_captcha(parent,type , code,id){
2    jQuery.ajax({
3        type: 'post',
4        url: contactAjaxUrl,
5        data: {
6            action: 'teamtwdcaptchae',
7            checkcap: type,
8            cap_code : code,
9            post_id  : id
10        },
11        success: function (response) {
12            if(response != '1'){
13                alert(contLDomain.mess_text[3]);
14                refreshCaptchaCont(parent);
15            }else{
16                parent.find('form').submit();
17            }
18        }
19    });
20}
21function team_submit_message(parent) {
22    function checkEmail() {
23        var email = parent.find('.email');
24        var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
25        if (parent.find('.email').length ==0)
26            return true;
27        else if (!filter.test(email.val())) {
28            alert(contLDomain.mess_text[5]);
29            email.focus();
30            return false;
31        }
32        else
33            return true;
34    }
35    if (parent.find(".full_name").length > 0 && parent.find(".full_name").val() == '')
36    {
37        alert(contLDomain.mess_text[0]);
38        parent.find(".full_name").focus();
39    }
40    else
41    if (parent.find(".phone").length > 0 && parent.find(".phone").val() == '')
42    {
43        alert(contLDomain.mess_text[4]);
44        parent.find(".phone").focus();
45    }
46    else
47    if (parent.find(".mes_title").val() == '')
48    {
49        alert(contLDomain.mess_text[2]);
50        parent.find(".mes_title").focus();
51    }
52    else
53    if (parent.find(".message_text").val() == '')
54    {
55        alert(contLDomain.mess_text[1]);
56        parent.find(".message_text").focus();
57    }
58    else
59    if (checkEmail()) {
60        if(parent.find("#staff_capcha").length > 0) {
61            check_captcha(parent, 1, parent.find('.message_capcode').val(), parent.find('.contact_id').val());
62        }else if(parent.find(".twd_gcaptcha").length > 0){
63            var captchaContainerId = parent.find(".twd_gcaptcha").attr('id');
64            var captchaId = twd_captcha_widgets[captchaContainerId];
65            if(grecaptcha.getResponse(captchaId) == ''){
66                alert('Captcha not valid');
67                grecaptcha.reset(captchaId);
68            }else{
69                parent.find('form').submit();
70            }
71        }else{
72            parent.find('form').submit();
73        }
74    }
75}
76
77function refreshCaptchaCont(parent)
78{
79    parent.find('.wd_captcha_img').attr('src',parent.find('.wd_captcha_img').attr('src').split("&")[0] + '&post_id='+parent.find('.contact_id').val()+'&r=' + Math.floor(Math.random() * 100));
80    parent.find('.message_capcode').val('');
81}
82
83var twd_captcha_widgets = {};
84
85function twdOnloadGcaptcha() {
86  jQuery('.twd_gcaptcha').each(function (i) {
87    twd_captcha_widgets[jQuery(this).attr('id')] = grecaptcha.render(this, {'sitekey': twd_gcaptcha_key})
88  })
89}

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.