1$('.load-more').on('click', function () { 2 var mainScope = $(this); 3 var page = $(this).data('nextPage'); 4 var typeId = $(this).data('typeId'); 5 var currentLanguage = $(this).data('currentLanguage'); 6 ajaxLoadMore(mainScope, typeId, page, currentLanguage); 7}); 8 9var ajaxLoadMore = function ajaxLoadMore(mainScope, typeId, page, currentLanguage) { 10 var settings = { 11 url: "/api/".concat(currentLanguage, "/exposicoes/carregar-mais-pelo-tipo-html"), 12 data: { 13 type_id: typeId, 14 page: page 15 }, 16 method: "GET" 17 }; 18 $.ajax(settings).done(function (response) { 19 var container = mainScope.closest('.container').find('.temporarias-container'); 20 container.append(response.html); 21 !response.show_button_load_more ? mainScope.hide() : ''; 22 page++; 23 mainScope.data('nextPage', page); 24 }); 25};
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.