PageSourceSearch

https://www.ukstudycentre.com/wp-content/plugins/tutor-cruncher-form-register/tc-reg-js.js?ver=1.1

js ukstudycentre.com collected 2026-10-08 10:30:54 UTC 2,438 bytes, 62 lines download raw bytes

1jQuery("#tutorCruncherForm input, #tutorCruncherForm textarea").keydown(function(){
2let label = jQuery(this).parent().find("label")
3if(label){
4label.css({"display":"none"})
5}
6})
7jQuery("#tutorCruncherForm input, #tutorCruncherForm textarea").blur(function(){
8let label = jQuery(this).parent().find("label")
9if(jQuery(this).val() === '' && label){
10label.css({"display":"block"})
11}
12})
13jQuery("#tutorCruncherForm").submit(function(e) {
14  e.preventDefault()
15  var v = grecaptcha.getResponse()
16  if (v.length === 0) {
17    jQuery("#captcha").html("You can\'t leave Captcha Code empty")
18    return false
19  }
20  if(jQuery(".selectBox-label").html() == "Title" && !jQuery("#hiddenFieldNameId")){
21    jQuery("#captcha").html("Please select a value from \'Title\' field at the top")
22    return false
23  }
24  var infoAboutUs = jQuery("#attributes-how_did_you_hear").val();
25  if(infoAboutUs === ""){
26    infoAboutUs = null
27  }
28var parent_country = jQuery("#attributes-client_country").val()
29parent_country = (parent_country === "") ? null : parent_country;
30var student_add_info = jQuery("#attributes-student-addInfo").val();
31student_add_info = (student_add_info === "") ? null : "Tutoring requirements: "+student_add_info;
32var hiddenFieldNameId = jQuery("#hiddenFieldNameId");
33hiddenFieldNameId = (typeof hiddenFieldNameId === "undefined" || !hiddenFieldNameId) ? null : hiddenFieldNameId.val();
34
35  var data = {
36    client_name: jQuery("#client_name").val(),
37    client_email: jQuery("#client_email").val(),
38    client_phone: jQuery("#client_phone").val(),
39    grecaptcha_response : v,
40    // Make sure any extra attribute fields are in a separate object.
41    attributes: {
42      "parent_country":parent_country,
43      "how_did_you_hear_about_uk_study_centre":infoAboutUs,
44		"tutor_contacts": hiddenFieldNameId,
45		"student_additional_info":student_add_info,
46    }
47  }
48  jQuery.ajax({
49    type: "POST",
50    url: "https://socket.tutorcruncher.com/fcb264c49d06fd94ea07/enquiry",
51    data: JSON.stringify(data),
52    dataType: "json",
53    success: function(){
54      jQuery("#errorResponse").css({"display":"none"})
55      jQuery("#fillFormTitle").css({"display":"none"})
56      jQuery("#tutorCruncherForm").html("Спасибо. Мы свяжемся с вами в ближайшее время.")
57    },
58    error: function(){
59      jQuery("#errorResponse").css({"display":"block"})
60    },
61  })
62 })

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.