1(function($) 2{ 3"use strict"; 4 5// ------------------------------------------------------------------------------------------- 6// makes sure that the fixed container height is removed once the layerslider is loaded, so it adapts to the screen resolution 7// ------------------------------------------------------------------------------------------- 8 9$.fn.layer_slider_height_helper = function(options) 10{ 11 return this.each(function() 12 { 13 var container = $(this), 14 first_div = container.find('>div:first'), 15 timeout = false, 16 counter = 0, 17 reset_size = function() 18 { 19 if(first_div.height() > 0 || counter > 5) 20 { 21 container.height('auto'); 22 } 23 else 24 { 25 timeout = setTimeout(reset_size, 500); 26 counter++; 27 } 28 }; 29 30 if(!first_div.length) return; 31 32 timeout = setTimeout(reset_size, 0); 33 }); 34} 35 36 37}(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.