PageSourceSearch

https://www.terredauge.fr/wp-content/plugins/Krea3FormBuilder/publ…/visual-form-builder-validate.js?ver=7.1.2

js terredauge.fr collected 2026-10-02 20:54:52 UTC 1,021 bytes, 37 lines download raw bytes

1jQuery(document).ready(function($) {
2	$( '.visual-form-builder' ).each( function() {
3		$( this ).validate({
4			rules: {
5				"vfb-secret":{
6					maxlength:2
7				}
8			},
9			errorPlacement: function(error, element) {
10				if ( element.is( ':radio' ) || element.is( ':checkbox' ) ) {
11					error.appendTo( element.parent().parent() );
12				}
13				else {
14					error.insertAfter( element );
15				}
16			} 
17		});
18	});
19	
20	/* Custom validation method to check multiple emails */
21	$.validator.addMethod( 'phone', function( value, element ) {
22		/* Strip out all spaces, periods, dashes, parentheses, and plus signs */
23		value = value.replace(/[\+\s\(\)\.\-\ ]/g, '');
24
25		return this.optional(element) || value.length > 9 &&
26			value.match( /^((\+)?[1-9]{1,2})?([-\s\.])?((\(\d{1,4}\))|\d{1,4})(([-\s\.])?[0-9]{1,12}){1,2}$/ );
27
28		}, 'Veuillez entrer un numéro de téléphone valide.'
29	);
30	
31	/* Display jQuery UI date picker */
32	$( '.vfb-date-picker' ).datepicker({
33		yearRange: "c-100:c+10",
34		changeMonth:true,
35		changeYear:true
36	});
37});

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.