1// Make numeric input 2function makeNumeric($property = "") { 3 if ($property != "") { 4 jQuery("body").on("keypress", $property, function (e) { 5 // console.log(jQuery(this).val()); 6 if ((jQuery(this).val() < 1 || jQuery(this).val() == "") && e.which == 48) 7 return false; 8 else if (jQuery(this).val() < 1 && e.which == 48) return false; 9 else if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57)) { 10 numericinput = false; 11 return false; 12 } else { 13 // console.log(numer) 14 numericinput = true; 15 } 16 }); 17 } 18} 19 20// Show Loader 21function showLoader() { 22 jQuery(".preloader-mask").show(); 23} 24 25// Hide Loader 26function hideLoader() { 27 jQuery(".preloader-mask").hide(); 28} 29 30// Error shown(Using form.php) 31function shownErr($message = "") { 32 if ($message != "") { 33 $message_ = ""; 34 jQuery.each($message, function (key, value) { 35 $message_ += `<p>${value}</p>`; 36 console.log(key + "," + value); 37 }); 38 jQuery("body") 39 .find("#responseWrapper") 40 .removeClass("hidden success") 41 .addClass("shown"); 42 jQuery("body").find("#responseText").html($message_); 43 jQuery("html,body").animate({ scrollTop: 0 }, "slow"); 44 } 45 46 setTimeout(function () { 47 jQuery("body").find("#responseWrapper").removeClass("shown"); 48 }, 5000); 49} 50 51function shownErr_($message, scrolltop = true) { 52 if ($message != "") { 53 jQuery("body") 54 .find("#responseWrapper") 55 .removeClass("hidden success") 56 .addClass("shown"); 57 jQuery("body").find("#responseText").html($message); 58 if (scrolltop == true) 59 jQuery("html,body").animate({ scrollTop: 0 }, "slow"); 60 } else { 61 jQuery("body") 62 .find("#responseWrapper") 63 .removeClass("shown success") 64 .addClass("hidden"); 65 } 66 setTimeout(function () { 67 jQuery("body").find("#responseWrapper").removeClass("shown"); 68 }, 5000); 69} 70 71jQuery("input.numeric"); 72 73// Error success 74function shownSuccess($message = "", scroll = true) { 75 if ($message != "") { 76 jQuery("body") 77 .find("#responseWrapper") 78 .removeClass("hidden") 79 .addClass("shown success"); 80 jQuery("body").find("#responseText").html($message); 81 if (scroll) { 82 jQuery("html,body").animate({ scrollTop: 0 }, "slow"); 83 } 84 } 85 86 setTimeout(function () { 87 jQuery("body").find("#responseWrapper").removeClass("shown"); 88 }, 5000); 89} 90 91function toLocaleDateTime(localeDateString) { 92 var localeDateString_ = localeDateString.split(","); 93 var dateStr = localeDateString_[0]; 94 var timeStr = localeDateString_[1]; 95 var dateArr = dateStr.split("/"); 96 var formatStr = dateArr[1] + "/" + dateArr[0] + "/" + dateArr[2] + timeStr; 97 return formatStr; 98} 99 100function hideDivIds(ids) { 101 ids.forEach( 102 (idDiv) => (document.getElementById(idDiv).style.display = "none"), 103 ); 104} 105 106function showDivIds(ids) { 107 ids.forEach( 108 (idDiv) => (document.getElementById(idDiv).style.display = "block"), 109 ); 110}
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.