PageSourceSearch

https://ifpmphilippines.org/wp-content/plugins/signature-with-contact-form-7/includes/js/front.js?ver=2.0.0

js ifpmphilippines.org collected 2026-10-07 00:07:32 UTC 2,195 bytes, 61 lines download raw bytes

1
2jQuery(document).ready(function() {
3
4         $x=1;
5
6        var signatur_id = jQuery(".ocswcf_signature").length;
7        jQuery('.ocswcf_signature').each( function(){
8
9            
10              //alert( $x);
11             if($x == 1){
12
13                var mycuone= jQuery('.ocswcf_signature');
14                var color=mycuone.find(".oc_signature-pad").attr("color");
15                var backcolor=mycuone.find(".oc_signature-pad").attr("backcolor");
16                var width=mycuone.find(".oc_signature-pad").attr("width");
17                var height=mycuone.find(".oc_signature-pad").attr("height");
18                var custnameca=mycuone.find(".oc_signature-pad").attr("name");
19               
20                var canvas = document.getElementById("oc_signature-pad_"+custnameca);
21                canvas.setAttribute("width", width);
22                canvas.setAttribute("height", height);
23
24                var signaturePad = new SignaturePad(document.getElementById("oc_signature-pad_"+custnameca), {
25                                      backgroundColor: backcolor,
26                                      penColor: color,
27                                    });
28
29                jQuery(document).on('touchstart click', "#oc_signature-pad_"+custnameca, function(event){
30                    if(event.handled === false) return
31                    event.stopPropagation();
32                    event.preventDefault();
33                    event.handled = true;
34
35                    // Do your magic here
36                    var data = signaturePad.toDataURL('image/png');
37                    jQuery("input[name="+custnameca+"]").val(data);
38
39                });
40
41                mycuone.find(".clearButton").click(function(){
42                    signaturePad.clear();
43                    jQuery("input[name="+custnameca+"]").val("");
44                });
45
46
47             }else{
48                
49                jQuery(this).html("<p>Multiple Signaturepad is Valid in pro version of signature contact form 7 <a href='https://www.xeeshop.com/product/signature-with-contact-form-7-pro/' target='_blank'>Click here Get Pro Version</a></p>");
50
51             }
52
53            $x++;
54        });
55
56
57
58
59   
60})
61

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.