PageSourceSearch

https://parkplumbing.co.uk/js/validation.js

js parkplumbing.co.uk collected 2026-10-06 18:41:09 UTC 2,115 bytes, 54 lines download raw bytes

1function isValidEmailAddress(emailAddress) {
2    var pattern = /^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i;
3    return pattern.test(emailAddress);
4};
5$(document).ready(function(){
6	
7	
8	
9	$(".refresh").click(function () {
10		$(".imgcaptcha").attr("src","demo_captcha.php?_="+((new Date()).getTime())); 
11	});
12	
13	$('#cnt_form').submit(function(e) {
14		
15		if($('#fullname').val() == ''){
16			alert("Please enter your Full Name");
17			$('#fullname').focus();
18			return false;
19		}
20		if($('#telephone').val() == ''){
21			alert("Please enter your Telephone");
22			$('#telephone').focus();
23			return false;
24		}
25		if(!isValidEmailAddress($('#email').val())){
26			alert("Please enter your Valid Email Address");
27			$('#email').focus();
28			return false;
29		}
30		if($('#postcode').val() == ''){
31			alert("Please enter your postcode");
32			$('#postcode').focus();
33			return false;
34		}
35		if($('#enquirytype').val() == ''){
36			alert("Please fill your Enquiry Type");
37			$('#enquirytype').focus();
38			return false;
39		}
40		if($('#captcha').val() == ''){
41			alert("Please fill captcha code!");
42			$('#captcha').focus();
43			return false;
44		}
45		$.post("sendinfo.php", $("#cnt_form").serialize(), function(response){
46			if(response==0){
47			   alert("wrong captcha code! Please enter correct code");
48			}else{
49				window.location.href = 'thanks.html';
50			}
51		});
52		return false;
53	});
54});

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.