1/******************************************************************************/ 2/******************************************************************************/ 3 4;(function($,doc,win) 5{ 6 "use strict"; 7 8 var responsiveElement=function(object,option) 9 { 10 /**********************************************************************/ 11 12 var $this=$(object); 13 14 var $optionDefault= 15 { 16 width : 460 17 }; 18 19 var $option=$.extend($optionDefault,option); 20 21 /**********************************************************************/ 22 23 this.create=function() 24 { 25 this.responsive(); 26 27 var self=this; 28 $().windowDimensionListener({change:function(width,height) 29 { 30 if(width) 31 { 32 self.responsive(); 33 } 34 }}); 35 }; 36 37 /**********************************************************************/ 38 39 this.responsive=function() 40 { 41 $this.each(function() 42 { 43 var rowWidth=$(this).actual('innerWidth',{includeMargin:false}); 44 45 var column=$(this).children('.vc_column_container') 46 var columnLength=column.length; 47 48 if(rowWidth/columnLength<=$option.width) 49 column.addClass($option.className); 50 else column.removeClass($option.className); 51 }); 52 }; 53 54 /**********************************************************************/ 55 } 56 57 /**************************************************************************/ 58 59 $.fn.responsiveElement=function(option) 60 { 61 var element=new responsiveElement(this,option); 62 element.create(); 63 }; 64 65 /**************************************************************************/ 66 67})(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.