1(function($){$.fn.basictable=function(options){var setup=function(table,data){var headings=[];if(data.tableWrap){table.wrap('<div class="wdt-res-wrapper"></div>')} 2if(data.header){var format='';if(table.find('thead tr th').length){format='thead th'}else if(table.find('tbody tr th').length){format='tbody tr th'}else if(table.find('th').length){format='tr:first th'}else{format='tr:first td'} 3$.each(table.find(format),function(){var $heading=$(this),row=$heading.closest('tr').index();if(!headings[row]){headings[row]=[]} 4headings[row].push($heading)})} 5$.each(table.find('tbody tr'),function(){setupRow($(this),headings,data)});$.each(table.find('tfoot tr'),function(){setupRow($(this),headings,data)})};var setupRow=function($row,headings,data){$row.children().each(function(){var $cell=$(this);if(($cell.html()===''||$cell.html()===' ')&&(!data.showEmptyCells)){$cell.addClass('bt-hide')}else{if(headings.length){var $heading=headings[0][$cell.data('col-index')],newTD=$('<td>').addClass($heading.attr('class')+' wpdt-header-classes').attr({"data-cell-id":$heading.data('cell-id'),"data-col-index":$heading.data('col-index'),"data-row-index":$heading.data('row-index'),"style":$heading.attr('style')}).html($heading.html());newTD.insertBefore($cell)}}})};var unwrap=function(table){$.each(table.find('td'),function(){var $cell=$(this);var content=$cell.children('.bt-content').html();$cell.html(content)})};var check=function(table,data){if(!data.forceResponsive){if(table.removeClass('bt').outerWidth()>table.parent().width()){start(table,data)}else{end(table,data)}}else{if((data.breakpoint!==null&&$(window).width()<=data.breakpoint)||(data.containerBreakpoint!==null&&table.parent().width()<=data.containerBreakpoint)){start(table,data)}else{end(table,data)}}};var start=function(table,data){table.addClass('bt');if(!data.header){table.addClass('bt--no-header')} 6if(data.tableWrap){table.parent('.wdt-res-wrapper').addClass('active')}};var end=function(table,data){table.removeClass('bt bt--no-header');if(data.tableWrap){table.parent('.wdt-res-wrapper').removeClass('active')}};var destroy=function(table,data){table.removeClass('bt bt--no-header');table.find('td').removeAttr('data-th');table.find('td.wpdt-header-classes').remove();if(data.tableWrap){table.unwrap()} 7if(data.contentWrap){unwrap(table)} 8table.removeData('basictable')};var resize=function(table){if(table.data('basictable')){check(table,table.data('basictable'))}};this.each(function(){var table=$(this);if(table.length===0||table.data('basictable')){if(table.data('basictable')){var data=table.data('basictable') 9if(options==='destroy'){destroy(table,data)}else if(options==='restart'){destroy(table,data);table.data('basictable',data);setup(table,data);check(table,data)}else if(options==='start'){start(table,data)}else if(options==='stop'){end(table,data)}else{check(table,data)}} 10return!1} 11var settings=$.extend({},$.fn.basictable.defaults,options);var vars={breakpoint:settings.breakpoint,containerBreakpoint:settings.containerBreakpoint,contentWrap:settings.contentWrap,forceResponsive:settings.forceResponsive,noResize:settings.noResize,tableWrap:settings.tableWrap,showEmptyCells:settings.showEmptyCells,header:settings.header};if(vars.breakpoint===null&&vars.containerBreakpoint===null){vars.breakpoint=568} 12table.data('basictable',vars);setup(table,table.data('basictable'));if(!vars.noResize){check(table,table.data('basictable'));$(window).bind('resize.basictable',function(){resize(table)})}})};$.fn.basictable.defaults={breakpoint:null,containerBreakpoint:null,contentWrap:!0,forceResponsive:!0,noResize:!1,tableWrap:!1,showEmptyCells:!1,header:!0}})(jQuery)
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.