1$(function(){ 2 3 /*--block_table_2 çµã¿æã---*/ 4 5 function tableResize02(){ 6 $('.block_table_2 table').each(function(){ 7 var itemContent2 = '<tbody class="block_table_2_item">'; 8 var array2 =[]; 9 var cols2 = $(this).find('thead tr th, thead tr td').size(); 10 var rows2 = $(this).find('tr').size(); 11 for(i = 0; i < cols2; i++){ 12 itemContent2 += '<tr>'; 13 array2[i] = []; 14 for(j = 0; j < rows2; j++){ 15 array2[i][j] = $(this).find('tr:eq('+j+') > *:eq('+i+')').html(); 16 if(j == 0){ 17 itemContent2 += '<th>'+array2[i][j]+'</th>'; 18 }else{ 19 itemContent2 += '<td>'+array2[i][j]+'</td>'; 20 } 21 } 22 itemContent2 += '</tr>'; 23 } 24 itemContent2 += '</tbody>'; 25 if(window.innerWidth < 500){ 26 if(!$(this).children().is('tbody.block_table_2_item')){ 27 $(this).find('tbody').after(itemContent2); 28 } 29 }else{ 30 if($(this).children().is('tbody.block_table_2_item')){ 31 $(this).find('tbody.block_table_2_item').remove(); 32 } 33 } 34 }); 35 } 36 tableResize02(); 37 $(window).on('resize', tableResize02); 38 39 /*--block_table_3 çµã¿æã---*/ 40 41 function tableResize03(){ 42 $('.block_table_3 table').each(function(){ 43 var array3 = []; 44 var cols3 = $(this).find('thead tr th, thead tr td').size(); 45 for(i = 1; i <= cols3; i++){ 46 array3[i] = ($(this).find('thead tr > *:eq('+i+')').html()); 47 } 48 $(this).find('tbody tr').each(function(){ 49 for(i = 0; i < cols3; i++){ 50 if(window.innerWidth < 500){ 51 if(!$(this).find('td:eq('+i+')').children().is('ul.block_table_3_item')){ 52 var itemContent3 = $(this).find('td:eq('+i+')').html(); 53 $(this).find('td:eq('+i+')').replaceWith('<td><ul class="block_table_3_item"><li>'+array3[i+1]+'</li><li>'+itemContent3+'</li></ul></td>'); 54 } 55 }else{ 56 if($(this).find('td:eq('+i+')').children().is('ul.block_table_3_item')){ 57 var itemContent3 = $(this).find('td:eq('+i+') ul.block_table_3_item li:eq(1)').html(); 58 $(this).find('td:eq('+i+')').replaceWith('<td>'+itemContent3+'</td>'); 59 } 60 } 61 } 62 }); 63 }); 64 } 65 tableResize03(); 66 $(window).on('resize', tableResize03); 67 68}); 69 70$(window).load(function(){ 71 72 /*--block_table_6,7---*/ 73 74 function tableResize07(){ 75 $('.block_table_6 table, .block_table_7 table').each(function(){ 76 var t7 = 0; 77 t7 = $(this).find('tbody tr:eq(0)>*').length; 78 if(t7 * 150 >= $(this).parents('.outer').width()){ 79 $(this).addClass('resp'); 80 if($(this).parents('.outer').width() > $(this).width()){ 81 $(this).css({width: '100%'}); 82 }else{ 83 $(this).css({width: 'auto'}); 84 } 85 }else{ 86 $(this).removeClass('resp'); 87 } 88 }); 89 } 90 tableResize07(); 91 $(window).on('resize', tableResize07); 92 93});
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.