PageSourceSearch

https://archoralsurgery.com/wp-content/themes/FMbuildr5.0/assets/s…/gravity-forms-js/gravity-forms-scripts.js

js archoralsurgery.com collected 2026-10-06 20:29:07 UTC 1,710 bytes, 46 lines download raw bytes

1
2var window = jQuery(window);
3jQuery(document).ready(function($) {	
4	initGravityFormsStyles();	
5});
6
7function initGravityFormsStyles() {	
8	
9	initGformValidationJs();	
10		
11	jQuery(document).on('gform_post_render', function(){	  	
12		   jQuery('.gform_wrapper input, .gform_wrapper textarea, .gform_wrapper select').each(function( index ) {
13		  var theFields = jQuery(this).val();
14			   if(theFields){	 
15				   jQuery(this).closest('.ginput_container').addClass('typing validated');
16				   jQuery(this).closest('.ginput_container').siblings('.gfield_label').addClass('highlight');
17			   }
18			   initGformValidationJs();		  
19		})   	
20	});	
21}
22
23function initGformValidationJs() {
24		
25	jQuery('.gform_wrapper input, .gform_wrapper textarea, .gform_wrapper select').focus(function() {
26		jQuery(this).closest('.ginput_container').addClass('typing');
27		jQuery(this).closest('.ginput_container').siblings('label.gfield_label').addClass('highlight');
28		//jQuery(this).closest('.gfield_description.validation_message').css("display","none");
29	})
30	
31	//When the user clicks out of a field
32	jQuery('.gform_wrapper input, .gform_wrapper textarea, .gform_wrapper select').blur(function() {
33		//The typing class is removed
34		var textValue= jQuery(this).val();
35		
36		if(textValue != "") {
37			jQuery(this).closest('.ginput_container').addClass('validated');
38			jQuery(this).closest('.ginput_container').siblings('label.gfield_label').addClass('highlight');				 
39		 }  else {
40			jQuery(this).closest('.ginput_container').removeClass('typing');
41			jQuery(this).closest('.ginput_container').removeClass('validated');	
42			jQuery(this).closest('.ginput_container').siblings('label.gfield_label').removeClass('highlight');
43		 }				
44	})	
45
46}

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.