PageSourceSearch

https://snarkypuppy.com/src/legacy/reachMX.js

js snarkypuppy.com collected 2026-10-02 05:34:36 UTC 2,489 bytes, 67 lines download raw bytes

1$(function(){
2    $('.reachMXOption').click(function(){
3        var result = $(this).text();
4        $(this).parents('.btn-group').find('.dropDownCurrent').text(result);
5        $(this).parents('.btn-group').find('.dropDownResult').val(result);
6    });
7
8    $('input.reachMX,textarea.reachMX').keydown(function(){
9        var correctEQ = $(this).parent().attr('id');
10        validation(correctEQ);
11    });
12
13    $('.reachMXelement').submit(function(){
14        var _this = $(this);
15        var thisID = $(this).attr('id');
16        var newHeight = $(this).height();
17        if (validation(thisID)) {
18            var package = {
19                legitContact: true
20            };
21
22            $(this).children('.reachMX').each(function(){
23                var thisName = $(this).attr('name');
24                var thisVal = $(this).val();
25                package[thisName] = thisVal;
26            });
27
28            _this.slideUp(500, function () {
29                _this.siblings('.reachMXelementSending').slideDown(500, function () {
30                    $.post('/src/legacy/reachMX.php', package, function (data) {
31                        _this.siblings('.reachMXelementSending').slideUp(1000,function(){
32                            _this.siblings('.reachMXelementResponse').html(data).slideDown();
33                        });
34                    },'text');
35                });
36            });
37
38            return false;
39        }
40
41        return false;
42    });
43});
44
45function validation(pid){
46    var name = $('#'+pid).children('.mxFormUserName').eq(0).val();
47    var email = $('#'+pid).children('.mxFormUserEmail').eq(0).val();
48    var message = $('#'+pid).children('.mxFormComments').eq(0).val();
49    if(email.indexOf('@')<=0 || email.lastIndexOf('.')<email.indexOf('@') || email.lastIndexOf('.')>=(email.length-2) || name=="" || message==""){
50
51        if(name==""){$('#'+pid).children('.validator.nameVal').slideDown('slow');}
52        else {$('#'+pid).children('.nameVal').slideUp('slow');}
53
54        if(email.indexOf('@')<=0 || email.lastIndexOf('.')<email.indexOf('@')){
55            $('#'+pid).children('.emailVal').slideDown('slow');
56        }
57        else {$('#'+pid).children('.emailVal').slideUp('slow');}
58
59        if(message==""){
60            $('#'+pid).children('.messageVal').slideDown('slow');
61        }else{
62            $('#'+pid).children('.messageVal').slideUp('slow');
63        }
64        return false;
65    }
66    else{$('#'+pid).children('.validator').slideUp('slow');return true;}
67}

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.