1 2$(document).ready(function() { 3 4 //toggle payment type 5 $("#toggle-paymentmethod").on('change',function(){ 6 var method = $(this).val(); 7 8 var paymentMethod = ["#paymentmethod-card", "#paymentmethod-cheque", "#paymentmethod-direct-debit"]; 9 $("#paymentmethod-cheque, #paymentmethod-card, #paymentmethod-direct-debit").hide(); 10 $(paymentMethod[method-1]).fadeIn(); 11 12 $('.directdebitdetailinput').prop('required', method == 3); 13 $('.directdebitdetailinput').toggleClass('required-marker required', method == 3); 14 }); 15 16 17 $('#submit-btn-joinform').click(function(){ 18 19 var files = $('.attachmentType'); 20 21 for (i=0;i<files.length;i++){ 22 var ext = files[i].value; 23 if( ext !== null && ext !== "" ) { 24 var regex = new RegExp("(.*?)\.(pdf|doc|docx|xls|slsx|jpeg|bmp|png|jpg)$"); 25 if( !(regex.test( ext.toLowerCase() ) ) ) { 26 $.msgGrowl({type:'error',text:'Your file format should be in any one of these file formats pdf, doc, docx, xls, slsx, jpeg, bmp, png, jpg. Please check your file format. '}); 27 return false; 28 } 29 if(files[i].files[0].size > 500000){ 30 $.msgGrowl({type:'error',text:"Please Upload file less than 500 KB"}); 31 return false; 32 } 33 } 34 } 35 }) 36 37});
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.