PageSourceSearch

https://appliss.co.jp/scripts/subscribe.js

js appliss.co.jp collected 2026-10-02 16:13:55 UTC 1,638 bytes, 57 lines download raw bytes

1jQuery(function() {
2  jQuery('.success-subscribe').hide();
3  jQuery('.error').hide();
4  jQuery('#emailError').hide();
5  jQuery('#emailError2').hide();
6  jQuery(".contactButton").click(function() {
7		// validate and process form
8		// first hide any error messages
9    jQuery('.error').hide();
10		
11	  var name = jQuery("input#contactName").val();
12		if (name == "" || name =="John Doe?") {
13      jQuery("span#nameError").hide();
14      jQuery("input#contactName").focus();
15      return false;
16    }
17	  var email = jQuery("input#contactEmail").val();
18	  if (email == "" || email == "[email protected]") {
19	  jQuery('#emailError').show();
20	  jQuery('#emailError2').hide();
21      jQuery("input#contactEmail").focus();
22      return false;
23    }
24	
25	var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
26	if(!emailReg.test(email)) {
27	  jQuery('#emailError').hide();
28	  jQuery('#emailError2').show();
29      jQuery("input#contactEmail").focus();
30      return false;
31	}
32	
33	  var msg = jQuery("textarea#contactMessage").val();
34	  if (msg == "") {
35	  jQuery("span#messageError").hide();
36	  jQuery("textarea#contactMessage").focus();
37	  return false;
38    }
39		
40		var dataString = 'name='+ name + '&email=' + email + '&msg=' + msg;
41		//alert (dataString);return false;
42		
43	  jQuery.ajax({
44      type: "POST",
45      url: "php/subscribe.php",
46      data: dataString,
47      success: function() {
48        //jQuery('#modalForm').html("<div style='height:300px;'></div>");
49		jQuery('#contact').fadeOut(0)
50        jQuery('.success-subscribe').fadeIn()
51        
52      }
53     });
54    return false;
55	});
56});
57

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.