1$(function(){ 2 $("#page_lister").hide(); 3 $("#page_lister").after('<p id="morecomments"><a class="button" href="#"><i></i>ÐÑе комменÑаÑии</a></p>'); 4 $("#morecomments a").live('click',function(){ 5 var nexturl = $("#page_lister b").next('a').attr('href'); 6 $("#page_lister b").next('a').remove() 7 $.get(nexturl, function(data) { 8 $("#page_lister").before($(data).find('.comment_contejner')); 9 replyclick(); 10 }); 11 $("#morecomments").remove(); 12 if($("#page_lister b").next('a').attr('href')!=undefined){ 13 $("#page_lister").after('<p id="morecomments"><a class="button" href="#"><i></i>ÐÑе комменÑаÑии</a></p>'); 14 } 15 return false; 16 }); 17 18 19 20 $("#comment_form").before('<p id="writecomment"><a href="#" class="button"><i></i>ÐадаÑÑ Ð²Ð¾Ð¿ÑоÑ, или оÑÑавиÑÑ ÐºÐ¾Ð¼Ð¼ÐµÐ½ÑаÑий/оÑзÑв</a></p><div class="clear"></div>'); 21 var comment_form = $("#comment_form"); 22 $("#writecomment").hide(); 23 $("#writecomment a").click(function(){ 24 $("#writecomment").hide(); 25 $(".comment_item .reply a").show(); 26 $("#comment_form").remove(); 27 $(".comment_item").removeClass('active'); 28 $(this).parent().after(comment_form); 29 $("#comment_form").show(); 30 $("#comment_form .comment_parent").val(''); 31 return false; 32 }); 33 //$("#comment_form").hide(); 34 35 function replyclick (){ 36 $(".comment_item .reply").remove(); 37 $(".comment_item").prepend('<p class="reply"><a href="#">ÐÑвеÑиÑÑ</a></p>'); 38 $(".comment_item .reply a").hover( 39 function () { 40 $(this).parent().parent().addClass('hover'); 41 }, 42 function () { 43 $(this).parent().parent().removeClass('hover'); 44 } 45 ); 46 $(".comment_item .reply a").click(function(){ 47 $("#writecomment").show(); 48 $(".comment_item .reply a").show(); 49 $("#comment_form").remove(); 50 $(".comment_item").removeClass('active'); 51 $(this).hide(); 52 $(this).parent().parent().addClass('active'); 53 $(this).parent().parent().append(comment_form); 54 $(this).parent().parent().find('#comment_form').show(); 55 var position = $('#comment_form').position(); 56 $(document).scrollTop(position.top); 57 var commentparentid = $(this).parent().parent().attr('id'); 58 var commentparenurl = $(this).parent().parent().attr('url'); 59 $('#comment_form .comment_parent').val(commentparentid); 60 sendcomment(commentparentid, commentparenurl); 61 return false; 62 }); 63 } 64 replyclick(); 65 66 67 function sendcomment (commentparentid, commentparenurl){ 68 $("#recalls_form").submit(function() { 69 $("#sendcommentstatus").remove(); 70 $("#btn_send").after('<p id="sendcommentstatus">ÐÑпÑавлÑем комменÑаÑий</p>'); 71 //var commenturlpost = $(this).attr('action'); 72 var commenturlpost = commentparenurl; 73 $.post(commenturlpost, $(this).serialize(), function(data){ 74 var inputerror = $(data).find('#input_error'); 75 if(inputerror.length>0){ 76 alert($(data).find('#input_error').text()) 77 $("#sendcommentstatus").remove(); 78 $("#btn_send").after('<p id="sendcommentstatus">ÐÑибка! ÐопÑобÑйÑе еÑе Ñаз.</p>'); 79 }else{ 80 $("#sendcommentstatus").remove(); 81 } 82 var inputsended = $(data).find('#input_sended'); 83 if(inputsended.length>0){ 84 $("#recalls_form").html($(data).find('#recalls_form').html()); 85 var newcomments = $(data).find('#'+commentparentid).html(); 86 $('#'+commentparentid).html(newcomments); 87 replyclick(); 88 } 89 $("#recalls_form #kcode").attr('src', 'kcaptcha/kcode.php?='+Math.random()); 90 }); 91 return false; 92 }); 93 } 94 95 $(".comment_item").each(function(){ 96 if($(this).attr('rel')>0){ 97 //$(this).addClass('active'); 98 } 99 }); 100 101});
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.