1/*======show registration form======*/ 2$(".generation-leads-burger-menu").click(function (e) { 3 e.preventDefault(); 4 $(".registration-container").fadeIn("fast"); 5}); 6$(".registration-container, .close-search").on('click', function () { 7 $(".registration-container").fadeOut("fast"); 8}).children().click(function (e) { 9 return false; 10}); 11$(document).keyup(function (e) { 12 if (e.keyCode == 27) { 13 $('.registration-container .close-search').click(); 14 }//escape key 15}); 16/*======end show registration form======*/ 17 18/*begin leads generation form registration*/ 19function LeadsEmailAddressExistence(clickedButton, fname, lname, emailAddress, country, category) { 20 if (clickedButton == 'LeadsGenerationUserControl_btnSubmitLeads') { 21 //alert("entered 1"); 22 if (Page_ClientValidate("leadsValidationGroup")){ 23 //alert("entered 2"); 24 CheckLeadsEmailAddressExistence(fname, lname, emailAddress, country, category); 25 } 26 } 27} 28function CheckLeadsEmailAddressExistence(fname, lname, emailAddress, country, category) { 29 $.ajax({
30 type: "POST", 31 url: "/Default.aspx/CheckLeadsEmailAddressExistenceWebMethod", 32 data: '{emailAddress: "' + emailAddress + '" }', 33 contentType: "application/json; charset=utf-8", 34 dataType: "json", 35 success: function (msg) { 36 if (msg.d == true) { 37 OnSuccess(fname, lname, emailAddress, country, category); 38 console.log("continue? " + msg.d); 39 } 40 else { 41 $("#leads-generation-errors").html("Ø¨Ø±ÙØ¯Ù Ø§ÙØ§ÙÙØªØ±ÙÙÙ Ù Ø¶Ø§Ù Ù Ø³Ø¨ÙØ§Ù."); 42 console.log("e-mail address already inserted"); 43 } 44 }, 45 failure: function (response) { 46 $("#leads-generation-errors").html("ØØ¯Ø« خطأ ٠ا. رجاء اÙÙ ØØ§ÙÙØ© ٠رة Ø£Ø®Ø±Ù Ø£Ù Ø§ÙØªÙØ§ØµÙ Ù Ø¹ÙØ§."); 47 console.log(response.responseText); 48 }, 49 error: function (response) { 50 $("#leads-generation-errors").html("ØØ¯Ø« خطأ ٠ا. رجاء اÙÙ ØØ§ÙÙØ© ٠رة Ø£Ø®Ø±Ù Ø£Ù Ø§ÙØªÙØ§ØµÙ Ù Ø¹ÙØ§."); 51 console.log(response.responseText); 52 } 53 }); 54} 55function OnSuccess(fname, lname, emailAddress, country, category) { 56 $.ajax({
57 type: "POST", 58 url: "/Default.aspx/InsertLeadsEmailAddressWebMethod", 59 data: '{fname: "' + fname + '", lname: "' + lname + '", emailAddress: "' + emailAddress + '", ema_is_new: "' + true + '", cou_id: "' + country + '", ema_cat_id: "' + category + '" }', 60 contentType: "application/json; charset=utf-8", 61 dataType: "json", 62 success: function (msg) { 63 $("#leads-generation-errors").html("Ø´ÙØ±Ø§Ø ت٠ت Ø¥Ø¶Ø§ÙØ© Ø¨Ø±ÙØ¯Ù Ø§ÙØ§ÙÙØªØ±ÙÙÙ Ø¨ÙØ¬Ø§Ø."); 64 clear_form_elements_and_close_it("registration-container"); 65 console.log("e-mail address inserted? " + msg.d); 66 }, 67 failure: function (response) { 68 $("#leads-generation-errors").html("ØØ¯Ø« خطأ ٠ا. رجاء اÙÙ ØØ§ÙÙØ© ٠رة Ø£Ø®Ø±Ù Ø£Ù Ø§ÙØªÙØ§ØµÙ Ù Ø¹ÙØ§."); 69 console.log(response.responseText); 70 }, 71 error: function (response) { 72 $("#leads-generation-errors").html("ØØ¯Ø« خطأ ٠ا. رجاء اÙÙ ØØ§ÙÙØ© ٠رة Ø£Ø®Ø±Ù Ø£Ù Ø§ÙØªÙØ§ØµÙ Ù Ø¹ÙØ§."); 73 console.log(response.responseText); 74 } 75 }); 76} 77function clear_form_elements_and_close_it(class_name) { 78 jQuery("." + class_name).find(':input').each(function () { 79 switch (this.type) {//following several case lines means it's applied to all these multiple cases at once: 80 case 'password': 81 case 'text': 82 case 'textarea': 83 case 'file': 84 case 'select-one': 85 case 'select-multiple': 86 case 'date': 87 case 'number': 88 case 'tel': 89 case 'email': 90 jQuery(this).val(''); 91 break; 92 case 'radio': 93 this.checked = false; 94 break; 95 } 96 }); 97 jQuery("." + class_name).find("select").each(function () { 98 this.selectedIndex = 0; 99 }); 100 setTimeout(function () { $(".registration-container").fadeOut("fast"); }, 4000); 101} 102/*end leads generation form registration*/
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.