PageSourceSearch

https://globalgoalsweek.org/wp-content/themes/ggw/vendor/virtuemasters/ajaxform/ajaxform.js?ver=7.0.5

js globalgoalsweek.org collected 2026-10-02 02:49:33 UTC 1,689 bytes, 60 lines download raw bytes

1jQuery(document).ready(function(){
2
3    ajaxform();
4    console.log('ajaxform loaded');
5
6});
7
8/* AJAX FORM */
9function ajaxform(){
10    formvalidate();
11    placeholder();
12    $form = jQuery('.ajaxform'); //just set 'ajaxform' class in your form's tag and have fun
13    $form.submit(function(){
14        $this = jQuery(this);
15        if($this.valid()){
16            jQuery.ajax({
17                type: 'POST',
18                url: ajaxobject.themeurl+'/vendor/virtuemasters/ajaxform/ajaxform.php',
19                data: new FormData($this[0]),
20                processData: false,
21                contentType: false,
22                beforeSend: ajaxstatus('loading'),
23                success: function(msg){
24                    if(msg==1){
25                        ajaxstatus('sent',jQuery('input[name=success]',$this).val());
26                    }else{
27                        ajaxstatus('error',jQuery('input[name=error]',$this).val());
28                    }
29                    setTimeout(function(){
30                        ajaxstatus('finish');
31                        $this[0].reset();
32                    },7000);
33                }
34            });
35        }
36        return false;
37    });
38}
39
40/* FORM VALIDATE */
41function formvalidate(){
42    jQuery('.validate').each(function(){
43        jQuery(this).validate();
44    });
45}
46
47/* PLACEHOLDER */
48function placeholder(){
49    var text;
50    jQuery("input,textarea").click(function(){
51        text = jQuery(this).attr("placeholder");
52        jQuery(this).attr("placeholder", "");
53    });
54    jQuery("input,textarea").blur(function(){
55        if(text!=''){
56            jQuery(this).attr("placeholder", text);
57            text = "";
58        }
59    });
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.