PageSourceSearch

https://www.watfordcitytrs.com/scripts/contact.js

js watfordcitytrs.com collected 2026-10-09 01:46:32 UTC 2,303 bytes, 108 lines download raw bytes

1function reloadCaptcha() {
2	$('#captcha').attr('src', 'let-securimage-show.php?' + Math.random() );
3	return false;
4}
5
6function disableSubmit() {
7	$('#contact .submit').attr('disabled', 'disabled').css({'opacity': '0.5', 'cursor' : 'default'});
8	$('#contact .throbber').fadeIn(100);
9}
10
11function enableSubmit() {
12	$('#contact .submit').removeAttr('disabled').css({'opacity': '1', 'cursor' : 'pointer'});
13	$('#contact .throbber').fadeOut(100);
14}
15
16
17
18
19
20function showResponse(response, statusText, xhr, $form)  {
21   if (response.error == 'true') {
22		if (response.message == "The security question you've entered is wrong. Please Try Again."){
23			$('input#secAnswer').addClass('error');
24			$(".captcha_error").html(response.message).show();
25			enableSubmit();
26		} else {
27			alert(response.message);
28			enableSubmit();
29		}
30	} else {
31		$('#contact').slideUp(400);
32		$(".form_success").delay(400).fadeIn(200);
33		enableSubmit();
34	}
35}
36
37
38
39
40jQuery(document).ready(function($) {
41	//Reload Captcha On Click
42	//$('#contact .reload').click(reloadCaptcha);
43	
44	//No Required Messages
45	jQuery.validator.messages.required = "";
46	jQuery.validator.messages.required = "";
47	
48	//Validate Form
49	$('#contact').validate({
50		invalidHandler: function(e, validator) {
51			var errors = $('input.error, textarea.error').length;
52			if (errors) {
53				var message = errors == 1
54					? 'You missed 1 field. It has been highlighted below'
55					: 'You missed ' + errors + ' fields.  They have been highlighted below';
56				$("div.error span").html(message);
57				$("div.error").show();
58			} else {
59				$("div.error").hide();
60			}
61		},
62		rules : {
63			exp_year : {
64				CCExp : {
65					month : '#exp_month',
66					year : '#exp_year'
67				}
68			},
69			
70			
71			cardnum : {
72				creditcard2 : function(){ return $('.cardtype input[name="creditcardtype"]:checked').val(); }
73			
74			}
75			
76			
77		
78		},
79		errorElement :  "p",
80		focusInvalid: false,
81		onKeyUp: false
82	});
83	
84	
85	//Submit Form
86	
87	$('#contact').submit(function() {
88	if ($("#contact").valid()) {
89			
90			
91			$(this).ajaxSubmit({
92				success: showResponse,
93				beforeSubmit: disableSubmit,
94				dataType: 'json',
95				data: {validatorfield: "true"}
96			});
97		}
98		
99		return false;
100		
101	});
102	
103	
104
105
106
107	
108});

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.