PageSourceSearch

https://www.campogalego.gal/wp-content/themes/newsplus/js/contact-form.js?vers=4.6.30&ver=1790087282

js campogalego.gal collected 2026-09-24 23:41:43 UTC 864 bytes, 42 lines download raw bytes

1/*
2 * contact-form.js
3 * Contact page template JS validation code
4 */
5
6jQuery( document ).ready( function($) {								   
7	$( '#contactform' ).validate( {
8		//set the rules for the field names
9		rules: {
10			username: {
11				required: true,
12				minlength: 2
13			},
14			email: {
15				required: true,
16				email: true
17			},
18			url: {
19				url: true
20			},
21			comment: {
22				required: true,
23				minlength: 5
24			}
25		},
26
27		//hide errors forever. We just need element highlighting
28		errorPlacement: function( error, element ) {
29			error.hide();
30		},
31
32		//Submit the Form
33		submitHandler: function() {
34		//Post the form values via ajax post
35			$.post( $( '#contactform' ).attr( 'action' ), $( '#contactform' ) . serialize() + '&ajax=1', function( result ) {
36				$( '#contactform' ).fadeOut( 250, function() {
37					$( '#mail_success' ).fadeIn( 500 );
38				} )
39			} );
40		}
41	} );
42} )

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.