PageSourceSearch

https://epilepsyontario.org/wp-content/themes/quark/js/comment-form-validation.js?ver=1.13.0

js epilepsyontario.org collected 2026-09-24 19:34:59 UTC 776 bytes, 37 lines download raw bytes

1/**
2 * Handles the client side Comments form validation.
3 */
4jQuery( document ).ready( function( $ ) {
5	if( comments_object.req ) {
6
7		$( "#commentform" ).validate( {
8			rules: {
9				author: "required",
10				email: {
11					required: true,
12					email: true
13				},
14				comment: "required"
15			},
16			messages: {
17				author: '<i class="fa fa-times" aria-hidden="true"></i> ' + comments_object.author,
18				email: '<i class="fa fa-times" aria-hidden="true"></i> ' + comments_object.email,
19				comment: '<i class="fa fa-times" aria-hidden="true"></i> ' + comments_object.comment
20			}
21		} );
22
23	}
24	else {
25
26		$( "#commentform" ).validate( {
27			rules: {
28				comment: "required"
29			},
30			messages: {
31				comment: '<i class="fa fa-times"></i> ' + comments_object.comment
32			}
33		} );
34
35	}
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.