PageSourceSearch

https://catharinemagelpa.com/wp-content/plugins/formget-contact-form/js/mg_front.js?ver=7.1.3

js catharinemagelpa.com collected 2026-10-08 04:36:58 UTC 2,756 bytes, 60 lines download raw bytes

1jQuery(document).ready(function () {
2    jQuery('.mg-form-submit #save').click(function () {
3        var x = document.forms["mg_form"]["mg_email"].value;
4        var y = document.forms["mg_form"]["mg_name"].value;
5        var atpos = x.indexOf("@");
6        var dotpos = x.lastIndexOf(".");
7        if ((atpos < 1 || dotpos < atpos + 2 || dotpos + 2 >= x.length) || (y.length < 2)) {
8            if (y.length < 2) {
9                document.getElementById("mg_show_name_msg").innerHTML = "Name required !";
10                document.getElementById("mg_show_name_msg").style.margin = "5px 0 -5px";
11                document.forms["mg_form"]["mg_name"].focus();
12                return false;
13            }
14            document.getElementById("mg_show_msg").innerHTML = "valid email required !";
15            document.getElementById("mg_show_msg").style.margin = "5px 0 -5px";
16            document.forms["mg_form"]["mg_email"].focus();
17            return false;
18        } else {
19            jQuery('#mg_form_loading_img').show();
20            var data = {
21                'action': 'formget_mailget_form_action',
22                'mg_email': x,
23                'mg_name': y,
24                'mg_nonce': mg.mg_nonce
25            };
26            // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
27            jQuery.post(mg.ajaxurl, data, function (response) {
28				var success = jQuery('#mg_form_wraper_div');
29                var form_height = jQuery('#mg_wrapper_right').height() - 70;
30                success.empty().fadeIn();
31                success.html('<div style="height:' + form_height + 'px;margin-top:120px;"><center><p><strong>Your Message Submitted Successfully.</strong></p><br></center></div>');
32                success.fadeIn();
33            });
34        }
35    });
36});
37jQuery(document).ready(function () {
38    jQuery('#mg_header_right').click(function () {
39        jQuery("#mg_box").toggleClass('popup').fadeIn('normal');
40    });
41    jQuery('.mg-form-slide-close').click(function () {
42        jQuery("#mg_box").toggleClass('popup').fadeIn('normal');
43    });
44    jQuery('#mg_email').click(function () {
45        jQuery("#mg_show_msg").empty().css('margin', '0');
46    });
47    jQuery('#mg_name').click(function () {
48        jQuery("#mg_show_name_msg").empty().css('margin', '0');
49    });
50    setTimeout(function () {
51        jQuery("#mg_box").css('visibility', 'visible');
52        jQuery('#mg_box').addClass('bounceInRight');
53    }, 3000);
54    var form_height = jQuery('#mg_wrapper_right').height();
55    setTimeout(function () {
56        var he = jQuery('#mg_header_right').height() + 10;
57        var net_height = form_height / 2 - he / 2;
58        jQuery('#mg_header_right').css('margin-top', net_height);
59    }, 1500);
60});

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.