1function modal_comments(link) { 2 3 $('#comments_reply').fadeIn(300).removeClass('modal_comments_open').addClass('modal_comments_active'); 4 $('#comments_reply2').fadeIn(300).removeClass('modal_comments_close').addClass('modal_comments_no_active'); 5 6 $.ajax({ 7 8 url: link, 9 type: "get", 10 cache: false, 11 beforeSend: function() { 12 13 $('#mcload').html('<br /><br /><br /><br /><font size="+2"><center><i class="fa fa-spinner fa-pulse fa-3x fa-fw"></i><br /></center></font>'); 14 15 }, 16 success: function(html){ 17 18 $('#mcload').html(html); 19 20 } 21 22 }); 23 24} 25 26function modal_comments_close(id) { 27 28 $('#comments_reply').fadeOut(300).removeClass('modal_comments_active'); 29 $('#comments_reply2').fadeOut(300).removeClass('modal_comments_no_active'); 30 31} 32 33function comments(){ 34 35 var ajax_li = document.getElementById('ajax_comments'); 36 var link = $(ajax_li).attr('action'); 37 var count_add = $(ajax_li).attr('count_add'); 38 var action = $(ajax_li).attr('actionv'); 39 var author = $(ajax_li).attr('author'); 40 var type = $(ajax_li).attr('type'); 41 var o_id = $(ajax_li).attr('o_id');
42 var ajn = $(ajax_li).attr('ajn'); 43 var blink = 500; 44 45 if (ajax_li){ 46 47 $.ajax({ 48 49 url: link, 50 type: "POST", 51 dataType: "json", 52 data: { 53 "count_add": count_add, 54 "action": action, 55 "author": author, 56 "type": type, 57 "o_id": o_id, 58 "ajn": ajn 59 }, 60 success: function(data){ 61 62 if (data.count_add > 0){ 63 64 $(ajax_li).prepend(data.html); 65 $('#blink'+data.count_add).fadeOut(blink).fadeIn(blink).fadeOut(blink).fadeIn(blink); 66 $(ajax_li).attr('count_add', data.count_add); 67 68 } 69 70 } 71 72 }); 73 74 } 75 76} 77 78function message(){ 79 80 var ajax_li = document.getElementById('ajax_loaders_interval'); 81 var link = $(ajax_li).attr('action'); 82 var count_add = $(ajax_li).attr('count_add'); 83 var blink = 500; 84 85 if (ajax_li){ 86 87 $.ajax({ 88 89 url: link, 90 type: "POST", 91 dataType: "json", 92 data: { 93 "count_add": count_add 94 }, 95 success: function(data){ 96 97 if (data.count_add > 0){ 98 99 $('.list2').remove(); 100 $(ajax_li).append(data.html); 101 $('#blink'+data.count_add).fadeOut(blink).fadeIn(blink).fadeOut(blink).fadeIn(blink); 102 $(ajax_li).attr('count_add', data.count_add); 103 $("#OnBottom").fadeIn("slow"); 104 105 } 106 107 if (data.eye == 0){ 108 109 $(".mail-message-eye").html(''); 110 111 } 112 113 } 114 115 }); 116 117 } 118 119} 120 121$(document).on('click', '.ajax-button-comments', function(e){ 122 123 var $that = $('.ajax-form-comments'); 124 var link = $that.attr('action'); 125 var id_btc = document.getElementById('body-top-comments'); 126 var id_btcp = parseInt($(id_btc).attr('id_post')); 127 var pixel = parseInt($(id_btc).attr('pixel')); 128 129 $.post( 130 131 link, 132 $that.serialize(), 133 134 function(data) { 135 136 if (pixel > 0) { 137 138 if (id_btcp == 0) { 139 140 $("html,body").scrollTop($('#body-top-comments').offset().top - pixel); 141 142 }else{ 143 144 $("html,body").scrollTop($('#blink'+id_btcp).offset().top - pixel); 145 146 } 147 148 }else{ 149 150 $("html, body").animate({scrollTop: document.body.scrollHeight}, "slow"); 151 152 } 153 154 var elem = $(data).filter('#content').html(); 155 $("#content").html(elem); 156 $("#OnBottom").fadeOut("slow"); 157 158 var title = $('title').text(); 159 history.pushState(link, title, link); 160 161 } 162 163 ); 164 165 e.preventDefault(); 166 167}); 168 169function reply(link, id, post){ 170 171 $(id).load(link+" "+id+""); 172 $('#body-top-comments').attr('id_post', post); 173 174}
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.