1var enviame = function() { 2 var $t = $(this); 3 //$t.fadeOut(); 4 $('.lainfo').html('Enviando comentario...').show(); 5 $.post("/r.php",{meta:$("#meta").val(),comment:$("#comentar").val(),irt:$('.comments').attr('data-reply')},function(m) { 6 $(".comments").append('<div><blockquote>Comentaste: '+$("#comentar").val()+'</blockquote></div>'); 7 $("#comentar").val(''); 8 $t.fadeIn(); 9 $('.lainfo').html(m.msg); 10 //console.log(m); 11 },'json'); 12} 13var responder = function(r,rp) { 14 var $t=$("#comentar").val(); 15 $(".comments").attr('data-reply',rp); 16 $("#comentar").val('').focus(); 17 var d=''; 18 if($t == '') d = ''; 19 else d=' '; 20 $("#comentar").val('@'+r+d+$t+' '); 21 return false; 22}; 23var borracom = function(id) { 24 $("#cc"+id).fadeOut(); 25 $.post("/r.php",{c:id, bcom:$(".comments").attr('title'),me:$(".comments").attr('alt')},function(m) { 26 },'json'); 27 return false; 28}; 29$(".hacer").click(function(e) { 30 var $t = $(this); 31 $.post("/r.php",{cambiafoto:$t.attr('data-x'),me:$('#m'+$t.attr('data-x')).attr('alt'),act:$t.attr('data-me')},function(m) { 32 //console.log(m); 33 if(m.ok) { $('#m'+$t.attr('data-x')+' .muted').html(m.ok); } 34 },'json'); 35 $t.remove(); 36}); 37$(".responder").click(function(e) { 38 e.preventDefault(); 39 var $t=$("#comentar").val(); 40 $("#comentar").val('').focus(); 41 $("#comentar").val( '@'+$(this).attr('data-x')+" "+$t); 42 return false; 43}); 44$(function() { 45 var cuentame = function() { 46 $.post("/r.php",{ visita:JID,me:ME },function(m) { 47 $("#times").html(m.no+' lecturas'); 48 },'json'); 49 } 50 cuentame(); 51}); 52$(function() { 53 $.post("/r.php", { emos: JID},function(m) { 54 dibujaEmo(m); 55 },'json'); 56 // 57 $("button.emos").click(function() { 58 var t = $(this); 59 var emo = t.attr('data-emo'); 60 var no = parseInt( t.attr('data-no') ); 61 $("#emo"+emo+" SMALL").html( (no+1 )); //añadimos uno. 62 $.post("/r.php", { emos: JID,me:emo },function(m) { 63 dibujaEmo(m); 64 for(var i=1;i<=6;i++) { 65 if(i != emo) { 66 $("#emo"+i).addClass('d-none'); 67 } else { 68 $("#reacciones").addClass('display-4').html( $("#emo"+i).html() ); 69 } 70 } 71 },'json'); 72 }); 73 var dibujaEmo = function(emos) { 74 if(emos.emos !== undefined) { 75 $.each(emos.emos,function(i,item) { 76 var no = parseInt(item); 77 if(no>0) $("#emo"+i+" SMALL").html(item); 78 }) 79 } 80 if(emos.total > 0) { 81 $("#reacciones P").html('<em>Hay <strong>'+emos.total+'</strong> reacci'+ ( emos.total != 1?'ones':'ón' ) +' al escrito.</em>'); 82 } 83 } 84});
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.