1'use strict'; 2 3var Like = require('../../core/like.js'), 4 project_id = $('#project_id').val(); 5 6var more = require('../../core/load-more.js'); 7 8more('/project/' + project_id + '/more-posts/', 'short-post.ejs', updatePost); 9 10 11updatePost(); 12function updatePost() { 13 $('.post-con:not([data-fixed="1"])').each(function() { 14 var $post = $(this).addClass('show-all no-transaction').attr('data-fixed', '1'); 15 if ($post.height() <= 80) { 16 $post.parent().find('input.show-more').prop('checked', true); 17 } 18 19 $post.removeClass('show-all'); 20 }); 21 22 setTimeout(function() { 23 $('.no-transaction').removeClass('no-transaction'); 24 }, 20); 25} 26 27$(document).on('click', '.post-meta .like', function(e) { 28 e.preventDefault(); 29 30 var $like = $(this); 31 Like($like,{ 32 project_id: project_id, 33 post_id: $like.data('pid') 34 }); 35});
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.