1$(document).ready(function(){ 2 $('#forma input[name="phone"]').mask("+7 (999) 999-99-99"); 3 $('a[href="#forma"]').click(function(){ 4 var data = $(this).attr('data'); 5 if(data == 'call'){ 6 var arr = ['fio','phone','mail']; 7 var title = 'ÐбÑаÑÐ½Ð°Ñ ÑвÑзÑ'; 8 var btnname = 'ÐÑпÑавиÑÑ'; 9 } 10 if(data == 'serv'){ 11 var arr = ['cname','adres','ogr','dir','isp','dol','phone','mail','message','file']; 12 var title = $(this).attr('title'); 13 var btnname = 'ÐÑÑавиÑÑ Ð·Ð°ÑвкÑ'; 14 } 15 16 $('#forma label').parent().css('display','none'); 17 $('#forma label input,label textarea').prop('required',false).prop('disabled',true); 18 $('#forma input[type="hidden"]').prop('required',false).prop('disabled',false); 19 20 $('#forma .top .title').html(title); 21 22 $('#forma .button .btn.send').html(btnname); 23 $.each(arr,function(k,v){ 24 $('div.'+v).removeAttr('style'); 25 $('div.'+v).find('input').prop('disabled',false).prop('required',true); 26 $('div.'+v).find('textarea').prop('disabled',false).prop('required',true); 27 $('div.'+v).find('input[type="file"]').prop('required',false); 28 }); 29 30 $('.police-input input').removeAttr('disabled'); 31 $('.police-input input').prop('required',true); 32 33 $('#forma input[type="hidden"][name="type"]').val(data); 34 $('#forma input[type="hidden"][name="title"]').val(title); 35 $.fancybox.open([{ 36 src: '#forma', 37 type: 'inline', 38 touch: false, 39 beforeClose:function(){ 40 $('#forma input,#forma textarea').val(''); 41 } 42 }]); 43 }); 44 45 $('body').on('click','#forma .close',function(){ 46 $('#forma input,#forma textarea').val(''); 47 $.fancybox.close(); 48 }); 49 50 $('body').on('change','#forma .input_file input',function(){ 51 var file = $(this)[0].files[0].name; 52 var type = file.split('.'); 53 var last = type.length - 1; 54 type = type[last]; 55 if(type == 'png' || type == 'PNG' || type == 'jpg' || type == 'JPG' || type == 'jpeg' || type == 'JPEG' || type == 'pdf' || type == 'PDF'){ 56 $('#forma .input_file input').parent().children('.r').text(file); 57 }else{ 58 alert('ÐевеÑнÑй ÑоÑÐ¼Ð°Ñ Ñайла'); 59 } 60 }); 61});
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.