1/******************************************************************************/ 2/******************************************************************************/ 3 4;(function($,doc,win) 5{ 6 "use strict"; 7 8 var responsiveTable=function(object,option) 9 { 10 /**********************************************************************/ 11 12 var $this=$(object); 13 14 var $optionDefault= 15 { 16 width : 760 17 }; 18 19 var $option=$.extend($optionDefault,option); 20 21 /**********************************************************************/ 22 23 this.create=function() 24 { 25 $().windowDimensionListener({change:function(width,height) 26 { 27 if(width) 28 { 29 if($this.parent().actual('width')<$option.width) 30 { 31 $this.find('th').each(function(index) 32 { 33 $(this).find('td:not(.theme-table-responsive-cell-no-title)').eq(index).data('title',$(this).text()); 34 }); 35 36 $this.addClass('theme-table-responsive'); 37 } 38 else 39 { 40 $this.removeClass('theme-table-responsive'); 41 } 42 } 43 }}); 44 }; 45 46 /**********************************************************************/ 47 }; 48 49 /**************************************************************************/ 50 51 $.fn.responsiveTable=function(option) 52 { 53 $(this).each(function() 54 { 55 var table=new responsiveTable(this,option); 56 table.create(); 57 }); 58 }; 59 60 /**************************************************************************/ 61 62})(jQuery,document,window);
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.