1 2// =========== Home_projectsAll =========== 3 4$(document).ready(function () { 5 6 7 $('.Home_projectsAll .show_all').on('click', function(e) { 8 e.preventDefault(); 9 10 $('.Home_projectsAll .all .project').not('.show_all').each(function(){ 11 $(this).addClass('show'); 12 }) 13 14 $('.Home_projectsAll .all .project.show_all').hide(); 15 16 }); 17 18 19 20 $('.Home_projectsAll .filter a').on('click', function(e) { 21 e.preventDefault(); 22 23 $('.Home_projectsAll .filter a.active').removeClass('active'); 24 $(this).addClass('active'); 25 26 if ($(this).hasClass('all')) { 27 show_first_5(); 28 } else { 29 let filter = $(this).data('filter'); 30 $('.Home_projectsAll .all .project').removeClass('show') 31 $('.Home_projectsAll .all .project.show_all').hide(); 32 $('.Home_projectsAll .all .project').not('.show_all').each(function(e){ 33 if ( $(this).data('filter') == filter) { 34 $(this).addClass('show'); 35 } 36 }) 37 } 38 39 }); 40 41 42 function show_first_5(){ 43 $('.Home_projectsAll .all .project').removeClass('show'); 44 $('.Home_projectsAll .all .project').not('.show_all').each(function(e){ 45 if (e < 9) { 46 $(this).addClass('show'); 47 } 48 $('.Home_projectsAll .all .project.show_all').show(); 49 }) 50 51 } 52 53 show_first_5(); 54 55 56 57 58 59 60}); 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78// $('.Home_projectsAll .show_all').on('click', function(e) { 79// e.preventDefault(); 80 81// var total = $('.Home_projectsAll .all .project').not('.show_all').length; 82 83// var i = 0; 84// var to_show = 4; 85// $('.Home_projectsAll .all .project').not('.show_all').each(function(){ 86// if ($(this).is(':hidden')) { 87// if (i <= to_show) { 88// // $(this).addClass('show'); 89// $(this).fadeIn(500); 90// i++; 91// } 92// } 93// }) 94 95// var total_hidden = 0; 96// $('.Home_projectsAll .all .project').not('.show_all').each(function(){ 97// if ($(this).is(':hidden')) { 98// total_hidden++; 99// } 100// }) 101 102// if (total_hidden == 0) { 103// $('.Home_projectsAll .all .project.show_all').hide(); 104// } 105 106// });
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.