1// init Isotope 2var $grid = $('.news-listing-row').isotope(); 3var filterValue; 4 5 6// filter items on button click 7$(document).on( 'click', '.filter-button-group button', function() { 8 filterValue = $(this).attr('data-filter'); 9 noresult = $('#noresult').val(); 10 $grid.isotope({ 11 filter: filterValue, 12 transitionDuration: 0 13 }); 14 if ($grid.data('isotope').filteredItems.length <= 0) { 15 if($('.no-result-found').length < 1) { 16 $('.filter-button-group').after('<p class="text-center no-result-found hidden"><strong>'+ noresult +'</strong></p>') 17 } 18 $('.no-result-found').removeClass('hidden').css({"opacity": "1", "transform": "scale(1)","transition-property": "opacity, transform", "transition-duration": "0.4s"}); 19 } else { 20 $('.no-result-found').addClass('hidden'); 21 $('.no-result-found').remove(); 22 } 23}); 24 25$('.page-navigation').remove(); 26var curPage = 1; 27var totNews = $('#totNews').val(); 28var perPage = $('#perPage').val(); 29var totPages = Math.ceil(totNews / perPage); 30//Math.ceil(2.2); 31if (totPages == curPage) { 32 $('.news-load-more').hide(); 33} 34$(document).on('click', '.news-load-more', function (e) { 35 e.preventDefault(); 36 $('#cover-spin').show(); 37 curPage = curPage + 1; 38 var curPageUrl = $(this).attr('href'); 39 var nextPageUrl = curPageUrl + '?tx_news_pi1[@widget_0][currentPage]=' + curPage +'&no_cache=1'; 40 $.ajax({ 41 type: 'GET', 42 url: nextPageUrl, 43 success: function (response) { 44 var disdata = $(response).find('#news-listing').html(); 45 $grid.append(disdata).fadeIn('slow'); 46 $('.page-navigation').hide(); 47 if (totPages == curPage) { 48 $('.news-load-more').fadeOut(); 49 } 50 $('#cover-spin').hide(); 51 $grid.isotope('destroy'); 52 $grid.isotope(); 53 $grid.isotope({ 54 filter: filterValue, 55 transitionDuration: 0 56 }); 57 if ($grid.data('isotope').filteredItems.length <= 0) { 58 if($('.no-result-found').length < 1) { 59 $('.filter-button-group').after('<p class="text-center no-result-found hidden"><strong>'+ noresult +'</strong></p>') 60 } 61 $('.no-result-found').removeClass('hidden').css({"opacity": "1", "transform": "scale(1)","transition-property": "opacity, transform", "transition-duration": "0.4s"}); 62 } else { 63 $('.no-result-found').addClass('hidden'); 64 $('.no-result-found').remove(); 65 } 66 var create = document.getElementsByClassName('download'); 67 for (var i = 0 ; i < create.length; i++) { 68 create[i].addEventListener("click", createFile, false); 69 } 70 } 71 }); 72}); 73 74//File upload logic... 75$(document).on('change', '.custom-fileupload input[type=file]', function () { 76 upload($(this)[0].files); 77}); 78function upload(files) { 79 $('.file_info').html("<p>"+ files[0].name + "</p>"); 80}
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.